taskIdpath · RequiredRead MV workflow events
/api/v1/tasks/{taskId}/workflow/eventsAuthentication · x-api-key
Read durable workflow events after a cursor. Save nextCursor and honor resetRequired when reconciling retained history.
Scope: task:read
Billing and effects: Free resource read; no generation purchase.
Recovery: Read the current resource before retrying a mutation; do not assume this operation supports Idempotency-Key.
Follow this operation’s workflow → · All permission rulesRequest
Path parameters
Query parameters
afterquery · OptionalResponses
Read the HTTP status and body together. A receipt confirms acceptance; poll the returned Task or product view for terminal execution and media delivery. Example IDs and credit amounts are illustrative, not a price quote.
HTTP 401 · Request rejected; correct the key before retrying
Complete JSON example (optional fields may be omitted).
{ "success": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }}200 OK
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 200 ·
hasMoreRequiredbooleanWhether another result page is available. Follow the endpoint cursor or page parameter rather than restarting the list.
-
Response 200 ·
historyRequired"tracked" | "legacy_incomplete"tracked for a complete journal; legacy_incomplete when earlier execution history was not fully recorded.
-
Response 200 ·
itemsRequiredarray<object>Items in this result page. Follow the returned cursor, when present, to continue pagination.
1 field
-
Response 200 ·
items[]Each itemobject8 fields
-
Response 200 ·
items[].dataRequiredobjectSanitized state transition and changed values for the entity that emitted this event.
11 fields
-
Response 200 ·
items[].data.attemptRequiredinteger | nullBusiness attempt number recorded by the emitter; null when no attempt applies.
May be null.
-
Response 200 ·
items[].data.changesRequiredobjectAllowlisted primitive changes (status, state, settlementStatus, creditsChargedUnits, version, kind, retainedUntil). creditsChargedUnits is integer accounting units, 10,000 per credit; this map is not a full entity snapshot.
1 field
-
Response 200 ·
items[].data.changes[key]Each valuestring | number | boolean | nullKey pattern: ^(.*)$.
-
-
Response 200 ·
items[].data.codeRequiredstring | nullMachine-readable code for the containing failure or finding. Handle documented values and tolerate new values.
May be null.
-
Response 200 ·
items[].data.entityIdRequiredstringIdentifier of the changed entity; not necessarily the parent Task ID.
-
Response 200 ·
items[].data.entityTypeRequiredstringType of workflow entity that changed, such as a Task, stage or asset.
-
Response 200 ·
items[].data.evidenceIdRequiredstring | nullPrivate evidence reference in admin views; public responses always return null.
May be null.
-
Response 200 ·
items[].data.logicalItemRequiredstring | nullLogical work-item identity used to associate attempts across transitions; null when absent.
May be null.
-
Response 200 ·
items[].data.nextActionAtRequiredstring | nullEarliest scheduled time for the next workflow action, or null if none is scheduled. This is not a completion guarantee.
May be null. Use a complete option below; the value must satisfy at least one option.
2 options
-
Response 200 ·
Option 1 — stringOptionstringFormat: date-time.
-
Response 200 ·
Option 2 — nullOptionnull
-
-
Response 200 ·
items[].data.phaseRequiredstring | nullNormalized workflow phase key, or the original phase when no normalization applies; null when absent.
May be null.
-
Response 200 ·
items[].data.previousStateRequiredstring | nullRecorded state before the transition, or null when not supplied.
May be null.
-
Response 200 ·
items[].data.stateRequiredstring | nullRecorded state after the transition, or null for events without a state transition.
May be null.
-
-
Response 200 ·
items[].idRequiredstringUnique workflow journal event identifier; use to deduplicate replayed events.
-
Response 200 ·
items[].sequenceRequiredstringMonotonically ordered stream sequence as a decimal integer string; preserve precision and use as the resume cursor.
-
Response 200 ·
items[].sourceRequiredstringEvent source URI, /omnapi/mv-workflow.
-
Response 200 ·
items[].specversionRequired"1.0"CloudEvents envelope version, fixed to 1.0.
-
Response 200 ·
items[].subjectRequiredstringTask subject in the form tasks/{taskId}.
-
Response 200 ·
items[].timeRequiredstringISO 8601 time when the business event occurred, not when this page was read.
-
Response 200 ·
items[].typeRequiredstringWorkflow event type recorded by the emitting business transition.
-
-
-
Response 200 ·
nextCursorRequiredstringDecimal sequence of the last returned event, or the starting cursor if no events were returned. Keep it even when hasMore is false for subsequent incremental reads.
-
Response 200 ·
resetRequiredRequiredbooleanTrue when the requested cursor is ahead of the persisted stream; this response restarts from zero. Replace the stale cursor with nextCursor.
-
Response 200 ·
taskIdRequiredstringOperation Task identifier. Save it before polling; a receipt does not mean the operation has completed.
400 Bad Request
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 400 ·
errorRequiredobjectStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
3 fields
-
Response 400 ·
error.codeRequiredstringApplication-specific error code (see error catalog)
-
Response 400 ·
error.messageRequiredstringHuman readable error message
-
Response 400 ·
error.detailsOptionalobjectOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
1 field
-
Response 400 ·
error.details[key]Each valueany JSON valueKey pattern: ^(.*)$.
-
-
-
Response 400 ·
successRequiredfalseAlways false for error responses
401 Unauthorized
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 401 ·
errorRequiredobjectStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
3 fields
-
Response 401 ·
error.codeRequiredstringApplication-specific error code (see error catalog)
-
Response 401 ·
error.messageRequiredstringHuman readable error message
-
Response 401 ·
error.detailsOptionalobjectOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
1 field
-
Response 401 ·
error.details[key]Each valueany JSON valueKey pattern: ^(.*)$.
-
-
-
Response 401 ·
successRequiredfalseAlways false for error responses
403 Forbidden
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 403 ·
errorRequiredobjectStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
3 fields
-
Response 403 ·
error.codeRequiredstringApplication-specific error code (see error catalog)
-
Response 403 ·
error.messageRequiredstringHuman readable error message
-
Response 403 ·
error.detailsOptionalobjectOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
1 field
-
Response 403 ·
error.details[key]Each valueany JSON valueKey pattern: ^(.*)$.
-
-
-
Response 403 ·
successRequiredfalseAlways false for error responses
404 Not Found
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 404 ·
errorRequiredobjectStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
3 fields
-
Response 404 ·
error.codeRequiredstringApplication-specific error code (see error catalog)
-
Response 404 ·
error.messageRequiredstringHuman readable error message
-
Response 404 ·
error.detailsOptionalobjectOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
1 field
-
Response 404 ·
error.details[key]Each valueany JSON valueKey pattern: ^(.*)$.
-
-
-
Response 404 ·
successRequiredfalseAlways false for error responses
429 Too Many Requests
Request allowance or task admission capacity exceeded. Follow Retry-After when present; otherwise wait for active tasks and use bounded backoff. Limits do not guarantee throughput. For SSE, this is the HTTP connection response, not an event.
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 429 ·
errorRequiredobjectStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
3 fields
-
Response 429 ·
error.codeRequiredstringRATE_LIMITED for request and task admission rejections.
-
Response 429 ·
error.messageRequiredstringHuman-readable explanation. Wording may change; use the machine-readable code for programmatic decisions.
-
Response 429 ·
error.detailsOptionalobjectOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
9 fields
-
Response 429 ·
error.details.currentOptionalintegerCurrent count for the rate-limit window identified by policy and scope.
Minimum: 0.
-
Response 429 ·
error.details.inFlightOptionalintegerCurrent accepted tasks counted against the relevant account or API-key admission limit.
Minimum: 0.
-
Response 429 ·
error.details.limitOptionalintegerMaximum count allowed by this response context. A limit is not a throughput guarantee.
Minimum: 0.
-
Response 429 ·
error.details.policyOptional"operation" | "query"Allowance bucket: query for resource reads, operation for task-producing or operation requests. See the rate-limit response headers.
-
Response 429 ·
error.details.retryAfterSecOptionalintegerSuggested delay in seconds before another request. Honor the Retry-After header when present; use bounded backoff.
Minimum: 1.
-
Response 429 ·
error.details.scopeOptional"user" | "api-key" | "ip" | "apiKey"Entity whose allowance was exceeded, such as the user, API key or IP address.
-
Response 429 ·
error.details.tierOptional"FREE" | "PREMIUM" | "ENTERPRISE"Account allowance tier used for this admission or rate-limit decision.
-
Response 429 ·
error.details.typeOptional"rps" | "daily" | "monthly"Admission limit that rejected the request: rps (continuously refilled requests-per-second bucket), daily or monthly UTC request budget. Interpret with policy, scope and retryAfterSec.
-
Response 429 ·
error.details[key]Each valueany JSON valueKey pattern: ^(.*)$.
-
-
-
Response 429 ·
successRequiredfalseWhether this response reports a successful action; false accompanies the structured error object.
Default: false.
500 Internal Server Error
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 500 ·
errorRequiredobjectStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
3 fields
-
Response 500 ·
error.codeRequiredstringApplication-specific error code (see error catalog)
-
Response 500 ·
error.messageRequiredstringHuman readable error message
-
Response 500 ·
error.detailsOptionalobjectOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
1 field
-
Response 500 ·
error.details[key]Each valueany JSON valueKey pattern: ^(.*)$.
-
-
-
Response 500 ·
successRequiredfalseAlways false for error responses
503 Service Unavailable
application/json
Required, optional and null
Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.
-
Response 503 ·
errorRequiredobjectStructured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.
3 fields
-
Response 503 ·
error.codeRequiredstringApplication-specific error code (see error catalog)
-
Response 503 ·
error.messageRequiredstringHuman readable error message
-
Response 503 ·
error.detailsOptionalobjectOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
1 field
-
Response 503 ·
error.details[key]Each valueany JSON valueKey pattern: ^(.*)$.
-
-
-
Response 503 ·
successRequiredfalseAlways false for error responses