Skip to content

Read the account

GET
/v1/account
curl --request GET \
--url https://api.ringingbytes.com/v1/account \
--header 'Authorization: Bearer <token>'

The organization’s plan, the free and included image checks left, the billing period, whether checks can run, this key’s permissions, cap and spend, and the organization’s cap and spend. Needs account:read. Poll it after a checkout to see the new plan.

OK

Media typeapplication/json
object
object
required
Allowed value: account
organization
required
object
id
required
string
name
required
string
plan
required
object
id
required
string
name
required
string
family
required
string
Allowed values: api helpdesk
subscription_status
required
string
free_checks_remaining
required
number
included_checks
required
object
per_period
required
number
remaining
required
number
period
required
object
start
required
string
end
required
string
can_run_checks
required

False when checks are refused for money: Free with its free image checks used (also after a failed payment). Caps are in api_key and organization_cap.

boolean
payment_failed
required
boolean
helpdesk_scanning_allowed
required
boolean
api_key
required
object
id
required
string
scopes
required
Array<string>
Allowed values: checks:create account:read billing:checkout
created_via
required
string
Allowed values: agent dashboard
monthly_cap_usd
required
Any of:
number
spend_usd
required

Billed usage of this key in the current period.

number
organization_cap
required
object
monthly_cap_usd
required
Any of:
number
spend_usd
required
number
billing_url
required
string

Example

{
"object": "account",
"plan": {
"family": "api"
},
"api_key": {
"scopes": [
"checks:create"
],
"created_via": "agent"
}
}