Authenticate
Most of our endpoints require authentication with an access token.
Access tokens allow us to identify you or your application as part of your organisation and give you access to the resources that belong to you or have been shared with you.
Authenticate with OAuth
re.alto uses OAuth 2.0 Client Authorisation. This allows us to secure your data so that only you and those who you allow access can see it. In order to authenticate with OAuth, you may provide a client_id
and client_secret
.
After successful authentication, you receive a temporarily valid access token (a Bearer token) that you can use to authorise other API requests.
1. Creating an access (Bearer) token
Access tokens can be temporarily used to authorise API requests. You can request a (new) token by making an API request using your API credentials (client_id
and client_secret
). We use JWT tokens, which can be decoded to determine when they expire.
You can get an access token by making a POST
request on the Retrieve a bearer token endpoint, like in this example:
2. Authorise an API request
To authorise your API requests, you’ll have to provide a valid Bearer token in the Authorization
header of that request. The Bearer token is your access token.
In the following example request, your-bearer-token
has to be replaced with your token:
Was this page helpful?