Obtain access token
If using the Client Credentials method, Samvaad will call this endpoint to exchange its Client ID and Client Secret for a short-lived JWT Bearer token.
Samvaad will authenticate to this endpoint using HTTP Basic Authentication. The returned access token will be cached and used in the Authorization header for all subsequent API calls until it expires.
Note: This endpoint is not needed if you opt for the static API Key authentication method.
Authentication
HTTP Basic authentication for the /auth endpoint, using the Client ID as the username and the Client Secret as the password.
Headers
A unique identifier for this specific API call, generated by the client (Samvaad).
Request
The request body must specify the grant type as ‘client_credentials’.
The OAuth2 grant type. Must be client_credentials.
Response headers
The identifier for an end-to-end operation, passed from the client to be echoed in the response.