Skip to main content

Get an invocation's whole log as plain text.

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

Every log line of the run in sequence order, as fixed-width text under a header naming the run, its status, mode, route, times and line count (the Portal's log download, for grep and for a diff against another run). REST only: over MCP read the lines with list_forge_invocation_logs. Needs View Forge Invocation Logs or Download 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

Parameters​

NameInTypeRequiredDescription
forge_invocation_idpathstringRequired
Docwize-Versionheaderstring (date)Optional

Responses​

StatusDescriptionBody
200The content's bytes, with their media type.*/* string (binary)
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.