Skip to content
中文

List versions

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

List versions, newest first.

Support: supported

Parameters

NameLocationTypeRequiredDescription
account_idpathstringtrueAny value; your account comes from the API key.
worker_idpathstringtrueWorker ID or name.
pagequeryintegerfalsePage number, from 1.
per_pagequeryintegerfalseItems per page (default 20).

Response

HTTP 200

Success

application/json

Name Type Description
success boolean Always true on success.
errors array<any> Always empty on success.
messages array<any> Always empty on success.
result array<object> Versions.
result[].id string Version ID, prefixed ver_.
result[].number integer Per-Worker counter (v1, v2, …).
result[].created_on string When the version was created.
result[].main_module string | null Entry module name, or null for a version containing only static assets.
result[].modules array<object> Module names and types; content is never returned.
result[].compatibility_date string Workers runtime compatibility date.
result[].compatibility_flags array<string> Runtime compatibility flags.
result[].bindings array<object> Bindings; secret values are never returned.
result[].assets object | null Static asset settings.
result[].annotations object Free-form annotations.
result[].author_id string | null Who created the version.
result[].source string Upload origin, e.g. api or sdk.
result[].urls array<string> Preview URLs of this version.
result[].praxis object Platform fields: owning Worker, build source, script size and asset manifest summary.
result_info object Present on list responses.
result_info.page integer Page number.
result_info.per_page integer Page size.
result_info.count integer Items on this page.