Skip to main content
POST
/
api
/
v1
/
auth
/
token
cURL
curl --location --request POST "https://api.kashimi.tech/api/v1/auth/token"
--header "Content-Type: application/x-www-form-urlencoded"
--header "Accept: application/json"
--header "Authorization: Basic BASE64_CLIENT_CREDENTIALS"
--data-urlencode "grant_type=client_credentials"
--data-urlencode "scope=payments:read payments:write providers:read"
{
  "access_token": "YOUR_ACCESS_TOKEN",
  "token_type": "Bearer",
  "expires_in": 1800
}

Headers

Authorization
string
required

Basic authorization header with client credentials in the format 'Basic '

Body

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

The type of grant being requested.

Available options:
client_credentials
Example:

"client_credentials"

scope
string
required

Scopes being requested. Must be a space-separated list of scopes.

Example:

"payments:read payments:write providers:read"

Response

Returns the access token

access_token
string
required

The JWT access token.

Example:

"YOUR_ACCESS_TOKEN"

token_type
string
required

Token type.

Example:

"Bearer"

expires_in
number
required

Expiration time of the token in seconds.

Example:

1800