Core concepts
API reference.
The public API is versioned under /api/v1. These routes are live today: authenticate with a workspace API key, list conversations, and read a conversation's messages. Internal dashboard routers are intentionally not presented as public endpoints.
Current contract
Send a Bearer personal API key or workspace widget API key. Requests are scoped to the workspace encoded by that key, and invalid credentials return JSON 401 responses.
Conventions
- Authentication is
Authorization: Bearer <token>. Tokens are scoped to a workspace. - All bodies are JSON. All timestamps are ISO 8601 in UTC. All IDs are UUIDs.
- Conversation lists return the 50 most recently updated records and include
total. Cursor and offset pagination are not part of the public v1 contract yet. - Errors follow a uniform shape with
code,message, and an optionaldetailsobject.
curl https://campfire.is/api/v1/conversations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Product surface map
The public v1 surface is intentionally small. The broader router map below describes product domains, while the supported HTTP routes are the conversation endpoints and health/status probes above.
Messaging
conversationsThe primary object. Threaded history between a visitor and your team.
list, get, create, update, resolve, reopen, assign
messagesIndividual messages inside a conversation. Supports visitor, agent, and AI senders.
list, get, create, update, delete
conversationNotesInternal notes on a conversation. Not visible to visitors.
list, create, update, delete
conversationMetadataKey/value metadata attached to a conversation.
get, set
quickRepliesReusable reply templates shown in the composer.
list, create, update, delete
cannedResponsesCanned responses, scoped to the workspace or a team.
list, create, update, delete
Visitors & identity
customerProfilesPeople the messenger has seen. Merges anonymous and identified sessions.
list, get, update, merge
blockedVisitorsPer-visitor blocks with audit trail.
list, block, unblock
segmentsDynamic groups of customers defined by attributes and behaviour.
list, get, create, update, delete
Workflow
ticketsFirst-class ticket objects separate from conversations.
list, get, create, update, resolve, close
ticketTypesConfigured ticket categories.
list, create, update, delete
tagsLabels applied to conversations and tickets.
list, create, update, delete
macrosOne-click multi-action scripts.
list, create, run, update, delete
automationsEvent-triggered automations. The webhook dispatcher lives here.
list, create, update, enable, disable, delete
workflowsMulti-step automations with branching.
list, create, update, delete
autoSnoozeRulesRules that snooze conversations based on conditions.
list, create, update, delete
routingAssignment rules that route new conversations to the right agent or team.
preview, assign
slaService-level policies measured against first response, resolution, and update times.
list, get, upsert, delete
Teams & users
usersAgents and admins in the workspace.
list, get, invite, update, deactivate
teamTeams and membership.
list, create, update, delete
teamInboxesShared inboxes scoped to a team.
list, create, update, delete
organizationsThe workspace itself.
get, update
apiKeysPersonal and service API keys. Secrets are only ever returned once.
list, create, revoke
AI & knowledge
aiOn-demand AI assistance inside the composer.
draft, answer, handoff
aiAgentsNamed AI personas bound to a knowledge base.
list, create, update, run, delete
aiSuggestionsProactive AI suggestions surfaced to the agent.
list, accept, dismiss
aiUsageToken and cost usage, aggregated by period.
summary, series
knowledgeBaseArticles and collections that feed the AI and the help centre.
list, get, create, update, publish, delete
knowledgeClarificationsPlaces where the AI was unsure and an operator clarified.
list, resolve
Channels & integrations
channelsChannel connections — widget, email, WhatsApp, Telegram, and more.
list, connect, disconnect
widgetsMessenger configuration.
get, update
email-broadcastsOutbound email campaigns.
list, create, send
whatsapp-broadcastsWhatsApp broadcast lists.
list, create, send
whatsapp-templatesApproved WhatsApp message templates.
list, sync
telegramTelegram channel integration.
connect, disconnect
shopify-integrationsShopify store links.
list, connect, disconnect
integrationsAll other third-party connections.
list, connect, disconnect
webhooksOutbound webhook subscriptions.
list, create, update, delete, test
Analytics
analyticsTime-series analytics across the workspace.
conversations, messages, csat, custom
dashboardThe queries that power the operator dashboard.
overview, kpis, series
metricsIndividual named metrics.
list, get
usageSeat and usage accounting for billing.
summary, series
csatCustomer satisfaction ratings and comments.
list, summary
auditAudit log of security-relevant events.
list, get