Skip to content

Authentication and Authorization

tim-contexta edited this page Jul 25, 2022 · 5 revisions

Authentication and Authorization

To be able to make requests to the Contexta Speech API, a client must provide the appropriate credentials. API endpoints expect to find security credentials included with every request in the Authorization header.

The Authorization header should have the following syntax:

Authorization: <scheme> <credentials>

Requests missing the Authorization header will return error response with status 403.

JWT Scheme

To make a request to the Contexta Speech API using the JWT authentication scheme, you will need to register as a client first. The endpoint /clients/register can be used to register as a client by providing a name, password and an email. Once a client is registered the /clients/login endpoint can be used to get an access token to be provided in the authorization header. Tokens expire in 24 hours.

Example: Authorization: JWT <token>

Clone this wiki locally