Connect
Create a Connect thread
Create an order-scoped thread with its initial participants. Idempotent on reference, so call it from your order pipeline without duplicate-guarding.
POST
Create the conversation for an order. Call it when the order is confirmed — the
customer_merchant lane opens immediately; the customer_courier lane waits for a courier.
Request
string
required
Your order ID. Unique per organization and the idempotency key: posting an existing
reference returns the existing thread with 200.array
required
Initial participants. Usually the customer and merchant; couriers are added later.
array
Lanes to enable. Defaults to
["customer_merchant", "customer_courier"]; include "merchant_courier" to open the third lane.object
Override the org-default Supervisor config for this thread.
object
Override org defaults:
wrap_up_hours (default 24), retention_days (default 30).object
Arbitrary JSON stored on the thread and surfaced to the Supervisor as answering context — order total, vertical, promo flags.
Response
string
Thread ID (
th_…).string
Your order ID.
string
open on creation. Lifecycle: open → wrap_up → locked → archived.string
Starts at
confirmed; you drive it via Update thread.array
Participants with server-assigned
id (prt_…) alongside your external_id.array
Lane objects:
id, status (active | waiting | closed), supervisor_mode.