Authentication

Capacity connects to Talkdesk using an OAuth 2.0 Client Credentials grant. This is a machine-to-machine authentication flow: it issues a bearer token scoped to specific Talkdesk data resources, and doesn't require an end-user login. The same client can hold the scopes for multiple Capacity features (Calls, Chat), so most accounts only need to create one client.


Before You Begin

Before starting, confirm the following:

  • You have a TalkDesk partner account with access to Partner Project. If you are unsure, log in to your TalkDesk Workspace and look for the Partner Project icon in the sidebar. If it is not present, contact TalkDesk to request access.
  • You have your TalkDesk account login URL to hand — you will need the subdomain portion (Base URI) and regional domain (Region) when completing the information handover.

Configuration

The OAuth client for the CI integration is created and managed in TalkDesk’s Partner Project portal. FOllow these steps to configure authentication

Access Partner Project

Log in to your TalkDesk account via Workspace. In the left sidebar, click the Partner Project icon. 

Create OAuth Client

Once logged in to Partner Project, click the Create OAuth client button. This opens the new client configuration form.

In the configuration form, complete the following fields:

FieldValue
NameEnter a descriptive name for the client, for example Capacity CI Integration.
Grant TypeSelect Client Credentials. This is a machine-to-machine flow that does not require a user login.
Redirect URINo Redirect URI is required for the Client Credentials grant type.

Next, add the scopes for the feature(s) you're enabling:

  • Enabling Calls? Add the scopes listed in the Talkdesk Calls article.
  • Enabling Chat? Add the scopes listed in the Talkdesk Chat article.
  • Enabling both? Add all scopes from both articles to this same client.

After configuring the name, grant type, and scopes, save the client. Talkdesk will display the generated Client ID and Client Secret — download them or copy each value manually.


Account Information

In addition to the OAuth credentials, CI requires two values that identify your specific TalkDesk environment.

Base URI

Your TalkDesk account URL follows the pattern:

https://<base-uri>.talkdeskid.com

The <base-uri> portion — everything before .talkdeskid.com — is your Base URI. For example, if your TalkDesk login URL is:

https://mycompany.talkdeskid.com

then your Base URI is mycompany.

Region

The Region is the TalkDesk domain that hosts your account. Common values are:

Check the URL you use when logging in to TalkDesk. The domain after the subdomain (e.g. talkdeskapp.com or talkdeskappca.com) is your Region value. If you are unsure, your TalkDesk account manager can confirm.


What to Share with Capacity

ItemDescription
Client IDThe Client ID generated in Partner Project
Client SecretThe Client Secret generated in Partner Project
Base URIThe subdomain prefix (e.g. mycompany from mycompany.talkdeskid.com)
RegionThe TalkDesk regional domain (e.g. talkdeskapp.com)



Was this article helpful?