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
| Name | Type | Required? | Notes |
|---|---|---|---|
method | string | Yes | Must be credits/get |
Examples
cURL (recommended)
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"
}