How to get an access token

Incode's platform includes two primary access control levels. The first level is the session token and it's scoped to an onboarding session. The second level is the executive token and this token provides access to any session, as well as privileged operations. Privileged operations include, but are not limited to operations such as, asynchronously fetching scores or other pieces of past session data, using our SMS endpoint, and fetching data after a webhook is received.

Session Tokens

A session token is returned by the omni/start API endpoint and is used for the immediate activities related to the Incode session it was generated for. For example, once calling the omni/start endpoint, the same token should be used to call subsequent capture and process API calls. The token returned in the omni/start response is used for the X-Incode-Hardware-Id header. The TTL (time to live) value of these tokens defaults to 90 days.

Executive Tokens

json text { "email": "some@email.com", "password": "somePassword" }

Response:

The response will be a token that you will use for the X-Incode-Hardware-Id header

token: String. Access token for future API calls

json text { "token": "eyJhbGciOasfasiJ9.eyJleHRl2OTg5NX0.zdbAC-kE-I71" }

Request Header

This is the standard request header that will be used for all API calls