Api token

Api Token

get

Generate an API token for the current user.

Use this endpoint to generate a short-lived API token for the current user that can be used for generic automation tasks.

Args: auth_context: The authentication context.

Returns: The API token.

Authorizations
OAuth2clientCredentialsRequired
Token URL: Refresh URL:

OAuth2authorizationCodeRequired
Authorization URL: Token URL: Refresh URL:
Responses
200

Successful Response

application/json
Responsestring
get
/auth/api_token
GET /auth/api_token HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200

Successful Response

text

Last updated

Was this helpful?