How Do API Tokens and Sessions Work in Buzz and How You Can Manage Them

Last updated: December 4, 2026

When using the Buzz Public API, you may notice multiple active API tokens for the same user or encounter unexpected authentication issues. This article explains how API tokens are created, how they are associated with browser sessions and workspaces, when they expire or get revoked, and how to maintain a stable API integration.

How Are API Tokens Created?

A new API token is generated each time a user logs in. This includes:

  • Logging in from a new browser or device.

  • Logging in from an incognito window.

  • Logging in after browser storage has been cleared.

Each login creates a separate session with its own API token. This means a user can have multiple active tokens across different sessions.

Does clicking "Reveal" create a new token?

No. Clicking Reveal on the API Token page simply unmasks the token already associated with your current browser session. It does not generate a new one.

Why Might Different Browser Tabs Show Different Tokens?

Tabs opened in the same browser profile and on the same domain normally share the same token because the frontend stores it in the browser's localStorage, which is shared across those tabs.

However, different token values may appear if:

  • The tabs are open in different browsers, browser profiles, or incognito sessions.

  • The tabs are open on different domains (for example, dash.buzz.ai and your White Label domain).

  • A tab was opened using a URL containing a ?token= parameter.

  • A tab was left open before a new login in another tab. Refreshing the older tab should display the current token.

Can I identify which token belongs to a specific session?

There is currently no reliable way to map a token directly to a specific session through the API.

You can retrieve session information using the following endpoint:

GET https://api.buzz.ai/public_api/auth/sessions

Authenticate the request as the relevant user. The endpoint returns information about active sessions, including:

  • Session ID

  • IP address

  • Location

  • User agent

  • Session creation date

However, it does not return token values, indicate which session is currently active in the browser, or provide a last_used_attimestamp.

In practice, you can compare the browser, IP address, and session creation time to identify a likely session, but this is not a guaranteed way to match a token to a session.

Do API Tokens Expire?

Yes. API tokens expire automatically after 30 days of inactivity.

Tokens used regularly by an active API integration remain valid, provided they are used at least once within the 30-day period.

A token may also be revoked under the following circumstances:

  • Logging out: Clicking Log out revokes the token associated with that browser session only.

  • Changing the password: Changing a user's password revokes all their tokens except the token associated with the session used to make the change.

  • Deleting or blocking a workspace: Workspace deletion or blocking can affect API authentication and revoke associated tokens. In particular, deleting a workspace revokes the tokens of all users, including White Label admins, who had that workspace selected at the time of deletion. Tokens associated with other selected workspaces are not affected.

  • Support intervention: The Buzz Support team can revoke tokens when necessary.

Important: If your API integration uses a token generated by a browser session, do not log out of that session. You can close the browser tab or window instead. Closing it does not terminate the server-side session.

How Does the Selected Workspace Affect API Requests?

API requests are executed in the context of the workspace selected in the authenticated session.

If a request does not explicitly include the ?space= parameter, it uses the workspace currently selected in that session.

This means that switching workspaces in the same browser session can silently change the workspace used by your API integration.

Best practice: Always include the ?space= parameter with the ID of the intended workspace in your API requests.

This ensures that requests target the correct workspace regardless of which workspace is currently selected in the browser session.

How Can I Maintain a Stable API Integration?

For integrations that require a consistent API token, we recommend creating a dedicated browser session used exclusively for API access.

Follow these steps:

  1. Open a separate browser profile or an incognito window.

  2. Log in to Buzz using the user account associated with your API integration.

  3. Copy the API token generated for that session.

  4. Configure your integration to use this token.

  5. Close the browser window without clicking Log out.

To avoid unexpected authentication issues:

  • Do not log out of the dedicated session.

  • Do not use this session for regular platform activity.

  • Do not switch workspaces in this session.

  • Include the ?space= parameter with the intended workspace ID in every API request.

  • Avoid changing the password of the user associated with this session, as this can revoke its token.

  • Make at least one API request every 30 days to prevent the token from expiring due to inactivity.

Closing the browser window without logging out does not terminate the server-side session, so the token can remain valid while the session is active.

Note: This approach helps maintain a stable integration but does not provide a permanent token. The token can still be revoked if the associated workspace is deleted or blocked, the user's password is changed, or the session is explicitly logged out.

How Can I View or Revoke Active Sessions?

There is currently no UI page where you can view all active API tokens for a user.

However, you can manage sessions through the API:

List active sessions:

GET https://api.buzz.ai/public_api/auth/sessions

This endpoint returns session information, including session IDs, IP addresses, locations, user agents, and creation dates. It does not expose the associated token values.

Revoke a specific session:

DELETE https://api.buzz.ai/public_api/auth/sessions?session_id=<id>

Revoking a session invalidates the token associated with it.

Be careful when revoking sessions used by API integrations, as doing so will interrupt authentication for those integrations.

If you need help identifying or revoking extra sessions, contact Buzz Support. Provide the user's email address and as much information as possible about the session you want to revoke. Make sure to identify any session that must remain active for your integration.

Is an Account-Wide API Token Available?

Currently, Buzz does not support a permanent, account-wide API token.

API tokens are associated with individual user sessions rather than being shared across an entire account.

If you need a single, permanent API key for multiple workspaces or integrations, this functionality is not currently available.