Skip to main content
POST
/
api
/
v1
/
oauth2
/
token
Issue a new access token
curl --request POST \
  --url https://core.quidkey.com/api/v1/oauth2/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "grant_type": "<string>",
  "client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "client_secret": "<string>"
}
'
{
  "success": true,
  "data": {
    "access_token": "example_access_token_xyz789",
    "refresh_token": "example_refresh_token_abc123",
    "token_type": "Bearer",
    "expires_in": 900
  }
}

Body

application/json

Request token with given grant type - client_credentials, magic_code, google_id_token, or refresh_token

Request token with given grant type - client_credentials, magic_code, google_id_token, or refresh_token

grant_type
string
required
Allowed value: "client_credentials"
client_id
string<uuid>
required

The client ID of the partner or merchant

Example:

"547544c3-eeac-492e-8df9-5a52ca4e6bdf"

client_secret
string
required

The client secret of the partner or merchant

Example:

"b717adcac3f26e8034574021fa647cd7d4edd67b615046df387f6712c3601048"

Response

Success

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required