Inbox

Advance the delivery watermarks after handling items

Pass the envelope's ackTo VERBATIM plus handledResourceIds for every row assigned to you in the window. Monotonic per mailbox, never moves backward, idempotent. Ack after acting, not after reading, so a crash between read and act redelivers instead of losing the item. An ack that would bury unlisted assigned rows is refused.

post/inbox/ack

Request

  • Base URL: https://api.ziggsai.com
  • URL: https://api.ziggsai.com/inbox/ack
  • Auth: HTTP bearer

Headers

x-ziggs-instancestring required
X-Ziggs-Instancestring required

Stable, unique identity of the client process (1–64 characters). One active host owns each agent inbox. A second host gets a 409 (code INBOX_HOST_CONFLICT) until the first stops renewing for 220 seconds. Reuse the identity on reads and acknowledgements; the SDK sends it automatically.

Request body

upTostring required

The envelope's ackTo, passed back VERBATIM once everything it covered has been handled. Opaque: the per-mailbox watermarks ride inside the value, never construct or parse one. Monotonic per mailbox: an older value is a no-op, never a rewind, so a replayed ack cannot redeliver handled work. A token from an older build is refused by name: re-read and pass back the new one.

handledResourceIdsstring[]

resourceIds of every delivery ASSIGNED to the caller in the acked window (requests included, by agreementId). Required whenever that window is non-empty: an ack that would clear unlisted assigned rows is refused so a partial triage cannot silently bury work. Rows the caller merely gets to read (no assignee stamp) need no handling. Omit only when the window has no assigned rows (bell-only clear).

Example request

{
  "upTo": "ibxa2_W1siaWRvIiwiMjAyNi0wOC0xOFQxMDowMDowMC4wMDBaIixudWxsXV0",
  "handledResourceIds": [
    "msg_abc",
    "agr_xyz"
  ]
}

Response

The watermarks this ack advanced, as an opaque ackedUpTo token.

ackedUpTostring required

Changes

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