API and webhooks
Read and answer conversations from your own systems, and get told when things happen.
Everything your team can do in the Inbox, your own systems can do through the Puddle API, with the same rules. Webhooks tell your server when something happens, so you don't have to poll.
Both are set up in Settings → Developers (needs Manage settings).
Secret API keys
Create a key under Secret API keys, give it a name and choose its scopes:
| Scope | Allows |
|---|---|
inbox:read | Reading conversations, messages, contacts and labels |
inbox:write | Replying, adding notes, assigning, labelling and changing status; posting messages to custom channels |
contacts:write | Updating and merging contacts |
The key (psk_…) is shown once. Keep it on your server: anyone with it can act on your store's conversations. Revoke a key in the same place to stop it working immediately.
The REST API
Base URL: https://api.puddle.co.za/v1
Send the key as a bearer token:
curl https://api.puddle.co.za/v1/inbox/conversations?status=OPEN \
-H "Authorization: Bearer psk_..."| Method and path | Scope | Does |
|---|---|---|
GET /inbox/conversations | inbox:read | Lists conversations, newest activity first. Filter by status, label (key, or none), contactId and search; page with cursorAt and cursorId from nextCursor |
GET /inbox/conversations/{id} | inbox:read | One conversation with its contact, label and the orders and products it's about |
GET /inbox/conversations/{id}/messages | inbox:read | The timeline: messages, notes and events. Page with before and after |
POST /inbox/conversations/{id}/messages | inbox:write | Replies (kind: "MESSAGE") or adds a note (kind: "NOTE") as your app. Send the same clientMessageId again to retry safely. For formatting, send a text part with format: "markdown" (bold, italic, strikethrough, code, links and lists) |
PATCH /inbox/conversations/{id} | inbox:write | Changes status (with snoozedUntil for SNOOZED), assigneeAdminId and label |
GET /inbox/labels | inbox:read | Your labels and their keys |
GET /inbox/people?search= | inbox:read | Finds contacts and customers by name, email or phone |
GET /inbox/contacts/{id} | inbox:read | A contact with their identities and customer accounts |
POST /inbox/contacts/{id}/merge | contacts:write | Merges another contact into this one |
POST /inbox/channels/{channelId}/messages | inbox:write | Posts a customer's message to a custom channel |
The full reference, with every field, is the OpenAPI document at https://api.puddle.co.za/v1/openapi.json. Load it into Postman, Insomnia or a code generator.
Labels your app sets are treated like a person's: AI never replaces them.
Errors and limits
| Status | Means |
|---|---|
400 | The input is invalid, or the action isn't possible; the message says why |
401 | The key is missing, wrong or revoked |
403 | The key lacks the scope, or the store doesn't have Puddle Inbox |
404 | Not found (including anything from another store) |
429 | More than 120 requests a minute with this key. Wait and retry |
Webhooks
Under Webhooks, add your endpoint's URL (it must use https) and choose its events:
| Event | When |
|---|---|
inbox.conversation.created | A conversation started |
inbox.message.created | A message or note was added, by the customer, your team or an app |
inbox.conversation.assigned | A conversation was assigned or unassigned |
inbox.conversation.status.changed | Opened, closed, snoozed, marked pending or spam |
inbox.conversation.labelled | Its label changed |
inbox.conversation.subject.linked | It was linked to an order or product |
contact.created, contact.merged, contact.unmerged | Contacts were created, merged, or a merge was undone |
order.created, order.status.updated | An order was placed, or its status changed |
Puddle sends a POST with a JSON body:
{
"type": "inbox.message.created",
"timestamp": "2026-10-20T09:15:02.000Z",
"data": {
"conversationId": "…",
"messageId": "…",
"channelType": "LIVE_CHAT",
"kind": "MESSAGE",
"direction": "INBOUND",
"authorType": "CONTACT"
}
}data holds ids and small values, not message text or customer details. Fetch what you need with the API.
Verify the signature
Webhooks are signed with the Standard Webhooks scheme, so any Standard Webhooks library can check them. Each request has three headers:
| Header | Value |
|---|---|
webhook-id | The delivery's id. The same id on a retry, so use it to ignore repeats |
webhook-timestamp | Unix seconds when it was sent. Reject old ones (say, older than 5 minutes) |
webhook-signature | v1, and a base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{body}, keyed with your endpoint's secret |
The endpoint's secret (whsec_…) is shown when you create it, and under Signing secret later, where you can also rotate it. The key is the base64 part after whsec_. In Node:
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(secret: string, headers: Headers, body: string) {
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const signed = `${headers.get("webhook-id")}.${headers.get("webhook-timestamp")}.${body}`;
const expected = Buffer.from(`v1,${createHmac("sha256", key).update(signed).digest("base64")}`);
const received = Buffer.from(headers.get("webhook-signature") ?? "");
return received.length === expected.length && timingSafeEqual(received, expected);
}Check the signature against the raw body, before parsing it.
Retries
Answer with any 2xx status within 15 seconds. Otherwise Puddle retries, waiting longer each time, for about a day. Redirects aren't followed.
After 20 deliveries in a row fail completely, the endpoint is switched off and says why. Fix it, then click Enable. Deliveries shows each endpoint's recent deliveries with their responses, and Resend sends one again.

