Token

Exchange authorization code for access token Validates the authorization code and creates a JWT access token for the holder

post

Creates a new access token using an authorization code

Body

Request containing the authorization code

authorization_codestringRequired

Authorization code received from the authorization request The code must be a non-empty string in format of [A-Za-z0-9-_] with length between 32 and 128 characters

Example: AF3DiOZy_x1jF9mKJqUwN5JDnpxk0GlwJMdfQOiAbc
Responses
201
Success
application/json
post
POST /v1/tokens HTTP/1.1
Host: api
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "authorization_code": "AF3DiOZy_x1jF9mKJqUwN5JDnpxk0GlwJMdfQOiAbc"
}
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZW1wZToweDEyMzQ1Njc4OTBhYmNkZWYiLCJpYXQiOjE2NjQ4OTc3NDIsImV4cCI6MTY2NDkwMTM0MiwiaXNzIjoiaHR0cHM6Ly9pc3N1ZXItc2VydmljZS5leGFtcGxlLmNvbSIsImF1ZCI6Imh0dHBzOi8vaXNzdWVyLXNlcnZpY2UuZXhhbXBsZS5jb20ifQ.Kt-SbnKU9S7BbCvHVsgCU3KnUYvekrFQCRRjYSlbGC0",
  "token_type": "Bearer",
  "expires_in": 3600
}