Skip to main content
POST
Exchange your client_id and client_secret for an access token. The token is valid for 15 minutes and must be included in the Authorization: Bearer <token> header of all subsequent API requests.
Token Lifecycle:
  • Validity: 15 minutes (900 seconds)
  • Refresh: Use the refresh_token to get a new access_token without re-authenticating
  • Best practice: Cache tokens and refresh before expiry
Don’t have credentials yet? Sign up at console.quidkey.com to get your client_id and client_secret for development and production environments.

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