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.
| Scope | forge:read (sensitive) |
| Asynchronous | No |
| MCP tool | get_forge_function |
| Portal permissions | view_forge_functions |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
forge_function_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json ForgeFunction |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
| Code | Status |
|---|---|
invalid_version | 400 |
token_expired | 401 |
unauthenticated | 401 |
forbidden | 403 |
insufficient_scope | 403 |
token_owner_inactive | 403 |
not_found | 404 |
method_not_allowed | 405 |
not_acceptable | 406 |
wrong_region | 421 |
validation_failed | 422 |
internal_error | 500 |
tenant_unavailable | 503 |
unavailable | 503 |
timeout | 504 |
Schemas
ForgeConfigKey
| Field | Type | Required | Description |
|---|---|---|---|
default | string or null | Required | |
description | string or null | Required | |
is_required | boolean | Required | |
is_secret | boolean | Required | A secret key holds a keystore secret's name, never a value. |
key | string | Required |
ForgeFunction
| Field | Type | Required | Description |
|---|---|---|---|
active_version_number | integer or null | Required | The number of the version that runs. |
archived | boolean | Required | |
artifacts_enabled | boolean | Required | |
config_keys | array of ForgeConfigKey | Required | The settings a workflow step using the function asks for. |
created_at | string (date-time) or null | Required | |
default_mode | string | Required | |
description | string or null | Required | |
display_name | string | Required | |
document_context | array of string | Required | The optional document blocks the active version asked for (tags, folders, locations, review, collected_files). |
entrypoint | array of string | Required | Container packaging: the command the shim runs inside the image. |
env_config | object | Required | The function's environment variables, as an opaque forge_env_config document (format_version 1). |
forge_function_id | string | Required | |
forge_function_version_id | string or null | Required | The version that runs; null when none is active. |
handler | string or null | Required | Zip packaging: the code's entry point. |
invocations_30_days | integer | Required | Runs dispatched in the last 30 days. ≥ -2147483648; ≤ 2147483647 |
last_invoked_at | string (date-time) or null | Required | |
latest_version_status | string or null | Required | The provisioning state of the newest version, so a list shows one that is still deploying. |
max_artifacts | integer | Required | ≥ -2147483648; ≤ 2147483647 |
memory_mb | integer | Required | ≥ -2147483648; ≤ 2147483647 |
name | string | Required | |
output_schema | object or null | Required | The JSON Schema of the function's output (format forge_output_schema); null when it declares none. |
packaging | string | Required | |
registry_repository_uri | string or null | Required | Container packaging: where the image is pushed; null until the Portal made the repository. |
routes | array of ForgeRoute | Required | The handles a workflow edge leaves the function's step by. |
runtime | string | Required | |
timeout_seconds | integer | Required | ≥ -2147483648; ≤ 2147483647 |
ForgeRoute
| Field | Type | Required | Description |
|---|---|---|---|
description | string or null | Required | |
handle | string | Required | |
label | string | Required |