Skip to main content

Get registry credentials to push a container Forge version's image.

POST/api/v1/forge-functions/{forge_function_id}/versions/{forge_function_version_id}/create-registry-credentialsforge:deploy

Mints short-lived credentials for the function's container registry repository (made on first use), with the build-and-push command and the tag this version's image must carry. The credentials are confined to this function's repository, last as long as the registry allows (12 hours on ECR), appear only in this answer and are never stored or logged: asking again mints a new set. Push the image, then deploy it with provision_forge_function_version. For a container-packaged function whose version has no image yet. Needs Issue Forge Registry Credentials and Upload Forge Function Versions, is refused to external users, and is unavailable while Forge publishing is off. There is no Idempotency-Key: a repeat mints again.

Scopeforge:deploy (sensitive)
AsynchronousNo
MCP toolcreate_forge_function_version_registry_credentials
Portal permissionsissue_forge_registry_credentials, upload_forge_function_versions

Parameters​

NameInTypeRequiredDescription
forge_function_idpathstringRequired
forge_function_version_idpathstringRequired
Docwize-Versionheaderstring (date)Optional

Responses​

StatusDescriptionBody
200Success.application/json ForgeRegistryCredentials or object
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
409conflictapplication/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​

ForgeRegistryCredentials​

FieldTypeRequiredDescription
expires_atstring (date-time) or nullRequiredWhen the credentials stop working; null where there are none.
forge_function_idstringRequired
forge_function_version_idstringRequired
image_tagstringRequiredThe tag this version's image must be pushed under.
login_commandstring or nullRequireddocker login with the username; the password goes to its stdin or prompt. Null where the registry needs no login.
passwordstring or nullRequiredA short-lived registry password, shown in this answer only: it is never stored or logged, and asking again mints a new one. Null where the registry needs no login.
push_commandsarray of stringRequiredThe build and push command, in the only shape the platform accepts.
repositorystringRequiredThe function's repository name in the registry.
repository_uristringRequiredWhere the image is pushed, without the tag.
shim_pathstringRequiredWhere the Docwize shim must sit inside the image.
usernamestring or nullRequiredNull where the registry needs no login (local development).