For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a chatbot token

Create, store, replace, and revoke a dedicated workspace token for HubSpot chatbots and Breeze.

Development preview. The token-management screen shown here is part of the upcoming integration. It has not been released to customer workspaces. Start with the preview overview for availability and verification details.

Each Screendesk workspace has its own HubSpot chatbot token. It lets HubSpot request a customer recording and check that request's completion without enabling the workspace's general API access.

1. Select the correct workspace

Sign in to Screendesk as a workspace admin. Select the workspace connected to the HubSpot account where you are configuring the bot.

Open Settings → Integrations → HubSpot → Chatbots and Breeze. The token page is at /apps/hubspot/chatbot-token on your Screendesk host.

If the page asks you to connect HubSpot first, return to Integrations and complete the connection. A token for one workspace will not grant access to another workspace's requests.

2. Create and copy the token

  1. Click Create chatbot token.

  2. Copy the value from Copy your token now.

  3. Store it in the HubSpot server-side configuration described below.

The plaintext value is shown once. After it has been displayed, reopening the page shows the token's active status and management buttons instead of revealing it again. If you lose the value, replace the token and update the affected HubSpot actions.

Active chatbot token with its creation date and Replace token and Revoke token controls

Actual token-management controls from a test workspace. No token value is included in this screenshot.

3. Store it in HubSpot

Breeze Customer Agent

  1. Open the recording-request action under Customer Agent → Train → Actions.

  2. In Configure API, choose API Key as the authentication type.

  3. Open the secret manager beside the API Key selector and add a secret.

  4. Name it SCREENDESK_HUBSPOT_BOT_TOKEN. HubSpot accepts letters, numbers, and underscores in the secret name.

  5. Paste the token itself as the secret value. Do not add Bearer to the value: HubSpot's native API Key action sends the secret directly in the Authorization header.

  6. Save the secret and select it in the action.

  7. Select the same secret in the completion-check action.

Breeze API Key configuration selecting the dedicated chatbot secret and mapping customer_email

The selector displays the secret's name, not its value.

Rule-based chatflow

The rule-based example runs in HubSpot's server-side Run a code snippet action. It sends Authorization: Bearer <token> itself.

If your server-side editor provides an environment-secret mechanism, use SCREENDESK_HUBSPOT_BOT_TOKEN. Otherwise, replace the example's token placeholder only inside that restricted server-side editor. The previewed code editor did not expose Breeze's secret selector, so do not assume that saving a Breeze secret automatically makes it available to a chatflow snippet.

Do not put the workspace token in a customer message, recorder URL, form field, website JavaScript, or screenshot. A customer recording URL is generated separately and contains only the short-lived permission to use that particular request.

What this token can do

Allowed
Not granted

Create recording requests for the connected workspace

General Screendesk API access

Check requests created with the same token

Listing the workspace's existing recordings

Create the short-lived customer recording link

Creating video-call rooms

Remain usable while its issuing member is active and permitted

Managing users or another workspace

An ordinary Screendesk API token is not accepted on the chatbot endpoints. A chatbot token is not accepted as a general API credential.

Replace a token

Use Replace token when the value is lost, you want to rotate it, or the issuing member needs to change. The replacement is issued under the admin performing the action.

  1. Open the correct workspace's token page.

  2. Click Replace token and confirm.

  3. Copy the new value immediately.

  4. Update the HubSpot secret used by both Breeze actions, and any rule-based snippets using the old value.

  5. Run the request and completion tests again.

There is one active token per workspace. Replacement immediately revokes the previous token, so plan the update together with your HubSpot action changes. Unfinished recording links issued with the old token stop working. Existing uploaded recordings are not deleted.

Revoke a token

Click Revoke token to stop its use. Actions using that token will fail authentication, and its unfinished recording links will stop working. Create a new token and update HubSpot when you are ready to reconnect the bot.

The token also becomes unusable if its issuing member becomes inactive, leaves the workspace, or becomes watch-only. A remaining workspace admin can replace it.

Item
Where it belongs
Lifetime

Workspace chatbot token

HubSpot server-side configuration

Until revoked, replaced, or its issuing member loses access

Customer recording link

The customer conversation

24 hours, also subject to the workspace token remaining valid

Replacing a token does not transfer old requests to the new token. New requests should use the replacement credential; do not attempt to reuse an old request reference with it.

Was this helpful?