Authentication
Kard API
The Kard API supports authentication via OAuth2.0’s client credentials. Issuer client will be provided
client_id
and client_secret
by Kard.
Issuer client sends a POST request with the following headers to the Cognito URL below to retrieve
the access_token
.
The returned access token must be used in the Authorization
header as a bearer token
in subsequent requests.
Code Recipe:
GET Session Token
request in root directory- baseURL:
https://test-rewards-api.auth.us-east-1.amazoncognito.com
{clientHash}
: base64 encoded copy of{client_id}:{client_secret}
, provided in the postman_environment.json.
Example response: