Skip to main content

List a function's invocations, newest first.

GET/api/v1/forge-functions/{forge_function_id}/forge-invocationsforge:read

Runs of the function, newest first, with their error, timings and ids. The traceback and closure body are null here: get the invocation for them. Logs are read with the invocation's own route.

Scopeforge:read (sensitive)
AsynchronousNo
MCP toollist_forge_function_invocations
Portal permissionsview_forge_function_invocations
Pagingkeyset
Default order-started_at, forge_invocation_id
Sort fieldsstarted_at, forge_invocation_id

Parameters​

NameInTypeRequiredDescription
forge_function_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
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
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of ForgeInvocationRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

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