Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Read history on a run

Reads a page of the Run's immutable history, projected to Sylphx events.

Reads a page of the Run's immutable history, projected to Sylphx events.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows/workflow/runs/run:readHistory
  • Scope workflows:read
  • Effect read — nothing is written.
  • Collection runs
  • Query page_size, page_token

#Request

FieldTypeWhat it is
namestringThe name of the run. Required.
page_sizeint32At most this many; default 100, clamped to 1000.
page_tokenstringnext_page_token of the previous page.

#Response

FieldTypeWhat it is
eventsRunHistoryEvent[]The page, oldest first.
next_page_tokenstringThe token of the next page; empty on the last page.

#RunHistoryEvent

FieldTypeWhat it is
sequenceint64Monotonic sequence number within the Run. Output only.
event_timetimestampWhen the event happened. Output only.
kindRunHistoryEventKindWhat happened. Output only. One of run_started, invocation, step_completed, sleep_started, signal_received, child_started, cancel_requested, run_closed.
stepstringThe step id, for step events. Output only.
attemptint32The attempt number, for invocation events. Output only.
attempt_outcomeAttemptOutcomeThe attempt outcome, for invocation events. Output only. One of invoked, protocol_error, rejected, retryable, unreached, unknown, unsigned.
detailsstructEvent details (step output, signal payload, error). Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/workflows/workflow/runs/run:readHistory" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"