• EN
  • Bots

    A bot has a sender account in a workspace and a credential used by your integration service. Use it for build reports, monitoring alerts, or messages created by an external system.

    Create an identity

    Workspace integration settings include a Bots section with creation, rotation, revocation, usage, and test-message controls. Workspace owners and administrators can manage integrations. Organization owners and administrators and support users also have this permission where applicable.

    Choose a recognizable name and the scopes your integration needs. Save the raw token when it is created. Pulse stores its hash and does not return the existing secret in token lists. Creation returns a bot account with id, display_name, and username.

    Add that account to every channel in which it should send messages. The channel must be active and writable. Public channel visibility alone does not grant posting access. The public send endpoint resolves channel names in the credential's workspace and excludes direct messages.

    Tip

    Use a separate bot for each integration so that its name, credentials, usage, and revocation are easy to track.

    Choose scopes

    ScopeBot token capability
    chat:writeCreate channel messages and thread replies, update and delete the bot's own messages
    chat:write:threadCreate replies to existing root messages when parent_id is supplied
    channels:readDiscover public channels and channels the bot has joined

    An omitted or empty scopes list defaults to chat:write. Request scopes explicitly. Unknown scope names are rejected. Scope checks and channel access checks both apply.

    App installation tokens use the app scope catalog and effective installation grants. For them, updates require chat:update and deletes require chat:delete. See authentication and apps.

    Manage credentials through the API

    These routes require an authenticated workspace user with integration management permission. Use your signed-in workspace session. A bot token authenticates the public bot API.

    All routes below are relative to /api/v1/workspaces/{workspace_id}/integrations/bots/tokens.

    MethodSuffixResult
    GET/List credential metadata
    POST/Create a bot and token, 201
    DELETE/{token_id}Revoke a token
    POST/{token_id}/rotateReplace a token, 201
    POST/{token_id}/test-messageSend a test message, 201
    GET/usageInspect recorded API usage

    Creation accepts the following JSON body. The workspace comes from the route.

    {
      "name": "Deploy Bot",
      "scopes": ["chat:write", "channels:read"],
      "expires_at": "2027-01-01T00:00:00Z"
    }

    expires_at is optional and, when provided, must be a future RFC 3339 timestamp. The response has token and bot_token. Metadata in bot_token includes id, workspace_id, name, scopes, bot_user_id, bot_user, created_by_id, created_at, and updated_at. Expiry, revocation, and last-use fields appear when present.

    The test-message body uses a channel UUID in channel_id, along with text and optional parent_id. The public message endpoint uses the channel name in channel.

    Rotate and revoke

    Rotation creates a new token for the same bot account with the same scopes and revokes the old token in the same operation. Update your integration's secret store immediately. Sending without the old token's idempotency history requires care because idempotency keys are scoped to a credential.

    Rotation accepts optional expires_at. Omitting it preserves the previous expiry. Revocation accepts an optional reason and disables future authentication with that token. Usage views help identify failing and rate-limited requests.

    Use outgoing webhooks to receive events and apps for installable integrations with interactive behavior.