v1

latestOpenAPI 3.1.02026-07-242735131.1 MB
Company Tokens

Create a new token for a company

Creates new tokens for a given company

post/v1/companies/{company_id}/create-token

Path parameters

company_idstring required

The ID of the company

Query parameters

scopestring

The scope of the token

Response

Success

access_tokenstring required

The OAuth2 access token (JWT). Include this in the Authorization: Bearer <token> header for API requests.

expires_ininteger required

The number of seconds until the access token expires.

refresh_tokenstring required

The refresh token used to obtain a new access token when the current one expires.

Example response

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.cThIIoDvwdueQB468K5xDc5633seEFoqwxjF_xSJyQQ",
  "expires_in": 3600,
  "refresh_token": "16ab2c69-fd3c-4112-855d-2052baa10d20"
}