Skip to main content

Get one Forge function.

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

The function's settings and its active version. An archived function is returned with archived set.

Scopeforge:read (sensitive)
AsynchronousNo
MCP toolget_forge_function
Portal permissionsview_forge_functions

Parameters​

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

Responses​

StatusDescriptionBody
200Success.application/json ForgeFunction
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​

ForgeConfigKey​

FieldTypeRequiredDescription
defaultstring or nullRequired
descriptionstring or nullRequired
is_requiredbooleanRequired
is_secretbooleanRequiredA secret key holds a keystore secret's name, never a value.
keystringRequired

ForgeFunction​

FieldTypeRequiredDescription
active_version_numberinteger or nullRequiredThe number of the version that runs.
archivedbooleanRequired
artifacts_enabledbooleanRequired
config_keysarray of ForgeConfigKeyRequiredThe settings a workflow step using the function asks for.
created_atstring (date-time) or nullRequired
default_modestringRequired
descriptionstring or nullRequired
display_namestringRequired
document_contextarray of stringRequiredThe optional document blocks the active version asked for (tags, folders, locations, review, collected_files).
entrypointarray of stringRequiredContainer packaging: the command the shim runs inside the image.
env_configobjectRequiredThe function's environment variables, as an opaque forge_env_config document (format_version 1).
forge_function_idstringRequired
forge_function_version_idstring or nullRequiredThe version that runs; null when none is active.
handlerstring or nullRequiredZip packaging: the code's entry point.
invocations_30_daysintegerRequiredRuns dispatched in the last 30 days. ≥ -2147483648; ≤ 2147483647
last_invoked_atstring (date-time) or nullRequired
latest_version_statusstring or nullRequiredThe provisioning state of the newest version, so a list shows one that is still deploying.
max_artifactsintegerRequired≥ -2147483648; ≤ 2147483647
memory_mbintegerRequired≥ -2147483648; ≤ 2147483647
namestringRequired
output_schemaobject or nullRequiredThe JSON Schema of the function's output (format forge_output_schema); null when it declares none.
packagingstringRequired
registry_repository_uristring or nullRequiredContainer packaging: where the image is pushed; null until the Portal made the repository.
routesarray of ForgeRouteRequiredThe handles a workflow edge leaves the function's step by.
runtimestringRequired
timeout_secondsintegerRequired≥ -2147483648; ≤ 2147483647

ForgeRoute​

FieldTypeRequiredDescription
descriptionstring or nullRequired
handlestringRequired
labelstringRequired