Create or Refresh Token

Creates a new access token (grant_type=client_credentials) or refreshes an existing one (grant_type=refresh_token). Request must be application/x-www-form-urlencoded.

Create token (client_credentials): Requires username and optionally scope, expires_in, refreshable. Supported scopes are admin and groups. Non-admin users can only create tokens for themselves and cannot request admin scope.

Refresh token (refresh_token): Requires grant_type, refresh_token, and access_token; optionally expires_in and refreshable.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
enum
Defaults to client_credentials

OAuth2 grant type

Allowed:
string

Required for client_credentials; user to create token for

string

Space-separated scopes (e.g. "admin" or "groups")

int64
Defaults to 0

Token validity in seconds (0 or omitted for default)

boolean

Whether the token can be refreshed

string

Required for refresh_token grant; the refresh token

string

Required for refresh_token grant; the current access token

Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Choose an example:
application/json