Get a token for an account

Issue a token that acts as the account's owner. Use this before calling account-scoped endpoints on a customer's behalf. A token lasts 7 days. Repeat calls return the same token while it's still valid, for up to 6 days after it was issued; after that a new token is issued and the previous one is revoked (prior_tokens_revoked counts them). Returns a token. Use it as the Authorization header for the account-scoped calls.

Prerequisites: a Partner token, and the account's id (account_id) from List accounts. The account must have an owner.

Authentication: Partner token. Any other token gets 403. account_id must be an account inside your partner's tree, otherwise 403. The token acts as the account's owner.

Rate limit: 120 requests per minute, counted per user (the token’s user).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required
Defaults to 5994

The account to get a token for. Must exist, be an account (not a partner or location), and be inside your partner's tree.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json