Skip to main content

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.

Scopeforge:read (sensitive)
AsynchronousNo
MCP toolget_forge_invocation
Portal permissionsview_forge_function_invocations

Parameters​

NameInTypeRequiredDescription
forge_invocation_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json ForgeInvocation
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

ForgeInvocation​

FieldTypeRequiredDescription
acknowledged_atstring (date-time) or nullRequiredWhen the function acknowledged the run.
billed_duration_msinteger or nullRequired
closed_atstring (date-time) or nullRequired
closure_deadlinestring (date-time) or nullRequiredWhen the platform gives up waiting for the function's answer.
closure_payloadobject or nullRequiredThe closure body as received (format forge_closure_payload): to tell the function's output from the platform's; null in lists.
duration_msinteger or nullRequired
errorobject or nullRequiredWhat the run recorded as its error (format forge_invocation_error); null when none.
forge_function_idstringRequired
forge_function_version_idstringRequired
forge_function_version_numberinteger or nullRequired
forge_invocation_idstringRequired
has_tracebackbooleanRequired
is_livebooleanRequiredThe run is still going (dispatched or awaiting its closure), so more log lines may arrive.
log_line_countintegerRequired≥ -2147483648; ≤ 2147483647
log_truncatedbooleanRequired
memory_used_mbinteger or nullRequired
modestringRequired
node_idstringRequiredThe workflow step the run was dispatched for.
provider_request_referencestring or nullRequiredThe cloud provider's own reference for the run, to quote to support.
route_keystring or nullRequired
started_atstring (date-time) or nullRequired
statusstringRequired
timingsobject or nullRequiredMilliseconds per execution phase (format forge_invocation_timings); null when none.
tracebackForgeTraceback or nullRequiredThe stack trace captured for a failed run; null in lists and when none was captured. Get the invocation to read it.
workflow_idstring or nullRequired
workflow_item_idstring or nullRequired

ForgeTraceback​

FieldTypeRequiredDescription
framesarray of ForgeTracebackFrameRequired
frames_sourcestring or nullRequiredoutput when the frames were scraped from what the process printed.
hintstring or nullRequiredWhat to try next, for the kinds where the answer is not in the stack.
kindstring or nullRequiredHow it died: timeout, out_of_memory, native_crash, startup_failure, bad_response or unhandled_exception (open).
messagestring or nullRequired
rawstring or nullRequired
raw_truncatedbooleanRequired
sourcestring or nullRequiredfunction (the function reported it), runtime (the language runtime raised it) or output (recovered from captured output) (open).
typestring or nullRequired
user_frameForgeTracebackFrame or nullRequiredThe deepest frame in the developer's own code: the line to look at first.

ForgeTracebackFrame​

FieldTypeRequiredDescription
codestring or nullRequiredThe source line, when the runtime included it.
filestring or nullRequired
functionstring or nullRequired
is_user_codebooleanRequiredfalse for frames inside the language runtime or the cloud bootstrap.
lineinteger or nullRequired