Documentation
Guides

Guide: Publish an Agent

Share your Flapjack agent with a public link. Configure visibility, access control, and custom slugs.

Publish your Flapjack agent as a shareable link that anyone can interact with — no API key needed.

How Published Chats Work

You publish agent → Get a public URL → Anyone can chat with it
https://flapjack.chat/chat/{slug}

Published chats are standalone web interfaces. Users interact directly with your agent without needing a Flapjack account or API key.

Publishing via Dashboard

  1. Go to Agents → Select your agent
  2. Click Publish
  3. Set a slug (URL identifier)
  4. Choose visibility
  5. Copy the public URL

Publishing via API

curl -X POST https://api.flapjack.dev/api/agents/{agentId}/publish \
  -H "Authorization: Bearer fj_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "slug": "my-support-bot",
    "visibility": "public",
    "title": "Acme Support",
    "description": "Ask me anything about Acme products"
  }'
📋 Copy as prompt

Publish my Flapjack agent as a public chat. POST to /api/agents/{agentId}/publish with a slug, visibility, title, and description.

Visibility Options

VisibilityDescription
publicAnyone with the link can chat
privateRequires session verification

Unpublishing

curl -X DELETE https://api.flapjack.dev/api/agents/{agentId}/publish \
  -H "Authorization: Bearer fj_live_..."

Public Chat API

Published chats have their own API endpoints that don't require authentication:

MethodEndpointDescription
GET/api/public/chat/{slug}Get chat metadata
POST/api/public/chat/{slug}/threadsCreate a thread
POST/api/public/chat/{slug}/threads/{id}/messagesSend a message (SSE)
POST/api/public/chat/{slug}/threads/{id}/stopStop response

Next Steps

Docs last updated May 11, 2026