Cloudflare

Get version

Get version

GET /cloudflare/client/v4/accounts/{account_id}/workers/workers/{worker_id}/versions/{version_id}

Get one version.

Support: supported

Parameters

NameLocationTypeRequiredDescription
account_idpathstringtrueAny value; your account comes from the API key.
worker_idpathstringtrueWorker ID or name.
version_idpathstringtrueVersion ID.

Response

HTTP 200

Success

application/json

NameTypeDescription
successbooleanAlways true on success.
errorsarray<any>Always empty on success.
messagesarray<any>Always empty on success.
resultobject
result.idstringVersion ID, prefixed ver_.
result.numberintegerPer-Worker counter (v1, v2, …).
result.created_onstringWhen the version was created.
result.main_modulestring | nullEntry module name, or null for a version containing only static assets.
result.modulesarray<object>Module names and types; content is never returned.
result.compatibility_datestringWorkers runtime compatibility date.
result.compatibility_flagsarray<string>Runtime compatibility flags.
result.bindingsarray<object>Bindings; secret values are never returned.
result.assetsobject | nullStatic asset settings.
result.annotationsobjectFree-form annotations.
result.author_idstring | nullWho created the version.
result.sourcestringUpload origin, e.g. api or sdk.
result.urlsarray<string>Preview URLs of this version.
result.praxisobjectPlatform fields: owning Worker, build source, script size and asset manifest summary.
result_infoobjectPresent on list responses.
result_info.pageintegerPage number.
result_info.per_pageintegerPage size.
result_info.countintegerItems on this page.
Export

On this page