cURL
curl --request POST \ --url https://bank.domain.com/v1/oauth/token \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'grant_type=<string>' \ --data 'client_id=<string>' \ --data 'client_secret=<string>'
{ "access_token": "<string>", "expires_in": 123, "token_type": "<string>" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Token fetched
The response is of type object.
object