Skip to main content

List an invocation's log lines.

GET/api/v1/forge-invocations/{forge_invocation_id}/logsforge:read

Log lines in sequence order; filter by levels (repeat for OR). The invocation says whether the run is still live and how many lines it has. Needs View Forge Invocation Logs. 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 toollist_forge_invocation_logs
Portal permissionsview_forge_invocation_logs
Pagingkeyset
Default ordersequence
Sort fieldssequence
Filterslevels

Parameters​

NameInTypeRequiredDescription
forge_invocation_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
levelsqueryarray of stringOptional
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 ForgeInvocationLogRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

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

Schemas​

ForgeInvocationLog​

FieldTypeRequiredDescription
levelstringRequired
messagestringRequired
sequenceintegerRequired≥ -2147483648; ≤ 2147483647
streamstringRequired
timestampstring (date-time) or nullRequired