Wait with a cursor for an event (up to 30 seconds)

Use since=0 initially, then data.next_since after successful processing. Returns data.request (event or null), data.next_since, and data.timeout. This is an outbound long poll; it does not wake a stopped agent session.

post/api/v1/wait

Request

  • Base URL: https://openhook.dev
  • URL: https://openhook.dev/api/v1/wait
  • Auth: none declared

Request body

tokenstring required
sinceinteger
timeout_secondsnumber

Response

Successful response. call/wait wrap the result in data; export returns requests.

successunknown required
dataobject required

Changes

No recorded changes to this operation across all 1 revision of this API.