riverty logo

Docs

Authentication

To authenticate with our API, use Auth0 as the identity provider. Auth0 allows you to securely access our services using the provided credentials.

Retrieve Access Token

To interact with our Collection API, you need to obtain an access token. This token serves as a credential that enables you to access our API functionalities. Follow these steps to retrieve your access token:

  1. Send a Request:
    Send a request to the designated endpoint provided by the authentication service.

  2. Include Required Parameters:
    Ensure your request includes necessary parameters such as client credentials and authorization codes.

  3. Receive Access Token:
    Upon successful authentication, the endpoint will respond with an access token. Use this token to authenticate subsequent API requests.

This process ensures secure and authorized access to our Collection API's capabilities.

Sample Request

POST https://{{auth0Domain}}/oauth/token
content-type: application/x-www-form-urlencoded

grant_type=client_credentials&client_id={{auth0ClientId}}&client_secret={{auth0ClientSecret}}&audience=https://api-test.horizonafs.io

Sample Response

HTTP 200 OK

{
  "access_token": "eyJhbG...",
  "scope": "fullcontrol:users",
  "expires_in": 86400,
  "token_type": "Bearer"
}