Skip to content
中文

Get version

GET /application/v1/workers/{worker_id}/versions/{version_id}

Get one version of a Worker with its modules, bindings and asset settings; secret values are never returned.

Support: supported

Parameters

NameLocationTypeRequiredDescription
worker_idpathstringtrueWorker ID (wkr_…).
version_idpathstringtrueVersion ID (ver_…).

Response

HTTP 200

Success

application/json

Name Type Description
id string Version ID, prefixed ver_.
number integer Per-Worker counter (v1, v2, …).
created_on string When the version was created.
main_module string | null Entry module name, or null for a version containing only static assets.
modules array<object> Module names and types; content is never returned.
modules[].name string Module name.
modules[].content_type string MIME type.
compatibility_date string Workers runtime compatibility date.
compatibility_flags array<string> Runtime compatibility flags.
bindings array<object> Bindings; secret values are never returned.
bindings[].type string Binding type; see the binding description for what each needs and which are unavailable.
bindings[].name string Name of the binding in the Worker's env: 1–64 letters, digits or underscores, not starting with a digit; unique within a version.
assets object | null Static asset settings.
assets.config object Routing settings for the static assets.
annotations object Free-form annotations.
annotations.workers/message string Version message.
annotations.workers/tag string Version tag.
author_id string | null Who created the version.
source string Upload origin, e.g. api or sdk.
urls array<string> Preview URLs of this version.
praxis object Platform fields: owning Worker, build source, script size and asset manifest summary.
praxis.worker_id string Owning Worker.
praxis.source object Where the build came from: inline, machine (a tar.gz on a session machine) or file (an uploaded tar.gz).
praxis.size_bytes integer Script size in bytes.
praxis.assets_manifest object | null Static asset manifest summary.