POST
/
connect
/
token
curl --request POST \
  --url https://sts.demo.trykariz.com/connect/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=password \
  --data username=john@nike.com \
  --data password=secretpassword \
  --data client_id=client123 \
  --data client_secret=clientsecret123
{
  "access_token": "ya29.a0AfH6SMDtYZB_...your_access_token...",
  "token_type": "bearer",
  "expires_in": 3600,
  "scope": "read write"
}

Body

application/x-www-form-urlencoded
grant_type
enum<string>
default:password
required

The type of OAuth grant being used.

Available options:
password
username
string
required

Your developer username in Kariz. This can be found in your account. It's the credential you use to login.

Example:

"john@nike.com"

password
string
required

Your developer password in Kariz. This can be found in your account. It's the credential you use to login.

Example:

"secretpassword"

client_id
string
required

The client id for your application. This can be found in your account.

Example:

"client123"

client_secret
string
required

The client secret for your application. This can be found in your account.

Example:

"clientsecret123"

Response

200
application/json
Successful response containing the access token.
access_token
string

The token that can be used to authenticate API requests.

Example:

"ya29.a0AfH6SMDtYZB_...your_access_token..."

token_type
string

The type of the token.

Example:

"bearer"

expires_in
integer

The number of seconds until the token expires. By default the token expires every 90 days.

Example:

3600

scope
string

The scope(s) associated with the token.

Example:

"read write"