Create a chatbot token
Create, store, replace, and revoke a dedicated workspace token for HubSpot chatbots and Breeze.
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
Click Create chatbot token.
Copy the value from Copy your token now.
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.

Actual token-management controls from a test workspace. No token value is included in this screenshot.
3. Store it in HubSpot
Breeze Customer Agent
Open the recording-request action under Customer Agent → Train → Actions.
In Configure API, choose API Key as the authentication type.
Open the secret manager beside the API Key selector and add a secret.
Name it
SCREENDESK_HUBSPOT_BOT_TOKEN. HubSpot accepts letters, numbers, and underscores in the secret name.Paste the token itself as the secret value. Do not add
Bearerto the value: HubSpot's native API Key action sends the secret directly in the Authorization header.Save the secret and select it in the action.
Select the same secret in the completion-check action.

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
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.
Open the correct workspace's token page.
Click Replace token and confirm.
Copy the new value immediately.
Update the HubSpot secret used by both Breeze actions, and any rule-based snippets using the old value.
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.
Workspace token versus customer link
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.
Next: Rule-based chatflows or Breeze Customer Agent.
Was this helpful?