DocsAPI reference

Core concepts

API reference.

The Campfire API is the same typed surface the dashboard runs on. A stable REST gateway is in preview — the generated reference will land here. In the meantime, here is the shape of what you will be able to call.

Preview

The REST gateway is behind a feature flag and the endpoints below may change shape before general availability. The router names, however, are stable — they are the same resource boundaries we ship internally.

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.
  • Lists take limit (max 100, default 20) and offset. Responses include total.
  • Errors follow a uniform shape with code, message, and an optional details object.

Resource preview

Grouped by domain. Each resource below is a router today and will be a top-level collection in the REST gateway (for example, conversations.list becomes GET /v1/conversations).

Messaging

  • conversationslist, get, create, update, resolve, reopen, assignThe primary object. Threaded history between a visitor and your team.
  • messageslist, get, create, update, deleteIndividual messages inside a conversation. Supports visitor, agent, and AI senders.
  • conversationNoteslist, create, update, deleteInternal notes on a conversation. Not visible to visitors.
  • conversationMetadataget, setKey/value metadata attached to a conversation.
  • quickReplieslist, create, update, deleteReusable reply templates shown in the composer.
  • cannedResponseslist, create, update, deleteCanned responses, scoped to the workspace or a team.

Visitors & identity

  • customerProfileslist, get, update, mergePeople the messenger has seen. Merges anonymous and identified sessions.
  • blockedVisitorslist, block, unblockPer-visitor blocks with audit trail.
  • segmentslist, get, create, update, deleteDynamic groups of customers defined by attributes and behaviour.

Workflow

  • ticketslist, get, create, update, resolve, closeFirst-class ticket objects separate from conversations.
  • ticketTypeslist, create, update, deleteConfigured ticket categories.
  • tagslist, create, update, deleteLabels applied to conversations and tickets.
  • macroslist, create, run, update, deleteOne-click multi-action scripts.
  • automationslist, create, update, enable, disable, deleteEvent-triggered automations. The webhook dispatcher lives here.
  • workflowslist, create, update, deleteMulti-step automations with branching.
  • autoSnoozeRuleslist, create, update, deleteRules that snooze conversations based on conditions.
  • routingpreview, assignAssignment rules that route new conversations to the right agent or team.
  • slalist, get, upsert, deleteService-level policies measured against first response, resolution, and update times.

Teams & users

  • userslist, get, invite, update, deactivateAgents and admins in the workspace.
  • teamlist, create, update, deleteTeams and membership.
  • teamInboxeslist, create, update, deleteShared inboxes scoped to a team.
  • organizationsget, updateThe workspace itself.
  • apiKeyslist, create, revokePersonal and service API keys. Secrets are only ever returned once.

AI & knowledge

  • aidraft, answer, handoffOn-demand AI assistance inside the composer.
  • aiAgentslist, create, update, run, deleteNamed AI personas bound to a knowledge base.
  • aiSuggestionslist, accept, dismissProactive AI suggestions surfaced to the agent.
  • aiUsagesummary, seriesToken and cost usage, aggregated by period.
  • knowledgeBaselist, get, create, update, publish, deleteArticles and collections that feed the AI and the help centre.
  • knowledgeClarificationslist, resolvePlaces where the AI was unsure and an operator clarified.

Channels & integrations

  • channelslist, connect, disconnectChannel connections — widget, email, WhatsApp, Telegram, and more.
  • widgetsget, updateMessenger configuration.
  • email-broadcastslist, create, sendOutbound email campaigns.
  • whatsapp-broadcastslist, create, sendWhatsApp broadcast lists.
  • whatsapp-templateslist, syncApproved WhatsApp message templates.
  • telegramconnect, disconnectTelegram channel integration.
  • shopify-integrationslist, connect, disconnectShopify store links.
  • integrationslist, connect, disconnectAll other third-party connections.
  • webhookslist, create, update, delete, testOutbound webhook subscriptions.

Analytics

  • analyticsconversations, messages, csat, customTime-series analytics across the workspace.
  • dashboardoverview, kpis, seriesThe queries that power the operator dashboard.
  • metricslist, getIndividual named metrics.
  • usagesummary, seriesSeat and usage accounting for billing.
  • csatlist, summaryCustomer satisfaction ratings and comments.
  • auditlist, getAudit log of security-relevant events.

Next