Skip to main content
Pods can POST updates to an HTTPS endpoint you control. Two events matter for most integrations: Use webhooks alongside those endpoints and the WebSocket at wss://api.pods.finance/updates, not instead of them. Every delivery uses the same envelope, { messageType, data }, and the same three signature headers.

Register the endpoint

The default URL is saved from the Pods admin panel with PUT /customers/me/webhook. Email [email protected] with:
  • the HTTPS URL that should receive POST requests
  • any extra headers Pods should send on every delivery, such as Authorization: Bearer <token>
Support stores that URL and those headers, then shares the signing secret with you over a secure channel. GET /customers/me/webhook and PUT /customers/me/webhook return only:
The response leaves out the signing secret. Ask support for the secret after the URL is saved. There is no API field for it. The secret is one value per customer. It is whsec_ plus 32 random bytes encoded as 64 hex characters. Pods creates it the first time the admin panel saves a webhookURL. If a delivery happens before that row exists, Pods creates the same style of secret at send time. A later save of the URL reuses the existing secret. Headers you put in webhookHeaders are sent with every delivery. The names X-Deframe-Webhook-Id, X-Deframe-Webhook-Timestamp, and X-Deframe-Webhook-Signature are reserved. A customer header with one of those names is dropped, and the signature headers above are the ones that arrive.

Choose your events

One URL receives every event. Tell them apart by messageType. webhookEvents holds the opt-in events you subscribed to. It starts empty, so an endpoint built for action updates does not start receiving KYC events on its own. To subscribe, save it with the rest of the configuration:
A save that leaves webhookEvents out keeps your current subscriptions. Send [] to unsubscribe. A value that is not an opt-in event returns 422. Before you subscribe, make sure your handler branches on messageType: KYC_UPDATE carries a KYC profile in data, not an action. A single quote or strategy bytecode request can pass webhookURL to deliver that operation to a different URL. That value overrides the customer default for that quote or action. The signing secret stays the customer secret.

What arrives

ACTION_UPDATE

data is the formatted action returned by GET /actions/{id}: same id, type, status, amounts, and transactions.
The snippet above is only the envelope. A live delivery includes the full action object. Pods sends ACTION_UPDATE when an action that has a wallet address changes. You can receive several deliveries for one action (INITIAL, then PENDING, then SUCCESS, FAILED, REFUND_REQUIRED, or REFUNDED). EXPIRED stays on GET /actions/{id} and is not pushed. A provisional cross-chain transfer that the API later merges into the bridge action is also left off the webhook. A successful strategy, transfer, or fiat-ramp action can be followed by a legacy NEW_HISTORY delivery. It uses the same signature and a different data object (from, action, amount, fee, transactionHash, strategyId, and related fields). Read status from ACTION_UPDATE. Acknowledge NEW_HISTORY with 2xx if you do not use the legacy shape.

KYC_UPDATE

Pods sends KYC_UPDATE to customers that subscribed to it, when the stored status of one of their KYC profiles changes. This covers every provider (Sumsub share token, Pods Hosted KYC, BigDataCorp) and the first created status of a new profile. data is the same object GET /api/v1/kyc/status returns for that profile, field for field. Parse both with the same code.
The snippet shows the fields most handlers read. A live delivery carries every field of the status response, including the provider-specific ones. Track Pods Ramp status and Pods KYC describe them. data is a snapshot taken when Pods detected the change. It includes the applicant’s e-mail, birth date, and wallet addresses, so protect your endpoint the way you protect the status response. What to expect from this event:
  • One event per status Pods observes. Pods compares each profile’s stored status with the last one it announced. A profile that goes created → provider_pending → approved across several checks produces three deliveries. If it passes through several statuses between two checks, you get one delivery carrying the newest. A change that does not alter status produces none: a currency unlocked later on an already approved profile sends nothing.
  • Up to about a minute of delay. Pods checks for changed profiles every 30 seconds, not inside the request that wrote the profile. A status you caused with your own API call arrives as an event after that call returns.
  • Latest state wins. Do not rely on seeing every intermediate status. Order by updatedAt, not by arrival.
  • Stored status only. While a BigDataCorp capture is in progress and nothing has been submitted to the local provider, the stored status advances when your backend calls the status or submit endpoints. After the submit, Pods monitors the provider in the background and the events arrive with no call from you.
  • Only while subscribed. Subscription is checked when Pods observes the change, not when the profile was written. A change Pods observes while KYC_UPDATE is not in webhookEvents, or while no webhookURL is saved, is not queued for later. It is checked again before every attempt: after you unsubscribe, pending retries and resends of KYC_UPDATE are dropped.

Other message types

Other messageType values can arrive for specific routes. A TeleSwap bitcoin bridge can send BTC_NATIVE_BRIDGE_TRANSACTION_STARTED. Respond 2xx for a type you do not handle, and keep the handler tolerant of new types.

Signature

Every delivery is signed. Read the three headers, then verify them against the raw request body before JSON.parse. The signed text is this UTF-8 string:
rawBody is the exact POST body: JSON.stringify({ messageType, data }). It is the bytes on the wire. A re-serialized object, a changed key order, or different whitespace produces a different signature. With Express, use express.raw() and verify req.body before you parse JSON. Pods does not reject an old timestamp. A five-minute window and deduplication by X-Deframe-Webhook-Id are checks you can add in your handler. The track and positions example shows both. They are not enforced by the sender.

Worked example

This body is a signature fixture. A real ACTION_UPDATE uses an action status such as SUCCESS, not confirmed.
Signed text:
Headers:

Verify in Node

Compare the hex digests with a length check before timingSafeEqual. The function throws when the buffers differ in length.

Delivery

Pods treats any HTTP 2xx as accepted. Anything else, a network error, or a timeout counts as a failed attempt and is stored on the message. Acknowledge first and do the slow work afterwards. A retry is the same message: the body and X-Deframe-Webhook-Id do not change. X-Deframe-Webhook-Timestamp and X-Deframe-Webhook-Signature are computed again for each attempt. Keep the handler idempotent and deduplicate by X-Deframe-Webhook-Id. A retry can reach you after an attempt you did process but answered too slowly. Separate events have separate ids, so one action or one KYC profile moving through several statuses produces several ids. If a delivery never arrives, the current state is always available from GET /actions/{id} and GET /api/v1/kyc/status.

Resend undelivered messages

POST /webhooks/resend schedules a new round of attempts for messages your endpoint has not acknowledged, for example after an outage that outlasted the automatic retries.
Every body field is optional. An empty body resends everything undelivered from the last 7 days.
The response returns as soon as the deliveries are scheduled. They are sent in the background, about one second apart, oldest first, to your saved webhookURL. A per-operation webhookURL override is not reused. A message your endpoint already acknowledged is never sent again, including when you name it in webhookIds. A message that still has a round of attempts pending, automatic or from an earlier resend, is not scheduled a second time; it is still listed in the response. An unknown body field returns 422. The call returns 409 WEBHOOK_URL_NOT_CONFIGURED when no webhook URL is saved. A KYC_UPDATE is listed but not sent while you are unsubscribed from it.