access token generation
Deprecated
POST
/api/auth/generate_token
pay2m-apiprovider-api
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/auth/generate_token' \
--header 'Content-Type: application/json' \
--data-raw '{
"grant_type": "client_credentials"
}'
Response Response Example
201 - Success
{
"access_token": "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2NjcsImV4cCI6MTczNTI2MDg2M30.giCOGNu3qk2Po_QTXJTiyFdDBRjLZVOp0Mkzt4Vw010",
"token_type": "Bearer",
"expires_in": 1800
}
Request
Body Params application/json