Broadcast Docs
Back to main site
On this page

Agent Setup Links

Setup Links are time-limited URLs that serve agent configuration instructions in a secure, self-destructing format. They provide a safer alternative to directly sharing API tokens.

How It Works

  1. Go to Agents in your Broadcast sidebar
  2. Pick the API token in the selector next to Generate Setup Link (the oldest token, listed first, is the default), then click Generate Setup Link
  3. A unique URL is created (e.g., https://your-instance.com/agents/setup/abc123...)
  4. Share the URL with your AI agent (paste it into the chat)
  5. The agent fetches the URL and self-configures with the correct credentials

What the Agent Receives

When an agent accesses the setup link, it receives a Markdown document containing:

  • Your Broadcast instance URL
  • The associated API token
  • Token permissions
  • Channel name and configuration
  • CLI installation instructions
  • Quick-start commands

Security

Setup Links are designed to be safe to share in chat conversations:

Property Default
Expiry 1 hour after creation
Max accesses 3 times
Slug format 256-bit cryptographically random

Once a setup link expires or reaches its access limit, it returns a 404 response.

2.53+

Broadcast deletes expired and used-up setup links every hour, at minute 50.

Note

A setup link carries its API token’s secret and inherits that token’s permissions. Pick a token in the selector next to Generate Setup Link that has only the permissions your agent needs. The selector starts on the channel’s oldest token, so change it when that token has more access than the agent should get.

Because a link publishes a token’s secret to whoever holds the URL, creating or deleting one needs the Create and manage API tokens permission on the channel (sudo users always have it). View API tokens alone shows the Agents page but cannot publish a token. A link always belongs to the channel you are working in: you cannot generate one for another channel’s token, or delete another channel’s links.

From the Agents dashboard, pick the token and click Generate Setup Link. The link is displayed with a copy button for easy sharing, and stays listed until it expires.

To immediately invalidate a setup link before it expires, click the Delete button next to it on the Agents dashboard.

Example: Onboarding Claude Code

  1. Generate a setup link from the Agents dashboard
  2. In Claude Code, paste: Please configure yourself to manage my Broadcast email marketing. Here's the setup link: https://your-instance.com/agents/setup/abc123...
  3. Claude Code fetches the link, reads the configuration, and is ready to manage your email marketing

After you generate a setup link, the Agents dashboard lists its URL with a Copy button, the token it uses, when it expires and how many accesses remain. Copy the URL and paste it into your agent’s chat, for example:

Markdown
I use Broadcast for email marketing. Here's how to connect:

Setup: https://your-instance.com/agents/setup/abc123...

Fetch this link to get your API credentials and available commands.