Webhooks
Give an automation a webhook URL, and your own systems can start it by posting JSON to Careflow.
In Careflow, webhooks point inward. An automation can have a URL that starts it, and your systems call that URL when something happens on their side: a booking is made, an order ships, a form is sent. Careflow has no event feed that posts to your servers. To send data out, add a Post to a webhook or Call an API step to an automation.
A hotel might post every new booking from its property management system. The automation then sends the guest a welcome email and texts the front desk, with no one in the loop.
How a webhook trigger works
You turn on When called from outside in an automation's trigger and save. Careflow gives the automation a webhook ID, and its URL is:
https://api.trycareflow.com/webhooks/workflow/{webhookId}
Each POST to that URL starts one run of the automation. The response comes back straight away, while the steps run in the background:
{
"code": "SUCCESS",
"message": "webhook received",
"data": { "runId": "6711a0c4d2e3f4a5b6c7d8e9", "status": "pending" }
}
The runId is the run's ID on the Automation runs page, where you can follow each step. See Activity and automation runs.
What you send
Send a JSON object. Its top-level fields become the run's input, and steps read them by name, like {{guestName}}. Name the fields you'll send under What the run starts with in the trigger, so the editor knows about them and a test run asks for them.
{
"bookingRef": "HV-20931",
"guestName": "Ada Okafor",
"arrival": "2026-10-10",
"nights": 3
}
A body that isn't a JSON object still starts a run. Its text arrives in a single field called raw. Careflow also adds two fields of its own: _webhook_id, and _webhook_headers with the headers of your request. Since headers are saved with the run, don't put credentials in them.
How requests are verified
The webhook ID is a long random value, and it's the only thing Careflow checks. There's no signature and no API key. Anyone with the full URL can start the automation, so keep it as secret as an API key: in your server's configuration, never in browser code.
A request for an ID that doesn't exist, or whose automation has When called from outside turned off, gets 404 with webhook not found or disabled.
To replace a URL that may have leaked, turn off When called from outside, save, then turn it on again and save. The automation gets a new webhook ID, and the old URL stops working. Update your systems with the new one.
Sending reliably
Each call starts a new run, even if you send the same body twice. If your system can repeat an event, for example when it retries after a timeout, include your own ID such as bookingRef and check it in the automation before acting.
Retry on 429 and 500, and not on 404. The webhooks share the 200-requests-a-minute budget per IP address described in Rate limits.
Where to go next
- Start an automation from your systems walks through setting one up end to end.
- Activity and automation runs shows how to follow and re-run runs.
- To have your agent call your systems during a conversation instead, see Tools overview.