Get one invocation.
GET/api/v1/forge-invocations/{forge_invocation_id}forge:read
The invocation's status, mode, error, per-phase timings, workflow and step ids, request id, the captured traceback (type, message, kind, hint and frames, with the deepest frame in your own code) and the closure body as received. Needs View Forge Function Invocations. A run you may not read is 404: you must hold View All Forge Function Invocations on an internal account or see the run's workflow (View All Workflows, View Own Workflows or View Project Workflows), and be able to read the document of the workflow item the run belongs to.
| Scope | forge:read (sensitive) |
| Asynchronous | No |
| MCP tool | get_forge_invocation |
| Portal permissions | view_forge_function_invocations |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
forge_invocation_id | path | string | Required | |
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 ForgeInvocation |
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 |
421 | wrong_region | application/problem+json Problem |
422 | 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 |
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 |
wrong_region | 421 |
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 |