Skip to main content

credits/get

Return the current remaining SMS credit balance for the authenticated account.

This endpoint is accessed via the OAuth REST gateway using a method query parameter.

Request​

Endpoint​

GET https://v3.idibu.com/c/oauth/v1​

Query Parameters​

NameTypeRequired?Notes
methodstringYesMust be credits/get

Examples​

curl -sS \
-H "Authorization: Bearer <access_token>" \
-H "Accept: application/json" \
"https://v3.idibu.com/c/oauth/v1?method=credits/get"

Response​

Returns a JSON payload containing the current SMS credit balance and currency.

{
"credits_number": "123.45",
"currency": "GBP"
}