Read the account
GET
/v1/account
const url = 'https://api.ringingbytes.com/v1/account';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
object
required
organization
required
object
id
required
string
name
required
string
plan
required
object
id
required
string
name
required
string
family
required
string
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
organization_cap
required
billing_url
required
string
Example
{ "object": "account", "plan": { "family": "api" }, "api_key": { "scopes": [ "checks:create" ], "created_via": "agent" }}