Skip to main content

Account balance API

Read remaining sandbox and production meeting and recording minutes.

Endpoint: https://mediasfu.com/v1/balance

Authenticate with Authorization: Bearer <api-username>:<api-key> from your server. Try every action and copy the request in the API Sandbox.

▶ Watch this: Your balance, billing history and plans, 1:04.

Get balance​

GET https://mediasfu.com/v1/balance

Return both balances by default, or one selected environment.

No fields are required.

Optional: Optional scope​

Narrow the response to sandbox or production.

FieldTypeDescriptionDefault
scope"" (any), sandbox, productionEnvironment. Leave unset to return both environments, or request only one.""
curl "https://mediasfu.com/v1/balance" \
-H "Authorization: Bearer $MEDIASFU_API_USERNAME:$MEDIASFU_API_KEY"

Example response:

{
"success": true,
"balances": {
"sandbox": {
"meetingMinutes": 1200,
"recordingMinutes": 300
},
"production": {
"meetingMinutes": 5400.5,
"recordingMinutes": 900
}
}
}

See errors and response format for failure handling.