OAuth 2.0
POST
/oauth/token
Request
Body Params application/json
grant_type
string
required
Default:
client_credentials
client_id
string
required
Example:
95f3cc16-8f8b-4141-b52f-7502bdde05bb
client_secret
string
required
Example:
PhI5Ud84ITNlZxMSVyyqUaMSbEyjGWss4mYuUi9y
scope
string
required
Default:
*
Example
{
"grant_type": "client_credentials",
"client_id": "95f3cc16-8f8b-4141-b52f-7502bdde05bb",
"client_secret": "PhI5Ud84ITNlZxMSVyyqUaMSbEyjGWss4mYuUi9y",
"scope": "*"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"grant_type": "client_credentials",
"client_id": "95f3cc16-8f8b-4141-b52f-7502bdde05bb",
"client_secret": "PhI5Ud84ITNlZxMSVyyqUaMSbEyjGWss4mYuUi9y",
"scope": "*"
}'
Responses
🟢200OK
application/json
Body
token_type
string
optional
Default:
Bearer
expires_in
string
optional
Example:
49740
access_token
string
optional
Example:
eyJ0eXAiOiJKV1QiLCJhbG
Example
{
"token_type": "Bearer",
"expires_in": "49740",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbG"
}
🟠401401