Documentation v0.43.0 all versions

API Access

OpenAPI Schema

The Web API has an auto-generated OpenAPI schema available at assets/schemas/openapi.json.

WebAPI

This document describes the REST-like API for managing components, deployments, and executions. It is the only API: the deprecated gRPC and gRPC-web API and proto/obelisk.proto were removed in 0.43.

General Information

Base URL

All endpoints are prefixed with /v1.

Authentication

The API port denies any request without a valid Authorization: Bearer <token> header, returning HTTP 401.

Present an accepted token on every request:

export OBELISK_API_TOKEN=<accepted-token>
export OBELISK_API_AUTH="Authorization: Bearer $OBELISK_API_TOKEN"
curl -H "$OBELISK_API_AUTH" http://127.0.0.1:5005/v1/components

An ephemeral startup token is generated on every server start and printed with server run --dev; persistent tokens are configured as SHA-256 hashes. See Authentication for how to generate and configure tokens.

All curl examples below use $OBELISK_API_AUTH defined above.

Content Negotiation

Structured resources and actions use application/json; their former text/plain representations were removed in 0.43. WIT, source files, IDs, scalar app-config digests, execution-log streams, and SSE retain their supported representations. Send an explicit Accept header when needed.

JSON is the default when no Accept header is sent. Structured endpoints return HTTP 406 when the header allows only text/plain; replace formatted-text pipelines with JSON consumers such as jq. The CLI still formats human-readable output locally.


Components

GET /v1/components

Lists all registered components in the system.

Query Parameters:

ParameterTypeDescriptionDefault
typeStringFilter by Component Type.None
nameStringFilter by component name.None
ffqnStringFilter by function FFQN or its prefix (any prefix of ns:pkg/ifc.fn).None
digestStringFilter by component digest (sha256 of the WASM file for WASM components; hash of JS source + configuration for JS components).None
deployment_idStringFilter by deployment ID.None
exportsBooleanInclude exported functions in the response.false
importsBooleanInclude imported functions in the response.false
submittableBooleanIf set, filters the exports list to only include functions that can be submitted.None (Shows all)
extensionsBooleanInclude Extension Functions exports (e.g. -schedule variant).false

Export extension classification

With exports=true&extensions=true, each generated export has an extension string. Ordinary exports omit that field. The values are:

Export suffixextension value
-submitsubmit
-await-nextawait_next
-getget
-scheduleschedule
-schedule-with-idschedule_with_id
-stubstub

-schedule-with-id is classified as schedule_with_id, not schedule. Clients decoding the enum must accept this new value in 0.43. These values were checked against the 0.43.0-rc.1 binary with workflow and stub exports through this endpoint.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/components?exports=true&imports=false" -H accept:application/json
[
  {
    "component_id": {
      "component_type": "activity",
      "name": "test_programs_fibo_activity",
      "component_digest": "sha256:6a4566fb2de6564b4cbdaa6572983612d10cfe5558cb48b631e303e1d6a9e2d0"
    },
    "files": [
      {
        "file": {
          "path": "target/wasm-cache/test_programs_fibo_activity.wasm",
          "digest": "sha256:6a4566fb2de6564b4cbdaa6572983612d10cfe5558cb48b631e303e1d6a9e2d0",
          "size": 331911
        },
        "role": "wasm_component"
      }
    ],
    "exports": [
      {
        "ffqn": "testing:fibo/fibo.fibo",
        "parameter_types": [
          {
            "name": "n",
            "wit_type": "u8"
          }
        ],
        "return_type": "result<u64>",
        "submittable": true
      }
    ]
  },
  ...
]

Filter by FFQN prefix using JSON:

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/components?exports=true&ffqn=testing:fibo/fibo.fibo" -H accept:application/json

GET /v1/components/{digest}/wit

Retrieves the WebAssembly Interface Type (WIT) definition for a specific component.

Path Parameters:

  • digest: Component digest (see digest in GET /v1/components).

Query Parameters:

ParameterTypeDescriptionDefault
deployment_idStringFilter by deploymentNone

Returns:

  • 200 OK: The WIT text.
  • 204 No Content: If the component exists but has no WIT definition.
  • 404 Not Found: Component not found.

Example request

curl -H "$OBELISK_API_AUTH" '127.1:5005/v1/components/sha256:6a4566fb2de6564b4cbdaa6572983612d10cfe5558cb48b631e303e1d6a9e2d0/wit'
package root:component;

world root {
  import wasi:io/error@0.2.3;
  ...
}
...

GET /v1/components/{digest}/sources

Lists the source files registered for a component as a JSON array of { "file", "digest" } objects, including the scripts of exec activities. file is the key accepted by GET /v1/components/{digest}/source; suffix keys keep their .../ prefix.


GET /v1/components/{digest}/source

Retrieves a source file of a component, such as a JavaScript module or a file referenced by backtrace source mappings.

Query Parameters:

ParameterTypeDescriptionDefault
fileStringFile path to retrieve. Suffix matching is used if not exact.Required

Executions

GET /v1/execution-id

Deprecated: generate execution IDs locally instead, for example with obelisk generate execution-id.

Generates a new, globally unique execution id.

Returns:

  • JSON: quoted string, e.g. "E_01KDN7RB038RJHVZ5QS6MMWWZ4"
  • Text: raw id, e.g. E_01KDN7RB038RJHVZ5QS6MMWWZ4

GET /v1/executions

Lists executions with support for filtering and pagination.

Query Parameters:

ParameterTypeDescriptionDefault
ffqn_prefixStringFilter by Function Fully Qualified Name or its prefix.None
packageStringExact package scope, for example ns:pkg.None
interfaceStringExact interface scope, for example ns:pkg/ifc.None
functionStringExact Function Fully Qualified Name, for example ns:pkg/ifc.fn.None
stateStringMatch any of the given states. Repeat the parameter for several.None
show_derivedBooleanIf true, includes child executions.false
hide_finishedBooleanShow only unfinished executions.false
exclude_component_typeStringHide executions of the given component type. Repeat for several.None
outdatedBooleanUnfinished executions whose component is not in the active deployment.false
upgrade_failedBooleanUnfinished executions whose auto-upgrade to the active deployment failed.false
execution_id_prefixStringFilter by Execution ID or its prefix.None
component_digestStringFilter by component digest (see digest in GET /v1/components).None
deployment_idStringFilter by deployment ID.None
orderStringSort order: created_at or execution_id.created_at
cursorStringOpaque cursor of a listed execution, from the same order.None
lengthIntegerNumber of items to return.System Default
directionStringolder or newer.older
including_cursorBooleanInclude the cursor item in the result.false

Each listed execution carries its cursor. Executions sharing a timestamp are not dropped or repeated at page boundaries. Bare timestamp and execution ID cursors are still accepted.

state accepts locked, pending, scheduled, blocked, paused, cancelling, finished, finished_ok, finished_error, and finished_execution_failure, e.g. ?state=pending&state=blocked.

exclude_component_type accepts activity, activity_stub, workflow, webhook_endpoint, and cron, e.g. ?exclude_component_type=webhook_endpoint hides webhook executions.

outdated and upgrade_failed compare component digests with the active deployment, so an execution of a component that did not change between deployments is not outdated. An outdated workflow with the auto locking strategy is upgraded when it next runs; upgrade_failed lists those whose replay against the active deployment detected nondeterminism. Both match nothing while no deployment is active.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions?length=10&direction=older" -H accept:application/json
[
  {
    "execution_id": "E_01KDJH6F811F2E0Q7AC4PDR9WE",
    "ffqn": "obelisk-flyio:workflow/workflow@1.0.0-beta.app-init",
    "pending_state": {
      "status": "finished",
      "version": 16,
      "finished_at": "2025-12-28T13:09:50.226429459Z",
      "result_kind": "ok"
    },
    "created_at": "2025-12-28T13:08:38.274234577Z",
    "first_scheduled_at": "2025-12-28T13:08:38.274234577Z",
    "component_digest": "sha256:b2ee4bdf32367e5d4eaf3643b95b9d7261996a5fe03582bff58cc59a884dc29b",
    "component_type": "workflow",
    "deployment_id": "Dep_01KN1NK9A6NMHP31TVJ875X599"
  },
  ...
]

POST /v1/executions

Submits a new execution. The system will automatically generate an Execution ID.

Query Parameters:

  • follow: (Boolean) If true, the response is a server-sent event stream that delivers the result once the execution finishes.

Request Body:

  • ffqn: (String) Function Fully Qualified Name.
  • params: (Array) JSON array of parameters matching the function signature.
  • paused: (Boolean, optional) If true, the execution is created in paused state and won't run until explicitly unpaused or advanced. Default: false.

Example request

curl -H "$OBELISK_API_AUTH" '127.1:5005/v1/executions' -H content-type:application/json -H accept:application/json -X POST -d \
'{ "ffqn":"testing:fibo/fibo.fibo", "params": [5] }'
{ "ok": "E_01KDN8Y8ZZ4XYG2J0XJW5A8WE5" }

Getting the result with follow set to true:

curl -H "$OBELISK_API_AUTH" '127.1:5005/v1/executions?follow=true' -H content-type:application/json -X POST -d \
'{ "ffqn":"testing:fibo/fibo.fibo", "params": [5] }'
event: result
id: 1
data: {"ok":5}

PUT /v1/executions/{execution-id}

Submits an execution with a client-provided ID. This is idempotent; if the execution already exists with the same parameters, it returns 200 OK.

Path Parameters:

  • execution-id: The unique ID for this execution.

Query Parameters:

Example request

EXECUTION_ID=$(obelisk generate execution-id)
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}" -H content-type:application/json -H accept:application/json -X PUT -d \
'{ "ffqn":"testing:fibo/fibo.fibo", "params": [5] }'
{ "ok": "E_01KDN9422HAK2AHY9EXZA201TD" }

Getting the result with follow set to true:

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}?follow=true" -H content-type:application/json -X PUT -d \
'{ "ffqn":"testing:fibo/fibo.fibo", "params": [5] }'
event: result
id: 1
data: {"ok":5}

GET /v1/executions/{execution-id}

Retrieves the result of an execution.

Query Parameters:

Responses:

  • 200 OK: Returns the Execution Result.
  • 425 Too Early: Execution is still in progress (only returned if follow=false).

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}"
{ "ok": 5 }

Following results

With follow=true, the submit and result endpoints respond with Content-Type: text/event-stream. The stream carries a single result event with ID 1 whose data is the Execution Result JSON, then closes. While waiting, the server sends periodic comment lines as heartbeats. A client that reconnects with Last-Event-ID: 1 receives an empty stream, because the result was already delivered.


GET /v1/executions/{execution-id}/status

Returns the current lifecycle status (e.g., pending, finished). Unlike the root GET endpoint, this returns the internal state rather than the function return value.

Query Parameters:

  • follow: (Boolean) Return a server-sent event stream. Each change emits a status event with the status JSON below; the stream closes once the execution finishes. Event IDs are content digests, so a reconnecting client can send Last-Event-ID to skip a status it already received.
  • send_finished_status: (Boolean) With follow, emit a final finished_status event carrying created_at, scheduled_at, finished_at, and the result value.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/status" -H accept:application/json
{
  "execution_id": "E_01KDQR2TGJR2XWEDM4CS6E4TF1",
  "ffqn": "testing:fibo/fibo.fibo",
  "pending_state": {
    "status": "finished",
    "version": 2,
    "finished_at": "2025-12-30T13:45:14.993810795Z",
    "result_kind": "ok"
  },
  "created_at": "2025-12-30T13:45:14.968745786Z",
  "first_scheduled_at": "2025-12-30T13:45:14.968745786Z",
  "component_digest": "sha256:6a4566fb2de6564b4cbdaa6572983612d10cfe5558cb48b631e303e1d6a9e2d0",
  "component_type": "activity",
  "deployment_id": "Dep_01KN1NK9A6NMHP31TVJ875X599"
}

GET /v1/executions/{execution-id}/events-and-responses

Returns a consistent snapshot of an execution's events and join-set responses in one request. It uses version_from, events_length, and include_backtrace_id for events, plus responses_cursor_from, responses_length, and responses_including_cursor for responses. These names differ from the separate events and responses endpoints.

With follow=true the endpoint streams events_and_responses events, see Following pages. The first event is always sent, later ones only when new events or responses exist. The event ID is {next_version}:{next_response_cursor}. events_length and responses_length become totals for the whole stream.


GET /v1/executions/{execution-id}/events

Retrieves the history of events for an execution.

Query Parameters:

ParameterTypeDescriptionDefault
versionIntegerEvent version cursor.0
lengthIntegerMax number of events.20
directionStringolder or newer.newer
including_cursorBooleanInclude the cursor event.false
include_backtrace_idBooleanInclude debugging backtrace IDs.false

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/events" -H accept:application/json
{
  "events": [
    {
      "created_at": "2025-12-29T14:46:33.030449088Z",
      "event": {
        "locked": {
          "component_id": {
            "component_type": "activity",
            "name": "test_programs_fibo_activity",
            "component_digest": "sha256:6a4566fb2de6564b4cbdaa6572983612d10cfe5558cb48b631e303e1d6a9e2d0"
          },
          "executor_id": "Exr_01KDN7RB038RJHVZ5QS6MMWWZ4",
          "deployment_id": "Dep_01KN1NK9A6NMHP31TVJ875X599",
          "run_id": "Run_01KDN7RB038RJHVZ5QS6MMWWZ5",
          "lock_expires_at": "2025-12-29T14:46:34.030449088Z",
          "retry_config": {
            "max_retries": 5,
            "retry_exp_backoff": { "secs": 0, "nanos": 100000000 }
          }
        }
      },
      "version": 1
    },
    {
      "created_at": "2025-12-29T14:46:33.082449088Z",
      "event": {
        "finished": {
          "retval": { "ok": 5 },
          "http_client_traces": []
        }
      },
      "version": 2
    }
  ],
  "max_version": 2
}

POST /v1/executions/events/batch

Reads the Created event and optional Finished event for each requested execution in one database transaction. The response preserves the order of execution_ids. Send at least one ID; an unknown ID returns 404 for the whole request.

curl -H "$OBELISK_API_AUTH" -H 'content-type: application/json' \
  '127.1:5005/v1/executions/events/batch' -d \
  '{"execution_ids":["E_01KDN9VJ2TJ396ZARNEMRBNBHP"]}'
[
  {
    "execution_id": "E_01KDN9VJ2TJ396ZARNEMRBNBHP",
    "created": {
      "created_at": "...",
      "version": 0,
      "event": { "created": { "ffqn": "...", "params": [] } }
    },
    "finished": null
  }
]

The event bodies above show only selected fields. finished is null while the execution is in progress. When it finishes, the field contains its Finished event, including the return value.


POST /v1/executions/status/batch

Returns the status of up to 200 executions in one request, as an array of status objects extended with max_version. Duplicate IDs are ignored and unknown IDs are skipped. An empty list or more than 200 IDs is rejected with 400 Bad Request.

curl -H "$OBELISK_API_AUTH" -H 'content-type: application/json' \
  '127.1:5005/v1/executions/status/batch' -d \
  '{"execution_ids":["E_01KDN9VJ2TJ396ZARNEMRBNBHP"]}'

With follow=true the response is a text/event-stream of statuses events. The first event lists all found executions, even when none were found. Later events list only executions whose status or max_version changed. A finished execution is sent once and then no longer followed, and the stream ends when no unfinished executions are left. Events have no ID, so a reconnecting client receives all statuses again. Use one batch stream instead of one status stream per execution to stay within browser connection limits.


GET /v1/executions/{execution-id}/responses

Retrieves responses associated with an execution (used for long-running interactions).

Query Parameters:

ParameterTypeDescriptionDefault
cursorIntegerResponse cursor for pagination.0
lengthIntegerMax number of responses.20
including_cursorBooleanInclude the response at cursor.false
join_setStringFilter to responses of this join-set ID.all
directionStringolder or newer.newer
followBooleanStream responses events.false

join_set takes a canonical join-set ID as shown in join_set_id, for example o:1-fibo or n:session-events (URL-encode the colon as %3A if needed). A bare join-set name is rejected with 400 Bad Request.

Example request

EXECUTION_ID=$(obelisk generate execution-id)
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}"?follow=true -H content-type:application/json -X PUT -d \
'{ "ffqn":"testing:fibo-workflow/workflow.fiboa", "params": [5,5] }'

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/responses" -H accept:application/json
{
  "responses": [
    {
      "event": {
        "created_at": "2025-12-29T14:58:17.290976499Z",
        "event": {
          "join_set_id": "o:1-fibo",
          "event": {
            "type": "child_execution_finished",
            "child_execution_id": "E_01KDN9VJ2TJ396ZARNEMRBNBHP.o:1-fibo_1",
            "finished_version": 2,
            "result": {
              "ok": {
                "type": "u64",
                "value": 5
              }
            }
          }
        }
      },
      "cursor": 1
    }
  ],
  "max_cursor": 5,
  "scan_cursor": 1
}

With follow=true each responses event carries one page in the JSON format above, and its event ID is the cursor of the last response sent. See Following pages.

Following pages

The responses, logs, and events-and-responses endpoints accept follow=true. The response is then a text/event-stream that sends new rows as they are written:

  • Each event's data has the same JSON format as one page of the non-follow response, with at most 200 rows per event. The server polls for new rows once per second.
  • follow reads forward only; direction=older is rejected with 400 Bad Request.
  • The event ID is the position after the event. A reconnecting client sends it as Last-Event-ID, which replaces the cursor from the query and excludes the row at that position. An unparsable Last-Event-ID is rejected with 400 Bad Request.
  • length (or events_length and responses_length) limits the total number of rows for the whole stream instead of one page. Without it the stream is unlimited.
  • The stream ends when the length is used up, shortly after the execution finishes and all remaining rows were sent, when the client disconnects, or when the server shuts down.
  • A missing execution is reported as a regular HTTP error before the stream starts.
  • Comment lines are sent every 15 seconds as heartbeats.
  • The Accept header must allow application/json or text/event-stream, otherwise the server responds with 406 Not Acceptable.
curl -N -H "$OBELISK_API_AUTH" \
  "127.1:5005/v1/executions/${EXECUTION_ID}/responses?follow=true" -H accept:text/event-stream

PUT /v1/executions/{execution-id}/stub

Manually provides a return value for a stubbed execution. The execution-id here is a derived ID (child execution).

Request Body (JSON): The body must match the return type of the stubbed function.

{
  "ok": "your-return-value"
}

or

{
  "err": "your-error-value"
}

Example request

EXECUTION_ID=$(obelisk generate execution-id)
# Submit a workflow that submits a stub activity
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}" -H content-type:application/json -H accept:application/json -X PUT -d \
'{ "ffqn":"testing:stub-workflow/workflow.submit-await", "params": ["test"] }'
# Create the expected child execution id based on code or execution log
CHILD_EXECUTION_ID="${EXECUTION_ID}.o:1-foo_1"
# Optionally verify the id:
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/events" -H accept:application/json | grep $CHILD_EXECUTION_ID
# returns a row containing: HistoryEvent(JoinSetRequest(ChildExecutionRequest(E_01KDNB650P06H69YR1FD973MA0.o:1-foo_1, testing:stub-activity/activity.foo, params: ["test"])))

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${CHILD_EXECUTION_ID}/stub" -H content-type:application/json -X PUT -d \
'{"ok": "some return value"}'
{ "ok": "stubbed" }

PUT /v1/executions/{execution-id}/upgrade

Upgrade an execution to run with a different WASM component. Upgrading only makes sense when the executor is configured to lock executions by its WASM's sha256 digest:

exec.locking_strategy = "by_component_digest"

Request Body (JSON):

{
  "old": "sha256:old-sha",
  "new": "sha256:new-sha"
}

Example request

obelisk server run -a app-testing-wasm.toml --deployment deployment-testing-wasm-oci.toml # components from Docker Hub
EXECUTION_ID=$(obelisk generate execution-id)
# Submit a workflow
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}" -H content-type:application/json -X PUT -d \
'{ "ffqn":"testing:sleep-workflow/workflow.sleep-host-activity", "params": [{"seconds":10}] }'

# Shutdown the server before the execution finishes.
obelisk server run -a app-testing-wasm.toml --deployment deployment-testing-wasm-local.toml # components built locally
# Find the old and new sha256 digest
OLD=$(curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/status"  -H accept:application/json | jq .component_digest)
NEW=$(curl -H "$OBELISK_API_AUTH" '127.1:5005/v1/components?name=test_programs_sleep_workflow' -H 'accept:application/json' | jq .[0].component_id.component_digest)

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/upgrade" -H content-type:application/json -X PUT -d \
'{"old":'$OLD', "new": '$NEW' }'
{ "ok": "upgraded" }

GET /v1/executions/{execution-id}/logs

Retrieves stored logs and output streams for an execution. Logs are stored in the database when forward_stdout/forward_stderr is set to "db" (the default) or when using the obelisk:log API.

Query Parameters:

ParameterTypeDescriptionDefault
levelStringFilter by log level; repeat for several levelsall
stream_typeStringFilter by stdout or stderr; repeat as neededboth
show_logsBooleanInclude structured log entriestrue
show_streamsBooleanInclude stdout/stderr stream entriestrue
show_derivedBooleanInclude logs from all derived (child) executionsfalse
show_run_idBooleanInclude run IDs in text outputfalse
cursorStringOpaque pagination cursor returned by the APInone
afterDateTimeInclude only entries after this timestampnone
lengthIntegerMax entries to return20
including_cursorBooleanInclude the entry at cursorfalse
directionStringolder or newernewer
followBooleanStream logs eventsfalse

With follow=true each logs event carries one page and its event ID is the page's cursor. With show_derived=true the stream includes logs of child executions. See Following pages.

Use after with an RFC 3339 timestamp for time filtering. A timestamp in cursor is rejected.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/logs" -H accept:application/json
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/logs?show_derived=true" -H accept:application/json

GET /v1/executions/{execution-id}/backtrace

Returns a persisted call-site backtrace of a workflow execution, including WASM call frames and source symbol information. Backtraces are stored when a webhook or workflow is configured with backtrace_persist, when advance is called with persist_backtrace, or on demand with PUT /v1/executions/{execution-id}/backtrace/persist. Otherwise the endpoint returns 404 Not Found.

Query Parameters:

ParameterTypeDescriptionDefault
versionStringWhich backtrace to retrieve: "first", "last", or a version number"last"

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/backtrace" -H accept:application/json
{
  "execution_id": "E_01KDQR2TGJR2XWEDM4CS6E4TF1",
  "component_id": {
    "component_type": "workflow",
    "name": "my_workflow",
    "component_digest": "sha256:abc123..."
  },
  "version_min_including": 1,
  "version_max_excluding": 3,
  "wasm_backtrace": {
    "frames": [
      {
        "module": "my_workflow",
        "func_name": "panic_handler",
        "symbols": [{ "func_name": "my_fn", "file": "src/lib.rs", "line": 42, "col": 5 }]
      }
    ]
  }
}

GET /v1/executions/{execution-id}/backtrace/source

Retrieves the source file content referenced by a backtrace frame. The component must be compiled with debug info so frames carry file symbols, and the deployment must map those files to local sources with backtrace.sources.

Query Parameters:

ParameterTypeDescriptionDefault
fileStringFrame file path; a unique trailing path suffix is also acceptedrequired
versionStringBacktrace version for component lookup: "first", "last", or a number"last"

Responses:

  • 200 OK: Source file content as a string.
  • 404 Not Found: Source file not found in the component.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/backtrace/source?file=workflow/src/lib.rs"

PUT /v1/executions/{execution-id}/pause

Pauses an active execution. The execution will not be scheduled for further processing until it is unpaused. Running activities cannot be paused while locked; activity pausing applies between runs. Cancel a running activity if it must be interrupted immediately.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/pause" -X PUT -H accept:application/json
{ "ok": "paused" }

PUT /v1/executions/{execution-id}/unpause

Resumes a previously paused execution.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/unpause" -X PUT -H accept:application/json
{ "ok": "unpaused" }

PUT /v1/executions/{execution-id}/replay

Replay a workflow execution from its execution log. The response indicates what would happen next without actually applying any writes:

  • advanceable — replay produced captured writes that can be forwarded to the advance endpoint
  • finished — execution would complete; includes the return value
  • blocked — execution is waiting for an external event (e.g. a stub response or delay)
  • replay_failed — non-determinism detected or other replay error

Every JSON outcome also includes:

  • replayed_event_count: number of persisted history events supplied to the workflow;
  • replay_duration_ms: time spent executing the replay after loading its log; and
  • replay_version: highest persisted execution-event version included in the replay. Response records have a separate cursor and are not included in this version.

A replay_failed outcome can include a structured, sanitized failure object in addition to its human-readable error and captured writes.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/replay" -X PUT -H accept:application/json
{ "type": "finished", "retval": { "ok": 5 } }

PUT /v1/executions/{execution-id}/advance

Advance a paused execution by applying captured writes from a previous replay. The typical workflow is: create a paused execution, call replay to preview what would happen, then advance to apply those writes. This enables step-through debugging — you can inspect each step, trim events, or mark child executions as paused before they execute.

Request Body (JSON):

{
  "captured_writes": [...],
  "persist_backtrace": false
}

The captured_writes array should contain the writes returned by a previous replay call. Set persist_backtrace to true to persist fresh call-site backtraces while applying the writes.

Responses:

  • 200 OK: Returns the advance outcome:
    • { "type": "finished", "value": { "ok": ... } } — execution completed
    • { "type": "in_progress", "pending_state": {...} } — execution advanced but not yet finished
  • 404 Not Found: Execution not found.
  • 422 Unprocessable Entity: Advance failed. Error types:
    • no_writes — no captured writes provided
    • replay_error — replay during advance encountered an error
    • version_mismatch — the execution was modified since the replay
    • replay_mismatch — the replayed state doesn't match the captured writes

Example request

# 1. Create a paused execution
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions" -H content-type:application/json -X POST -d \
'{ "ffqn":"my:app/workflow.run", "params": [], "paused": true }'

# 2. Replay to preview the next step
REPLAY=$(curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/replay" -X PUT -H accept:application/json)

# 3. Advance to apply the captured writes
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/advance" -X PUT \
  -H content-type:application/json -H accept:application/json \
  -d "{\"captured_writes\": $(echo $REPLAY | jq .captured_writes)}"

PUT /v1/executions/{execution-id}/backtrace/persist

Replay a workflow and persist its call-site backtraces. The operation is idempotent and skips backtraces that are already stored.

Example request

curl -H "$OBELISK_API_AUTH" \
  "127.1:5005/v1/executions/${EXECUTION_ID}/backtrace/persist" \
  -X PUT -H accept:application/json
{ "persisted_backtrace_count": 12 }

Returns 404 when the execution does not exist and 422 when replay fails.


Delays

PUT /v1/delays/{delay-id}/pause

Pauses a pending delay request, preventing it from firing until unpaused.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/delays/${DELAY_ID}/pause" -X PUT -H accept:application/json

PUT /v1/delays/{delay-id}/unpause

Resumes a previously paused delay request.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/delays/${DELAY_ID}/unpause" -X PUT -H accept:application/json

Functions

GET /v1/functions

Lists available functions across all components. Pass extensions=true to include extension functions; they are omitted by default.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/functions" -H accept:application/json

GET /v1/functions/wit

Retrieves the WIT definition for a specific function.

Query Parameters:

ParameterTypeDescription
ffqnStringFunction Fully Qualified Name

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/functions/wit?ffqn=testing:fibo/fibo.fibo"

Deployments

GET /v1/deployment-id

Deprecated: use deployment_id from GET /v1/info.

Retrieves the current deployment ID.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/deployment-id" -H accept:application/json

GET /v1/deployments

Lists deployment states, most recently updated first (by updated_at, then deployment ID).

Query Parameters:

ParameterTypeDescriptionDefault
cursor_fromStringDeployment ID cursor for paginationNone
lengthIntegerNumber of items to returnSystem Default
including_cursorBooleanInclude the cursor item in the resultfalse
include_derivedBooleanInclude child executions in execution summariesfalse
include_component_summaryBooleanInclude component counts by manifest sectionfalse
directionStringolder or newerolder
include_deployment_tomlBooleanInclude each deployment's TOMLfalse
include_execution_countsBooleanInclude execution state countstrue

The active deployment also reports outdated and upgrade_failed: the number of executions the outdated and upgrade_failed filters of GET /v1/executions return. Other deployments report 0. Both respect include_derived.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/deployments" -H accept:application/json
[
  {
    "deployment_id": "Dep_01KN1NK9A6NMHP31TVJ875X599",
    "description": "production",
    "digest": "sha256:...",
    "status": "active",
    "created_at": "2026-03-31T10:04:01.736281506Z",
    "last_active_at": "2026-03-31T10:04:01.736491095Z",
    "last_active_app_config_digest": "app-config:v1:sha256:...",
    "locked": 0,
    "pending": 0,
    "scheduled": 0,
    "blocked": 0,
    "paused": 0,
    "cancelling": 0,
    "finished_ok": 6,
    "finished_error": 0,
    "finished_execution_failure": 0,
    "outdated": 0,
    "upgrade_failed": 0,
    "component_summary": null,
    "deployment_toml": null
  }
]

GET /v1/deployments/{deployment-id}

Returns the full details of a specific deployment, including its stored deployment.toml. Pass include_generated_metadata=false to remove server-generated metadata from the returned manifest; the stored server view is returned by default.

Path Parameters:

  • deployment-id: The deployment ID.

Responses:

  • 200 OK: Returns a DeploymentRecord object.
  • 404 Not Found: Deployment not found.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/deployments/Dep_01KN1NK9A6NMHP31TVJ875X599" -H accept:application/json
{
  "deployment_id": "Dep_01KN1NK9A6NMHP31TVJ875X599",
  "description": "production",
  "digest": "sha256:...",
  "status": "active",
  "created_at": "2026-03-31T10:04:01.736281506Z",
  "last_active_at": "2026-03-31T10:04:01.736491095Z",
  "last_active_app_config_digest": "app-config:v1:sha256:...",
  "deployment_toml": "...",
  "files": [...]
}

GET /v1/deployment-digests/{digest}

Finds the deployment storing some content. Deployment digests are unique, so at most one deployment matches. Compute the digest of a deployment TOML with obelisk deployment digest.

Path Parameters:

  • digest: Deployment content digest (sha256:...).

Responses:

  • 200 OK: { "deployment_id": "Dep_..." }
  • 404 Not Found: No deployment stores this content.

Example request

DIGEST=$(obelisk deployment digest deployment.toml)
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/deployment-digests/$DIGEST" -H accept:application/json

POST /v1/deployments

Deprecated: use PUT /v1/deployments/{deployment-id} with a caller-generated ID; retrying a POST creates duplicate deployments.

Submits a JSON or multipart deployment package under a server-generated ID and returns 201 Created, a Location header, and { "deployment_id": "Dep_..." } in JSON. Content that is already stored is not duplicated: its deployment is refreshed as with PUT and returned with 200 OK.


PUT /v1/deployments/{deployment-id}

Submits a deployment package under a caller-generated deployment ID and stores it in the database. Resubmitting the same ID and content bumps updated_at, which deployment retention orders by, and sets the description if given: an omitted or null description keeps the current one, an empty string clears it. Each content is stored once: reusing an ID for different content, or submitting stored content under a new ID, returns a conflict. Look up the ID of stored content with GET /v1/deployment-digests/{digest}. The deployment is not yet activated; use PUT /v1/deployments/{id}/switch to activate it.

Path Parameters:

  • deployment-id: A new deployment ID generated by the caller.

Request Body (JSON):

FieldTypeDescription
deployment_tomlStringVerbatim deployment manifest
descriptionStringOptional human-readable description; on resubmit omitted keeps it, "" clears it
allow_unavailable_runtime_configBooleanStore before runtime values or app and platform approvals are available (false)

Set allow_unavailable_runtime_config to true when a developer submits a deployment for later admin approval. Missing values, public environment declarations, secret registrations, outbound HTTP allowances, and exec approvals are tolerated during submission. Invalid manifests, missing files, compile errors, and link errors still fail. Submission alone does not activate the deployment; activation requires strict verification.

The endpoint also accepts multipart/form-data. Use text fields for deployment_toml, description, and allow_unavailable_runtime_config. Every other part is treated as a deployment-owned file blob; its filename is the deployment-relative path and the form-field name is either the claimed sha256:... digest or file.

The wire upload package (not an authored deployment file) requires generated metadata. Every deployment-owned file referenced by location must carry its content_digest in the submitted manifest, for example content_digest = "sha256:..." next to location. The Obelisk CLI adds these digests automatically; raw REST clients compute the SHA-256 of each file. Files already present in the server's content store need not be attached again.

Responses:

  • 204 No Content: Deployment stored (also returned when retrying the same ID and content).
  • 400 Bad Request: Invalid configuration, including a missing content_digest.
  • 409 Conflict: The ID stores different content, the content is stored under another ID, or the package is incomplete or invalid. For a package error, the JSON body lists missing digest fields, missing files, unexpected files, digest mismatches, and oversized files. No deployment is stored.

Example request

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/deployments/Dep_01KN1NK9A6NMHP31TVJ875X599" \
  -H content-type:application/json -X PUT -d \
  "$(jq -Rs '{deployment_toml: ., description: "production"}' deployment.toml)"

Multipart package with a deployment-owned script:

curl -H "$OBELISK_API_AUTH" \
  "127.1:5005/v1/deployments/Dep_01KN1NK9A6NMHP31TVJ875X599" -X PUT \
  -F deployment_toml=@deployment.toml \
  -F 'file=@scripts/run.sh;filename=scripts/run.sh'

where the wire manifest declares the script with its generated digest. Authored deployment.toml must omit content_digest and component_files; use the CLI to package it:

[[activity_exec]]
ffqn = "example:scripts/run.run"
location = "scripts/run.sh"
content_digest = "sha256:..." # sha256sum scripts/run.sh
return_type = "result"

GET /v1/files/{digest}

Downloads a deployment-owned file from the content store by its sha256:... digest. Returns the raw file bytes, or 404 Not Found if the digest is absent.


PUT /v1/files/{digest}

Uploads one deployment-owned file ahead of the deployment submit that references it. The body is the raw file (application/octet-stream); the server checks it against the sha256:... digest in the path and against limits.max_deployment_file_size. Uploading the same file again is harmless.

A file that no deployment references yet is kept for maintenance.gc.upload_grace_period (1 hour by default), then reclaimed by garbage collection.

Responses:

  • 204 No Content: File stored.
  • 400 Bad Request: Invalid digest, or the body does not match it.
  • 413 Payload Too Large: The file exceeds the per-file limit.

To submit a deployment file by file, send the JSON submit, upload each file listed in the 409 response's missing_files, then repeat the same JSON submit. If garbage collection reclaimed an upload before the second submit, it reports the file as missing again; upload it and retry. The CLI follows this flow, and --verbose logs each file's path, size, and digest before its upload.

digest="sha256:$(sha256sum scripts/run.sh | cut -d' ' -f1)"
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/files/$digest" -X PUT \
  -H content-type:application/octet-stream --data-binary @scripts/run.sh

PUT /v1/deployments/{deployment-id}/switch

Activates a previously submitted deployment. Supports hot-redeploy (apply without a server restart) or enqueue (activate on next restart).

Path Parameters:

  • deployment-id: The deployment ID to switch to.

Headers:

  • If-Match (required): "<node_run_id>:<switch_count>", both read from GET /v1/info. The switch count grows with every applied or enqueued switch, including enqueueing the active deployment in place of a queued one. Read the value once and reuse it when retrying, so that a retry cannot override a switch made in the meantime. A request for what is already in effect succeeds whatever the header says: activating the active deployment, enqueueing the queued one, or enqueueing the active one when nothing is queued.

Request Body (JSON):

FieldTypeDescription
applyBooleanIf true, apply immediately without restarting (default: false).
allow_unavailable_runtime_configBooleanEnqueue before runtime values or app and platform approvals are available (false). Applying without restart rejects true.

An enqueue request with this field set to true can queue a deployment that does not yet fit the app or platform policy. Startup checks the configuration strictly before activation, so supply the values and approvals before restarting. Hot apply always requires strict verification.

Responses:

  • 200 OK: Returns { "ok": "switched" } (hot-redeployed or already active) or { "ok": "restart_required" } (enqueued for next restart). A retry after a lost response gets the same result.
  • 404 Not Found: Deployment not found.
  • 400 Bad Request: Switch or validation failed.
  • 412 Precondition Failed: If-Match names an earlier server run or switch count and the request would change the active or enqueued deployment. The body reports the current state: { "err": "...", "if_match": "\"<node_run_id>:<switch_count>\"", "deployment_id": "Dep_...", "enqueued_deployment_id": "Dep_..." }, where enqueued_deployment_id is omitted when nothing is queued.
  • 428 Precondition Required: If-Match is missing or malformed.

Example request

if_match() {
  curl -s -H "$OBELISK_API_AUTH" 127.1:5005/v1/info |
    jq -r '"\"\(.node_run_id):\(.switch_count)\""'
}

# Enqueue a deployment (activates on next restart)
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/deployments/Dep_01KN1NK9A6NMHP31TVJ875X599/switch" \
  -H "If-Match: $(if_match)" -H content-type:application/json -X PUT -d '{"apply": false}'

# Apply immediately without restart
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/deployments/Dep_01KN1NK9A6NMHP31TVJ875X599/switch" \
  -H "If-Match: $(if_match)" -H content-type:application/json -X PUT -d '{"apply": true}'

Each switch reads a fresh value. A retry of the same switch reuses the value of its first attempt.

{ "ok": "switched" }

Server Information

GET /v1/info

Returns the app name, the server's app_env_prefix, Obelisk version, current deployment ID, node run ID, the number of deployment switches since the server started (switch_count, used by deployment switch), app config digest, server start time, the HTTP servers it listens on, and, in the optional gc object, the [maintenance.gc] settings with durations in milliseconds, as JSON.

http_servers lists the started webhook servers and the Web UI (webui), without the API listener. A server that does not start, such as external without credentials or a public_http_servers entry, is not listed. Each entry has its name, has_routes (whether the active deployment attaches any webhook route to it), and public_url when server.toml sets one (webui.public_url for the Web UI):

{
  "app_name": "my-app",
  "app_env_prefix": "",
  "obelisk_version": "0.43.0",
  "deployment_id": "Dep_...",
  "node_run_id": "NodeRun_...",
  "switch_count": 0,
  "app_config_digest": "app-config:v1:sha256:...",
  "started_at": "2026-10-18T11:00:00.000Z",
  "http_servers": [
    { "name": "webui", "has_routes": true },
    { "name": "internal", "has_routes": true, "public_url": "https://internal.example.com" }
  ],
  "gc": {
    "enabled": true,
    "interval_ms": 30000,
    "batch_size": 1000,
    "batch_delay_ms": 25,
    "upload_grace_period_ms": 3600000,
    "retention": {
      "executions": { "enabled": true, "max_age_ms": 2678400000, "max_count": 1000 },
      "deployments": { "enabled": true, "max_age_ms": 2678400000, "max_count": 100 },
      "system_events": { "enabled": true, "max_age_ms": 2678400000 }
    }
  }
}

App Policy

GET /v1/app-policy

Returns the running app policy: secrets without values, public environment names, exec approvals, and outbound HTTP rules. JSON is the default; send Accept: application/toml to receive the same document as TOML. The response is the policy object itself; read its canonical digest from app_config_digest in GET /v1/info. Deployments record the digest that was in effect when they were activated, and system events carry the current digest.

{
  "format": "obelisk-app-config-v1",
  "secrets": {},
  "public_env": [],
  "allowed_exec_activities": {},
  "outbound_http": [{ "pattern": "https://example.com", "methods": ["GET"], "...": "..." }]
}

An outbound_http entry written with url_prefix keeps url_prefix and, when set, url_regex_suffix in place of pattern, both exactly as written in app.toml (variables are not expanded).

GET /v1/app-toml

Returns the app.toml the server started with, verbatim, as application/toml. A request whose Accept header does not allow application/toml is rejected. obelisk app pull uses this endpoint.

Deprecated: GET /v1/app-config and GET /v1/app-config-digest

Both endpoints are deprecated and will be removed after 0.43. GET /v1/app-config wraps the policy as { "app_config_digest": "...", "policy": { ... } }; use GET /v1/app-policy instead. GET /v1/app-config-digest returns only the digest, as plain text by default; read app_config_digest from GET /v1/info instead.


Operator Administration

The authenticated /v1/admin API exposes operator-only maintenance and diagnostics. Prefer the obelisk admin CLI for interactive use; use the OpenAPI schema for complete request and response types.

EndpointPurpose
GET /v1/admin/node-run-idDeprecated, removed after 0.43: use node_run_id from GET /v1/info
GET /v1/admin/system-eventsList persisted events, filtered by run, level, code prefix, or time
GET /v1/admin/system-events/{event-id}Retrieve one system event
POST /v1/admin/system-eventsRecord an event from outside Obelisk under the reserved ext. prefix
POST /v1/admin/system-events/retainRemove system events older than the requested age
GET /v1/admin/storageShow persistent storage usage and record counts
DELETE /v1/admin/executions/{execution-id}Delete a top-level execution tree
POST /v1/admin/executions/retainRetain execution trees by count or age in bounded batches
DELETE /v1/admin/deployments/{deployment-id}Delete an inactive deployment
POST /v1/admin/deployments/retainRetain inactive deployments by count or age

Deletion tombstones execution roots synchronously; automatic maintenance removes their trees and unreferenced shared metadata and CAS blobs in bounded batches. Forced deletion can remove a non-terminal tree unless its root belongs to the active deployment. Active and enqueued deployments are always retained.

POST /v1/admin/system-events/retain accepts max_age_seconds, batch_size, and a required dry_run. Omitting dry_run is rejected without deleting events. Events of the current node run are never deleted. With "dry_run": true it deletes nothing and returns the number of events the batch would delete:

curl -H "$OBELISK_API_AUTH" 127.1:5005/v1/admin/system-events/retain -H content-type:application/json \
  -d '{ "max_age_seconds": 86400, "batch_size": 1000, "dry_run": true }'
{ "deleted": 12, "has_more": false }

POST /v1/admin/system-events lets services running next to Obelisk, such as the Cloud Browser, record warnings where operators already look. It accepts code, level (debug, info, warning, or error), an optional dedupe_key, and optional details (any JSON value up to 4000 bytes). The code must start with ext. followed by dot-separated segments of lowercase letters, digits, and underscores, at most 128 characters in all, so external events never collide with Obelisk's own. The event is attached to the current deployment. Obelisk keeps one event per code, deployment, and dedupe_key (at most 512 characters), and answers 204 for a duplicate as well:

curl -H "$OBELISK_API_AUTH" 127.1:5005/v1/admin/system-events -H content-type:application/json \
  -d '{ "code": "ext.backup.failed", "level": "warning", "dedupe_key": "nightly", "details": { "reason": "disk full" } }'

POST /v1/admin/executions/retain and POST /v1/admin/deployments/retain accept retain_count or max_age_seconds, batch_size, force_non_terminal, dry_run, and an optional cursor (deployments also accept delete_executions). Each request is one bounded transaction: it examines at most batch_size candidates and deletes at most batch_size execution trees. Blocked candidates (non-terminal trees, deployments still referenced by executions) are skipped and counted rather than stopping the scan:

{
  "deleted_execution_trees": 1000,
  "deleted_deployments": 3,
  "retained": 20,
  "blocked_non_terminal": 2,
  "blocked_by_execution_reference": 0,
  "has_more": true,
  "next_deployment_cursor": {
    "timestamp": "2026-10-01T12:00:00Z",
    "deployment_id": "Dep_01KN1NK9A6NMHP31TVJ875X599"
  }
}

has_more reports unexamined candidates or remaining execution-tree work, not blocked candidates alone. While it is true, send next_deployment_cursor (or next_execution_cursor for execution retention) back as cursor, with the same policy and options, to continue after the last fully handled candidate. When a batch fully handles no candidate, for example because one deployment has more execution trees than the batch, the response repeats the request's cursor (or omits it on a first request), so the next request resumes that candidate. Omitting cursor starts a new scan. A dry run reports one batch without deleting, so repeating it does not advance through a partially processed deployment. The obelisk admin ... retain commands run a single batch from the start; automatic maintenance follows the cursors itself.

Cancellation requests

PUT /v1/executions/{execution-id}/cancel

Cancels an active activity or cancellable workflow execution. Workflow cancellation is accepted only when the workflow's exported function name ends in -cancellable.

Cancelling a workflow requests structured-concurrency teardown: Obelisk stops advancing that workflow, closes its join sets from the persisted execution log, cancels activities, delays, and cancellable workflow children, and waits for any non-cancellable workflow children. This is useful for operator cleanup of workflows stuck on long-lived stubs or stranded by a failed upgrade. See Cancellation.

Example request

EXECUTION_ID=$(obelisk generate execution-id)
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}" -H content-type:application/json -X PUT -d \
'{ "ffqn":"testing:sleep/sleep.sleep", "params": [{"seconds":100}] }'

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/cancel" -X PUT -H accept:application/json
{ "ok": "cancellation requested" }

Cancellation is asynchronous; poll the status or result endpoint to observe the cancelled outcome. 409 Conflict is returned with already finished or already cancelling.


PUT /v1/delays/{delay-id}/cancel

Cancels a request for persistent sleep.

Path Parameters:

  • delay-id: The unique ID of the delay.

Example request

EXECUTION_ID=$(obelisk generate execution-id)
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}" -H content-type:application/json -X PUT -d \
'{ "ffqn":"testing:sleep-workflow/workflow.sleep-host-activity", "params": [{"seconds":100}] }'
# Create the expected delay id based on code or execution log
DELAY_ID="Delay_${EXECUTION_ID#E_}.o:1-sleep_1"
# Optionally verify the id:
curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/executions/${EXECUTION_ID}/events" -H accept:application/json | grep $DELAY_ID
# returns a row containing: HistoryEvent(JoinSetRequest(DelayRequest(Delay_01KDNCA38TYGKHF7GKH3XQJH02.o:1-sleep_1, expires_at: `2025-12-29 15:43:39.751469133 UTC`, schedule_at: `In(150s)`)))

curl -H "$OBELISK_API_AUTH" "127.1:5005/v1/delays/${DELAY_ID}/cancel" -X PUT -H accept:application/json
{ "ok": "cancelled" }

Data Reference

Component Type

When filtering components or reading the component_type field in responses, use these values:

  • activity
  • activity_stub
  • workflow
  • webhook_endpoint
  • cron

Execution Result

The result object returned when an execution finishes (from GET /v1/executions/{id}):

  • { "ok": ... }: Function succeeded; contains the return value (or null for no-value results).
  • { "err": ... }: Function returned an error variant.
  • { "execution_failed": { "kind": "...", "reason": "..." } }: Execution failed (trap, timeout, etc.).

The result_kind field in status/list responses summarises the outcome:

  • "ok" — function returned successfully.
  • { "err": { "execution_failure": "<kind>" } } — execution failed (same kind values as execution_failure.kind).

Execution Failure Kind

One of:

  • timed_out: Applicable to activities only, last attempt timed out.
  • nondeterminism_detected: Applicable to workflows.
  • out_of_fuel: Applicable to WASM components.
  • cancelled: Applicable to activities and cancellable workflows.
  • value_too_large: A persisted parameter or result exceeded the execution tree's size limit.
  • paused: Execution was paused.
  • uncategorized: Uncategorized, e.g. WASM trap.

Errors

Errors are returned with appropriate HTTP status codes:

  • 400 Bad Request:
    • Invalid parameters (ParamsInvalid).
    • Attempting to submit a child ID as a top-level execution (ExecutionIdMustBeTopLevel).
  • 404 Not Found:
    • Component, Function (FFQN), or Execution not found.
  • 409 Conflict:
    • Execution already finished (when trying to cancel).
    • Execution exists with different parameters (when submitting/idempotency check fails).
  • 425 Too Early:
    • Execution result requested but not yet finished (when follow=false).
  • 503 Service Unavailable:
    • Transient database errors or connection issues.
  • 500 Internal Server Error:
    • Non-retriable database errors or other generic failures.

Response Format:

  • JSON: { "err": "Description of error" }
  • Text: Description of error
On this page