NB : This endpoint only accepts multipart/form-data as request body Content-Type header. Make sure you send the request as form, adding the grant_type parameter with value client_credentials. The successful response body is a JSON object.
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params multipart/form-data
Request Code 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 'http://127.0.0.1:8081/oAuth2/token/' \
--header'Authorization: Basic <encoded-value>' \
--form'grant_type="client_credentials"'
Responses
🟢200OK
application/json
Body
Example
{"access_token":"wCF4SEwaXrVdXqGsWlJEMPGylaSXzD","expires_in":36000,"token_type":"Bearer","scope":"read user bank pay bill"}