Loading...

GET /api/sms/balance

A team tracking its text messaging costs can check the account’s service balance before a day of sending notices. Flotas control returns this balance as a monetary amount.

The response shows the current account’s balance. When another account supplies the licences, SMS charges go to that account. Keep this distinction in mind when comparing the balance with a message cost in the history.

Request Details

HTTP method GET
Path /api/sms/balance

Request Parameters

Send this request without parameters or a body.

Authentication Required

Requires read permission on the SMS page.

Send the token in the Authorization: Bearer {token} header. See Authentication.

Example Request

GET /api/sms/balance HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token}

Response Parameters

The Presence column describes an HTTP 200 response. Conditional fields are omitted when they have no value.

balance is a numeric amount. apiUsage and apiDailyUsage are API usage counters.

FieldTypePresenceDescription
balanceNumberAlwaysNumberAlwaysService balance of the current account.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAPI units the user had used today before this request.

Example Successful Response

The example shows an HTTP 200 response.

{ "balance": 12.5, "apiUsage": 1, "apiDailyUsage": 24 }

Errors

HTTP statusWhen it occurs
400If the request quota has been reached, error contains the reason.
401If a valid Bearer token is missing.
403If the user lacks the required permission. The reason appears in error.
500An unexpected error occurred while processing the request.

In an error response that includes success, its value is false and error contains the message.

Example Error Response

{ "success": false, "error": "Your user does not have permission to do this." }
Index
Last modification: 2026-11-30 22:53:22