PuddlePuddle Docs
Inbox

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:

ScopeAllows
inbox:readReading conversations, messages, contacts and labels
inbox:writeReplying, adding notes, assigning, labelling and changing status; posting messages to custom channels
contacts:writeUpdating 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 pathScopeDoes
GET /inbox/conversationsinbox:readLists 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:readOne conversation with its contact, label and the orders and products it's about
GET /inbox/conversations/{id}/messagesinbox:readThe timeline: messages, notes and events. Page with before and after
POST /inbox/conversations/{id}/messagesinbox:writeReplies (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:writeChanges status (with snoozedUntil for SNOOZED), assigneeAdminId and label
GET /inbox/labelsinbox:readYour labels and their keys
GET /inbox/people?search=inbox:readFinds contacts and customers by name, email or phone
GET /inbox/contacts/{id}inbox:readA contact with their identities and customer accounts
POST /inbox/contacts/{id}/mergecontacts:writeMerges another contact into this one
POST /inbox/channels/{channelId}/messagesinbox:writePosts 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

StatusMeans
400The input is invalid, or the action isn't possible; the message says why
401The key is missing, wrong or revoked
403The key lacks the scope, or the store doesn't have Puddle Inbox
404Not found (including anything from another store)
429More 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:

EventWhen
inbox.conversation.createdA conversation started
inbox.message.createdA message or note was added, by the customer, your team or an app
inbox.conversation.assignedA conversation was assigned or unassigned
inbox.conversation.status.changedOpened, closed, snoozed, marked pending or spam
inbox.conversation.labelledIts label changed
inbox.conversation.subject.linkedIt was linked to an order or product
contact.created, contact.merged, contact.unmergedContacts were created, merged, or a merge was undone
order.created, order.status.updatedAn 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:

HeaderValue
webhook-idThe delivery's id. The same id on a retry, so use it to ignore repeats
webhook-timestampUnix seconds when it was sent. Reject old ones (say, older than 5 minutes)
webhook-signaturev1, 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.

On this page