Skip to main content
POST
/
v1
/
customer
/
auth
/
token
OAuth 2.0 token endpoint
curl --request POST \
  --url https://api.example.com/v1/customer/auth/token \
  --header 'authorization: <authorization>' \
  --header 'content-type: <content-type>' \
  --header 'user-agent: <user-agent>' \
  --data '
{
  "grant_type": "<string>",
  "code": "<string>",
  "redirect_uri": "<string>",
  "client_id": "<string>",
  "client_secret": "<string>",
  "code_verifier": "<string>",
  "refresh_token": "<string>"
}
'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 123,
  "refresh_token": "<string>",
  "scope": "<string>"
}

Headers

authorization
string
required
content-type
string
required
user-agent
string
required

Body

application/json
grant_type
string
required
Minimum string length: 1
code
string
redirect_uri
string
client_id
string
client_secret
string
code_verifier
string
refresh_token
string

Response

Access token issued

access_token
string
token_type
string
Example:

"Bearer"

expires_in
number
refresh_token
string
scope
string