Skip to main content
Webhooks tell your server what happens to the wallets and orders that come through your partner id, without polling. Kairos sends each event as a signed POST to the endpoints you register.

Register an endpoint

Endpoints are managed in the partner dashboard at https://dashboard.kairos.trade, under Webhooks. Kairos invites your team to it (onboarding). The owner, admin and developer roles can manage webhooks. There is no API for it. For each endpoint you set:
  • A URL. It must be https, with no user or password in it, on port 443 or 1024 and up, and resolve to a public address. Redirects are not followed.
  • The events it receives. An endpoint only gets the types you pick.
  • A description, optional.
The dashboard shows the endpoint’s signing secret (whsec_…) once, when you create it. Keep it on your server. Rotate replaces it at once: the old secret stops working. You can have up to 10 endpoints. From the dashboard you can also send a test event, see each delivery with its HTTP status, and retry a failed one.

What Kairos sends

Every delivery is a POST with a JSON body:
Headers: Bodies are at most 256 KiB.

Verify the signature

v1 is the HMAC-SHA256, in hex, of <t>.<raw body>, keyed with your endpoint’s whole secret, whsec_ included. Compute it over the raw bytes you received, before parsing the JSON. Each attempt is signed again with a new t.
Kairos doesn’t check t for you. Refusing old timestamps, as above, stops a captured request from being replayed later.

Answer and retries

Answer with any 2xx within 5 seconds. Anything else, a redirect, or a timeout is a failed attempt. Kairos tries each delivery up to 8 times, waiting about 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours between tries (with some jitter): about 45 hours in all. Test events are sent once.
  • Delivery is at least once. Deduplicate on id.
  • Order is not guaranteed. Events for one order can arrive in any order across types. Each order body carries status and updatedAt: apply the latest.
  • Events can arrive late. An event that couldn’t be sent at once is still delivered later.
Answer quickly and do the work afterwards, so a slow handler doesn’t turn into retries.

Event types

Bodies

Amounts ending in Cents are whole US cents. Prices ending in Bps are basis points of $1: 5200 is a price of 0.52. Sizes are shares, as decimal strings. Times are RFC 3339 in UTC.

Orders (order.*)

  • id is the Kairos order id: the orderId from the order result and the orders read.
  • wallet is the address that holds the position. On Polymarket that is the wallet’s trading wallet, not the signing address.
  • status is open, partially_filled, filled, cancelled or rejected. rejectReason is added on rejected: insufficient_balance, market_closed, price_out_of_bounds, tick_size, venue_rejected, rate_limited, geo_blocked or other.
  • type is limit or market. avgFillPriceBps is null until something fills.
  • feeCents is the fee recorded on the order. partnerFeeCents is 0: your share of each fill comes in fee.accrued.
  • category is politics, sports, crypto, economics, culture or other.

Fills (trade.executed)

id, orderId, wallet, venue, marketId, marketTitle, category, tokenId, side, priceBps, size, notionalCents, feeCents, isMaker, txHash (or null) and executedAt.

Other events

Amounts ending in Raw are integers in the token’s smallest unit; decimals scales them.