Authenticating your data source to use our APIs

Learn how to authenticate your front end to enable it to send data to Affective Computing through API calls

To connect the front end of your data source (app or device) to Affective Computing, you must complete the authentication process and obtain an access token. This access token enables you to securely call our APIs and send external data.

Our server hosts are protected resources that provide authentication and authorization via OAuth 2.0 (JWT "JSON WEB TOKEN").

You must include your access token in the header of your API calls in the following format:

Key
Value

Authorization

Bearer <your valid access token>

If your request is authorized, your application can access the outcomes associated with your tenant account.

However, before obtaining an access token, you must first generate an API key and its corresponding secret key.

Generating an API key

You can generate your API and secret keys either using the Portal or an API itself.

Obtaining an API key from the Portal

Obtaining an API key

Obtaining an API key using an API

You can obtain your keys using the GenerateApiKey endpoint in the ApiKeys collection. For detailed API documentation, see:

Generate an API key

Obtaining an access token

Access tokens allow you to make requests to our APIs. To obtain an access token, do the following:

  1. Generate your access token using the Auth endpoint in the TokenAuth collection.

For detailed API documentation, see:

Issue a new access token

Last updated

Was this helpful?