ChatFairy API and webhooks
Push every conversation into your own system as it happens, and start WhatsApp conversations from it with approved templates.
Free during the open beta. No card needed.
Both are for a developer or an automation consultant to set up.
Webhooks
Set an HTTPS endpoint under Settings, Webhooks (owners and admins only) and choose the events you want. Each event is a signed JSON POST. Saving the first time issues a signing secret, and a Send test event button shows the status code your endpoint returned.
| Event | Sent when |
|---|---|
| message.created | Any message is stored in a conversation, in either direction: the customer's message, the AI's reply, a reply from your team, and automatic notices such as payment confirmations. |
| conversation.updated | A conversation is resolved or reopened, its AI is paused or resumed for a human handover, or it is assigned or unassigned. |
| ping | You press Send test event. |
Delivery
- Events are sent right after the action that caused them, usually within a second.
- Your endpoint has 5 seconds to answer with any 2xx. Timeouts, network errors and 5xx answers are retried, up to 3 attempts in all.
- Delivery is at least once. Use the event id to ignore repeats.
- Events for your organisation are sent one at a time, oldest first.
- The last deliveries are listed in Settings for 30 days, with the status code and the number of attempts. The log holds ids only, never message content.
API
Four server-to-server endpoints, authenticated with an organisation API key sent as a Bearer token.
| Endpoint | What it does |
|---|---|
| POST /api/v1/messages/template | Sends an approved Meta template to a number. Creates or reuses the conversation, stores the message in the inbox and fires your webhooks. |
| GET /api/v1/messages | Messages in your organisation since a timestamp. Built for polling replies. |
| GET /api/v1/whatsapp/templates | Your WhatsApp templates with their review status, plus the number's display name, quality rating and messaging limit. |
| POST /api/v1/whatsapp/templates | Submits a new template to Meta for review. |
Templates are the only thing WhatsApp lets a business send first, outside the 24-hour window. See message templates.
Limits
- 30 requests a minute per key on the template endpoint and 120 on the list endpoints.
- Template sends are capped per organisation in any rolling 24 hours. The default is 100.
- API keys are issued by the ChatFairy team on request. A key is shown once and only its hash is stored.
- There is no broadcast or bulk-send endpoint. Templates go to one recipient per request.
Questions
How do I get an API key?
Email support@chatfairy.chat from the address on your ChatFairy account and say which organisation the key is for. Keys are created by our team and shown once.
Can I send a WhatsApp message to a customer first?
Yes, with a template Meta has approved on your WhatsApp Business account. Free-form messages can only be sent inside the 24 hours after the customer last wrote to you.
Are webhook requests signed?
Yes. Every request carries a signature made with your signing secret, so your endpoint can check that it came from ChatFairy. You can reveal or rotate the secret in Settings.
Is there a Zapier or Make integration?
Not as a listed app. Webhooks deliver signed JSON to any HTTPS endpoint, which is how other systems are connected today.
