v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Get access token

Retrieve an access token, see more information about authorization on https://apidocs.aikido.dev/reference/authorization

post/token

Headers

Authorizationstring required

Use the Basic auth header with base64 encoding where the username is your client_id and password is the client_secret

Request body

grant_type'client_credentials' | 'authorization_code' | 'refresh_token' required
codestring

The authorization code in case of authorization_code grant type

redirect_uristring

The redirect uri in case of authorization_code grant type

refresh_tokenstring

The refresh token in case of refresh_token grant type

Response

Authorization has been granted

access_tokenstring

The access token in JWT format

expires_ininteger

The number of seconds the access token is valid for

token_type'bearer'

Example response

{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.NHVaYe26MbtOYhSKkoKYdFVomg4i8ZJd8_-RU8VNbftc4TSMb4bXP3l3YlNWACwyXPGffz5aXHc6lty1Y2t4SWRqGteragsVdZufDn5BlnJl9pdR_kdVFUsra2rWKEofkZeIC4yWytE58sMIihvo9H1ScmmVwBcQP6XETqYd0aSHp1gOa9RdUPDvoXQ5oqygTqVtxaDr6wUFKrKItgBMzWIdNZ6y7O9E0DhEPTbE9rfBo6KTFsHAZnMg4k68CDp2woYIaXbmYTWcvbzIuHO7_37GT79XdIwkm95QJ7hYC9RiwrV7mesbY4PAahERJawntho0my942XheVLmGwLMBkQ",
  "expires_in": 3600,
  "token_type": "bearer"
}