Skip to main content
Voight APIs use OAuth 2.0 for authentication. To authenticate, you need to obtain an access token by following these steps:
  1. Create Your Auth Tokens: In your organization page, create your auth tokens in order to obtain your client_id and client_secret.
  2. Request an access token: Using your client_id and client_secret, make a request to the token endpoint as follows:
    • URL: https://human-artistree-prod.auth.us-east-1.amazoncognito.com
    • Endpoint: /oauth2/token
    • Method: POST
    • Content-Type: application/x-www-form-urlencoded
    • Body Parameters:
      • grant_type: Set to client_credentials
      • client_id: Your client ID
      • client_secret: Your client secret

Example Request

curl --location 'https://human-artistree-prod.auth.us-east-1.amazoncognito.com/oauth2/token' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=client_credentials' \
  --data-urlencode 'client_id=YOUR_CLIENT_ID' \
  --data-urlencode 'client_secret=YOUR_CLIENT_SECRET'

Example Response

JSON
{
  "access_token": "YOUR_ACCESS_TOKEN",
  "token_type": "Bearer",
  "expires_in": 3600
}
  1. Use the access token: Include the access_token in the Authorization header of your API requests as follows:
HTTP
Authorization: Bearer YOUR_ACCESS_TOKEN