Create OAuth token
Creates an OAuth access token for authenticating subsequent API requests.
Body·
required
application/json
- Type: stringclient
_id requiredThe client id of the OAuth application.
- Type: stringclient
_secret requiredThe client secret of the OAuth application.
Responses
- application/json
Request Example for post/oauth/token
curl https://api.treasurefinancial.com/v1/oauth/token \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"client_id": "1234567890",
"client_secret": "1234567890"
}'
{
"expires_in": 86400,
"access_token": "Zj0N2fz2H6qnrw8oNdajKmffooz9gleimElYeLgeLMNhneJJqEaxFr5LtAhbGkdjiC1zb+XXFRP4sUtqUyvgpkOzJxbFsgG+wJsgTE+dcy3RP5RP4vD8DLtu3oxU7o38PwAnGp0Gj9aFL/h/i38XZAzyJKCrq8Ne",
"token_type": "Bearer"
}