-
Notifications
You must be signed in to change notification settings - Fork 0
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.
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>