Account Resource
Retrieve account information and usage statistics.
Get Account
GET /v1/account
Retrieve account information and usage.
Request
- Python
- Node.js
- cURL
import os
from vocafuse import Client
client = Client(
api_key='sk_live_...',
api_secret='...'
)
account = client.account.get()
print(f"Account: {account['data']['name']}")
print(f"Tenant ID: {account['data']['tenant_id']}")
print(f"Plan: {account['data'].get('plan', 'Unknown')}")
const { Client } = require('vocafuse-node');
const client = new Client({
apiKey: process.env.VOCAFUSE_API_KEY,
apiSecret: process.env.VOCAFUSE_API_SECRET,
});
async function getAccount() {
const account = await client.account.get();
console.log(`Account: ${account.data.name}`);
console.log(`Tenant ID: ${account.data.id}`);
console.log(`Plan: ${account.data.plan || 'Unknown'}`);
}
curl -X GET "https://api.vocafuse.com/v1/account" \
-H "X-VocaFuse-API-Key: sk_live_..." \
-H "X-VocaFuse-API-Secret: ..."
Response
{
"id": "63f8fa32-0740-4263-9bed-578156b3526b",
"name": "deanb1886",
"email": "[email protected]",
"status": "active",
"plan": "free",
"created_at": "2025-08-06T18:58:19",
"updated_at": "2025-10-06T17:50:56",
"usage": {
"current_month": {
"recordings_count": 3,
"total_duration_seconds": 21,
"storage_used_bytes": 326025
},
"previous_month": {
"recordings_count": 0,
"total_duration_seconds": 0,
"storage_used_bytes": 0
}
},
"uri": "/v1/account"
}