What you can build
Connect your own software to the agents, knowledge and automations you build in Careflow.
You build agents, knowledge, playbooks and automations in the Careflow dashboard. The API lets your own systems reach them: send messages to an agent, keep its knowledge and settings in step with your own records, and pull its numbers into your reporting.
There are three kinds of credential. A secret API key covers everything your servers do, a publishable key covers a chat window in your visitors' browsers, and an automation's webhook URL is its own credential.
Message your agent from your systems
Your backend sends a customer's message to an agent and gets the reply in the same response. A hotel group can put its agent inside its booking app this way, or a shop can answer order questions from its own help page. The agent answers with the same persona, knowledge, playbooks and tools it uses on every other channel, and the conversation lands in your Inbox.
You authenticate with a secret API key (sk_live_...) that a Manager creates in the dashboard. Start with Make your first request.
Manage your agents
With the same kind of key, your systems can list your agents, read their settings, change them and publish the change. A hotel that keeps its opening hours in its property system can push new hours to the agent when they change, instead of someone retyping them. See Update an agent from your system.
Keep knowledge in sync
Your agent answers from the knowledge you give it. The API can upload documents, add and resync sources such as your website or a list of questions and answers, attach them to agents, and ask an agent's knowledge a question to check what it would say. A shop can upload the new returns policy the moment it's approved. See Keep your knowledge in sync.
Pull analytics into your reports
Read the same numbers the Analytics page shows: conversation volume, outcomes, trends, and each session with its transcript. A nightly job can copy yesterday's figures into your own reporting tool or data warehouse. See Pull analytics into your reports.
Manage tools, variables and integrations
Tools are how your agent calls your own endpoints during a conversation, and variables are the values your prompts and playbooks fill in. Your systems can create, change, test and remove both. They can also check which integrations are connected and how they're doing, and disconnect one. Connecting an integration still happens in the dashboard, because it needs someone to sign in to the other service.
Build your own chat window
The Careflow web widget runs on a small browser API. You can call the same API from your own code to build a chat window that matches your website exactly: your layout, your components, your agent behind it. It covers the widget's settings, visitor sessions, messages, past conversations, the Help tab and voice calls.
These calls come from your visitors' browsers. They use the widget's publishable key (pk_live_...), which is safe to put in a web page, and Careflow only answers pages on the widget's allowed websites. See Embed the web widget.
Start automations from your systems
An automation can start when another system calls a URL Careflow gives you. Your property management system could post each new booking, and the automation sends the guest a welcome email and texts the front desk. The JSON you post becomes the run's input. See Start an automation from your systems.
Let your agent call your APIs
The other direction doesn't need this API at all. To let your agent look up a booking or check stock in your own system during a conversation, add a tool that calls your endpoint. See Tools overview and Create an API tool.
What stays in the dashboard
Some things need a person in the dashboard. API keys themselves are created, changed and revoked there. Connecting an integration means signing in to that service, and linking a WhatsApp number goes through Meta's sign-in, so neither can be done with a key. The preview chat in the agent editor is for people too: to talk to an agent from code, use the Conversations endpoint.
Before you start
A Manager creates API keys under SettingsChannelsAPI, and chooses what each key can do: send messages, read or change agents, knowledge, tools, variables and integrations, and read analytics. The web widget lives under Agentsyour agentDeployWeb, and automations open from the dashboard home under Quick startAutomations. Agents must be published before they answer in the widget.
Then read Authentication for how each credential is sent and what a key's access covers, and keep Errors and Rate limits close by. Every endpoint, with its fields and responses, is in the API Reference.