List the Forge runs of a node run's node.
GET/api/v1/node-runs/{node_run_id}/forge-invocationsforge:read
The Forge invocations of the node that produced this node run, for its workflow item, newest first: what a recipient reads to learn why their step failed. Needs View Forge Function Invocations. A run's document must be one you can read, and you must hold View All Forge Function Invocations on an internal account or see the run's workflow.
| Scope | forge:read (sensitive) |
| Asynchronous | No |
| MCP tool | list_node_run_forge_invocations |
| Portal permissions | view_forge_function_invocations |
| Paging | keyset |
| Default order | -started_at, forge_invocation_id |
| Sort fields | started_at, forge_invocation_id |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
node_run_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
items | array of ForgeInvocation | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.
| Code | Status |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
cursor_expired | 410 |
wrong_region | 421 |
invalid_cursor | 422 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
Schemas
ForgeInvocation
| Field | Type | Required | Description |
|---|---|---|---|
acknowledged_at | string (date-time) or null | Required | When the function acknowledged the run. |
billed_duration_ms | integer or null | Required | |
closed_at | string (date-time) or null | Required | |
closure_deadline | string (date-time) or null | Required | When the platform gives up waiting for the function's answer. |
closure_payload | object or null | Required | The closure body as received (format forge_closure_payload): to tell the function's output from the platform's; null in lists. |
duration_ms | integer or null | Required | |
error | object or null | Required | What the run recorded as its error (format forge_invocation_error); null when none. |
forge_function_id | string | Required | |
forge_function_version_id | string | Required | |
forge_function_version_number | integer or null | Required | |
forge_invocation_id | string | Required | |
has_traceback | boolean | Required | |
is_live | boolean | Required | The run is still going (dispatched or awaiting its closure), so more log lines may arrive. |
log_line_count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
log_truncated | boolean | Required | |
memory_used_mb | integer or null | Required | |
mode | string | Required | |
node_id | string | Required | The workflow step the run was dispatched for. |
provider_request_reference | string or null | Required | The cloud provider's own reference for the run, to quote to support. |
route_key | string or null | Required | |
started_at | string (date-time) or null | Required | |
status | string | Required | |
timings | object or null | Required | Milliseconds per execution phase (format forge_invocation_timings); null when none. |
traceback | ForgeTraceback or null | Required | The stack trace captured for a failed run; null in lists and when none was captured. Get the invocation to read it. |
workflow_id | string or null | Required | |
workflow_item_id | string or null | Required |
ForgeTraceback
| Field | Type | Required | Description |
|---|---|---|---|
frames | array of ForgeTracebackFrame | Required | |
frames_source | string or null | Required | output when the frames were scraped from what the process printed. |
hint | string or null | Required | What to try next, for the kinds where the answer is not in the stack. |
kind | string or null | Required | How it died: timeout, out_of_memory, native_crash, startup_failure, bad_response or unhandled_exception (open). |
message | string or null | Required | |
raw | string or null | Required | |
raw_truncated | boolean | Required | |
source | string or null | Required | function (the function reported it), runtime (the language runtime raised it) or output (recovered from captured output) (open). |
type | string or null | Required | |
user_frame | ForgeTracebackFrame or null | Required | The deepest frame in the developer's own code: the line to look at first. |
ForgeTracebackFrame
| Field | Type | Required | Description |
|---|---|---|---|
code | string or null | Required | The source line, when the runtime included it. |
file | string or null | Required | |
function | string or null | Required | |
is_user_code | boolean | Required | false for frames inside the language runtime or the cloud bootstrap. |
line | integer or null | Required |