Skip to main content
POST
/
oauth2
/
token
OAuth2 Token Endpoint
curl --request POST \
  --url https://api.provident.ae/v2/oauth2/token \
  --header 'Content-Type: application/x-www-form-urlencoded'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 3600,
  "scope": "<string>"
}

Body

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

OAuth2 grant type - must be "client_credentials"

Available options:
client_credentials
Example:

"client_credentials"

client_id
string
required

OAuth2 client identifier

Example:

"your_client_id"

client_secret
string
required

OAuth2 client secret

Example:

"your_client_secret"

Response

Access token successfully generated

access_token
string
required

The access token

token_type
string
required

Token type

Example:

"Bearer"

expires_in
number
required

Token expiration time in seconds

Example:

3600

scope
string

Token scopes