Skip to main content
POST
Get a token
Fill in your client_id and client_secret, then Run it. The access_token you receive is the Bearer credential for every other endpoint. Cache the access token and reuse it until it expires. expires_in gives its lifetime in seconds. Request a new token when the cached one expires or the API answers 401, not once per call.

Body

application/json

Client credentials token request.

grant_type
enum<string>
required

Must be client_credentials.

Available options:
client_credentials
client_id
string
required

Your client ID for the environment.

client_secret
string
required

Your client secret for the environment.

audience
enum<string>
required

https://api.taxrock.com (the same in both environments).

Available options:
https://api.taxrock.com

Response

Token issued.

access_token
string
required

Send as a Bearer credential to the API.

expires_in
integer
required

Access token lifetime in seconds. Reuse the token until it expires.

token_type
enum<string>
required
Available options:
Bearer