Workspace API tokens
SendBot API v3.1 uses scoped workspace tokens for server-to-server integrations. Create tokens from the workspace administration area and grant only the capabilities required by the integration. Account-wide legacy tokens are disabled. A workspace token cannot access another workspace, account settings, administrative routes, or resources outside its declared scopes. Supported scope families include:bots:readandbots:writesessions:readandsessions:writeresults:readandresults:writewebhooks:readandwebhooks:writeintegrations:readandintegrations:write
Authentication headers
Use one of the following headers over HTTPS.Bearer token
API key header
Least privilege example
A reporting service that only reads results should receiveresults:read; it should not receive write, billing, integration, or workspace administration permissions.
Error behavior
401 Unauthorized: token is missing, malformed, expired, revoked, or unknown.403 Forbidden: token is valid, but the requested route, operation, or resource is outside its workspace or scopes.410 Gone: the requested legacy account-token operation has been retired.