Skip to main content
POST
/
oauth2
/
token
Generate OAuth2 client credentials token
curl --request POST \
  --url https://api.mycreditapp.ai/v1-beta/oauth2/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "<string>",
  "client_secret": "<string>"
}
'
{
  "access_token": "<string>",
  "expires_in": 123
}

Body

application/json
client_id
string
required

Unique identifier of the API client issued during registration

Required string length: 1 - 128
Examples:

"5gtyhu78ujmlko90iikmjunbh"

"1example23456789abcdefghijk"

client_secret
string<password>
required

Secret key associated with the client_id, used to authenticate the client

Required string length: 1 - 64
Example:

"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/="

Response

Successful Response

access_token
string
required

OAuth2 access token that must be used to authorize API requests

Minimum string length: 1
Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

expires_in
integer
required

Lifetime of the access token in seconds

Examples:

3600

7200