POST
/
auth
/
token
curl --request POST \
  --url http://localhost:8080/auth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'grant_type=<string>' \
  --data scope= \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>'
{
  "access_token": "52ea3d1b4f9a53fffb67...",
  "token_type": "bearer",
  "expires_in": 3600
}
curl -i -X POST \
  -u <username>:<password> \
  http://localhost:8080/auth/token \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'moneykit-version: 2023-02-18' \
  -d grant_type=string \
  -d scope= \
  -d client_id=string \
  -d client_secret=string


{
"access_token": "52ea3d1b4f9a53fffb67...",
"token_type": "bearer",
"expires_in": 3600
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

moneykit-version
string
default:2023-02-18

Body

application/x-www-form-urlencoded

Response

201
application/json

Generated access token.

MoneyKit API access token.