Commit durable events
cooper_commit_eventsUse this after you have processed a page from cooper_poll_events. Requires auth and message_read. Inputs: client_id (the consumer id or client_id) and cursor (the commit_cursor you received, an evc1 cursor). Returns the consumer. cursor on the response is the committed position. An older cursor is a no-op and the current position is returned. A value that is not an evc1 cursor is HTTP 400 invalid_cursor. Another account's consumer is HTTP 404 consumer_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | Yes | evc1 cursor to commit. An older cursor does not move the position backwards. | |
| client_id | Yes | Consumer id (evcon_…) or the client_id used when the consumer was created. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Event consumer id. | |
| types | No | Event types this consumer reads. | |
| cursor | No | Committed position of the consumer. | |
| object | No | Object type name, such as list, message, or thread. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. | |
| client_id | No | Caller idempotency key stored with the object, or null. | |
| created_at | No | ISO-8601 time the object was created. | |
| updated_at | No | ISO-8601 time the object last changed. | |
| last_polled_at | No | ISO-8601 time of the last poll, or null. | |
| last_committed_at | No | ISO-8601 time of the last commit, or null. |