Skip to main content
POST
/
oauth
/
token
Exchange or refresh an OAuth token
curl --request POST \
  --url https://api.izap.ai/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'code=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'code_verifier=<string>' \
  --data 'refresh_token=<string>'
{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "refresh_token": "R2c8v5b3n1...",
  "token_type": "bearer"
}

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
authorization_code,
refresh_token
code
string
redirect_uri
string<uri>
client_id
string
client_secret
string
code_verifier
string
refresh_token
string

Response

Token issued.

access_token
string
refresh_token
string
token_type
string
Example:

"bearer"