Authentication
  • 31 Jan 2025
  • 1 Minute to read
  • Contributors
  • PDF

Authentication

  • PDF

Article summary

Token Generation for Knovvu Cloud SR Service

Knovvu Cloud Speech Recognition (SR) service utilizes bearer tokens for authentication and authorization. These tokens are required to securely access API endpoints.

When your subscription is created, a Client ID and Client Secret are generated from the License Distribution Manager (LDM) and sent to you. Use these credentials to generate tokens as described below.


Authentication Endpoint

To obtain an authentication token, send a request to the following endpoint:

🔗 Endpoint:

https://identity.ldm.knovvu.com/connect/token

Token Request Process

REST Service Client ActionsREST Service Actions
POST Get Integration Token (LDM endpoint)Generates a bearer token for authentication.
Required Parameters (Body):client_id, client_secret, grant_type=client_credentials, scope=Ldm_Integration
Business Rules:Subscription must be valid.

Example Token Request (cURL)

Below is an example of a cURL request to generate an authentication token:

curl --location 'https://identity.ldm.knovvu.com/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=[your_client_id]' \
--data-urlencode 'client_secret=[your_client_secret]' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=Ldm_Integration'

Example Token Response

Upon a successful request, the API will return a response similar to the following:

{
    "access_token": "[your_token]",
    "expires_in": 31536000,
    "token_type": "Bearer",
    "scope": "Ldm_Integration"
}

Token Validity & Expiry

📌 LDM tokens are valid for one year (365 days) from the moment of generation.

  • Once generated, the same token can be used for API requests until it expires.
  • After one year, the token must be renewed by generating a new one using the same process.
  • It is recommended to automate the renewal process before expiration to avoid service disruptions.

For more information on authentication and token management, please refer to our API Authentication Guide.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.