Skip to main content
POST
Issue or refresh a token

Body

application/json
grant_type
enum<string>
required
Available options:
authorization_code,
refresh_token
client_id
string<uuid>
required
client_secret
string
required
code
string

Required for grant_type=authorization_code.

refresh_token
string

Required for grant_type=refresh_token.

Response

Tokens issued successfully.

workspace_slug
string
required

Slug of the workspace the user authorized. Use this to identify the connected account in your app.

Example:

"acme-corp"

access_token
string
Example:

"eyJ..."

refresh_token
string
Example:

"eyJ..."

token_type
string
Example:

"Bearer"

expires_in
integer
Example:

3600