--- title: "Getting an Access Token" slug: "virtual-agent-getting-an-access-token" updated: 2026-04-03T14:45:55Z published: 2026-04-03T14:45:55Z canonical: "docs.sestek.com/virtual-agent-getting-an-access-token" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.sestek.com/llms.txt > Use this file to discover all available pages before exploring further. # Getting an Access Token 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 AI Agents 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 parameters** | **Description** | | --- | --- | | `grant_type` | `client_credentials` type of grant is used for authentication | | `client_id` | Unique Client Id received from the SESTEK | | `client_secret` | Unique Client Secret received from the SESTEK | | `scope` | The scope of access such as `orchestrator_external`, `outboundmanager_external` or `dataservice_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": "", "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. | Region | Base URL | Identity Base URL | | --- | --- | --- | | Paris | https://eu.va.knovvu.com | https://identity.eu.va.knovvu.com | | Ohio | https://va.useast.knovvu.com | https://identity.va.useast.knovvu.com | | Türkiye | https://va.tr.knovvu.com | https://identity.va.tr.knovvu.com | | Dubai | https://va.uae.knovvu.com | https://identity.va.uae.knovvu.com |