Skip to content

Get the account

GET /v1/account

The account and limits behind your API key.

API key with the read scope.

Request

Terminal window
curl "https://api.formatjet.com/v1/account" \
-H "Authorization: Bearer $FORMATJET_API_KEY"

Responses

200 OK

Account

FieldTypeDescription
organizationobject
organization.idstring
organization.namestring
planobject
plan.idstring
plan.namestring
keyobject
key.idstring
key.namestring
key.prefixstring
key.mode"live" | "test"
key.scopes"convert" | "read" | "webhooks"[]
creditsobject
credits.availablenumberCredits a new job can use
credits.heldnumberCredits held by jobs that are running
credits.monthlyobject | nullThis month’s plan credits, if the plan grants them
credits.monthly.grantednumber
credits.monthly.remainingnumber
credits.monthly.resets_atstring
limitsobject
limits.max_file_bytesnumber
limits.concurrent_jobsnumber
limits.requests_per_secondnumber | null
limits.jobs_per_daynumber | nullTest keys only: free jobs a day; live jobs spend credits
limits.jobs_todaynumber | null
Example
{
"organization": {
"id": "org_01JB0Y6S7T8V9W0X1Y2Z3A4B5C",
"name": "Acme"
},
"plan": {
"id": "free",
"name": "Free"
},
"key": {
"id": "key_01JBW2N4P6Q8R0S2T4V6W8X0Y2",
"name": "Staging server",
"prefix": "fj_test_7Gk2",
"mode": "test",
"scopes": [
"convert",
"read",
"webhooks"
]
},
"credits": {
"available": 300,
"held": 0,
"monthly": {
"granted": 300,
"remaining": 300,
"resets_at": "2026-11-01T00:00:00.000Z"
}
},
"limits": {
"max_file_bytes": 1048576,
"concurrent_jobs": 2,
"requests_per_second": 2,
"jobs_per_day": 100,
"jobs_today": 4
}
}

Errors

Problem documents (application/problem+json); see Errors.

StatusCodeWhen
401unauthorizedNo API key, or one that’s unknown or revoked.
403forbiddenThe key lacks the read scope, or the plan has no API.
429rate_limitedMore requests than the plan allows in 10 seconds: wait Retry-After seconds.