Getting an Access Token
  • 14 Nov 2024
  • 1 Minute to read
  • Contributors
  • PDF

Getting an Access Token

  • PDF

Article summary

This section provides a step-by-step guide to obtaining an access token, which is required to authenticate and authorize API requests for secure interactions between Knovvu Virtual Agent and and the client application.

Prerequisites

clientId and clientSecret must be obtained from the SESTEK Sales Support & Operations Team. For on-prem deployments, an application must be created using the Host account.


Get an Access Token

Endpoint:
URL: https://{{identityBaseUrl}}/connect/token
HTTP Method: POST
Content Type: application/x-www-form-urlencoded


Request parametersDescription
grant_typeclient_credentials type of grant is used for authentication
client_idUnique Client Id received from the SESTEK
client_secretUnique Client Secret received from the SESTEK
scopeThe scope of access such as orchestrator_external, outboundmanager_external


Examples

Here's an example of a request:

curl --location '{{identityBaseUrl}}/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id={{client_id}}' \
--data-urlencode 'client_secret={{client_secret}}'
--data-urlencode 'scope=orchestrator_external'


Expected Response:

{
  "access_token": "<access_token>",
  "token_type": "Bearer",
  "expires_in": 86399,  // valid for 1 day
  "scope": "orchestrator_external"
}


Regional API Endpoints

Each region has its own base URL, allowing users to optimize performance and minimize latency based on their geographical proximity. Use the corresponding {{baseUrl}} and {{identityBaseUrl}} from the table below when making API calls.

RegionBase URLIdentity Base URL
Parishttps://eu.va.knovvu.comhttps://identity.eu.va.knovvu.com
Ohiohttps://va.useast.knovvu.comhttps://identity.va.useast.knovvu.com
Türkiyehttps://va.tr.knovvu.comhttps://identity.va.tr.knovvu.com
Dubaihttps://va.uae.knovvu.comhttps://identity.va.uae.knovvu.com

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.