Subscriptions and waits

Create a wait

POST/v1/waits

Waits for one correlated event, up to a deadline. If it doesn't arrive, the inbox gets an ensue.wait.missed notice unless on_timeout is none.

Parameters

Body parameters9
sourcestringRequired

Source ID or name.

inboxstringRequired

Inbox ID or name.

correlationstringRequired

The value the event carries at the source's correlate path.

within?integer

Seconds to wait. Pass this or until.

until?string

ISO time to wait until.

match?object

Extra conditions.

on_timeout?string

missed (default) or none.

deliver_after?string

Hold matching events until then.

label?string

Your own task ID.

Returns

201The sample response is on the right.Errors return error and message; see Errors and limits.