Send your first message
Create a bot token and send a message to a Pulse channel from your terminal.
1. Create a bot token
With permission to manage workspace integrations, open Workspace settings → Integrations → Bots. Create Deploy Bot, enable chat:write, and choose an expiry. Store the xoxb- token when it appears.
Open an unencrypted channel that allows posting. Choose Add people and bots and add the bot account. In the example, use the channel name without #.
2. Send a message
Load your bot token into PULSE_BOT_TOKEN from your secret store. Replace general with your channel. Set PULSE_ORIGIN to the public application origin of a self-hosted server.
3. Check the response
A successful request returns 201 Created and a message object. Its id is the message UUID and content contains the text. Open the channel to see the message under your bot's name. Keep the same idempotency key and payload when retrying this send. Use a new key for each new message.
To discover channel names with channels:read, use list channels.
Send from JavaScript
This example runs on a server with fetch available. Store the token in the server environment.
If the request fails
Continue with bot credentials and scopes, message endpoints, and safe retries. For a single-channel notification URL, see incoming webhooks.