Authentication
  • 28 May 2024
  • 1 Minute to read
  • Contributors
  • PDF

Authentication

  • PDF

Article summary

Token Generation

Knovvu Cloud TTS service uses bearer tokens for authentication and authorization.

When your subscription is created your Client Id and Client Secret generated from License Distribution Manager (LDM) will be sent to you. Please use them to generate tokens as suggested below.

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

REST Service Client ActionsREST Service Actions
POST Get Integration Token LDM endpointCreate a bearer token.
Post conditionAPI Client ID, API Client Secret and below parameters are given in body: grant_type=client_credentials scope=Ldm_Integration
Business RulesSubscription should be valid.

Curl for request example is given below.

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

Example of respond message is given below:

{
    "access_token": "[token]",
    "expires_in": 31536000,
    "token_type": "Bearer",
    "scope": "Ldm_Integration"
}
Token Validity Period

LDM tokens generated for access to our service are typically valid for a duration of one year (365 days) from the moment of generation. This means that you can use the same token to make API requests for up to a year.

After the one-year period has elapsed, the LDM token will expire. To continue using our services, it will be necessary to generate a new token.


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.