# 列出版本 (/docs/api/native/application/listVersions)



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

List the versions of a Worker, newest first, to pick one to deploy or inspect. Page with next\_cursor.

**支持状态: supported**

## 参数 [#参数]

| 名称         | 位置    | 类型      | 必填    | 说明                                   |
| ---------- | ----- | ------- | ----- | ------------------------------------ |
| worker\_id | path  | string  | true  | Worker ID (wkr\_…).                  |
| cursor     | query | string  | false | next\_cursor from the previous page. |
| limit      | query | integer | false | Items per page.                      |

## 响应 [#响应]

### HTTP 200 [#http-200]

Success

**application/json**

| 名称 | 类型 | 说明 |
| --- | --- | --- |
| data | array&lt;object&gt; | Versions, newest first. |
| data[].id | string | Version ID, prefixed ver_. |
| data[].number | integer | Per-Worker counter (v1, v2, …). |
| data[].created_on | string | When the version was created. |
| data[].main_module | string &#124; null | Entry module name, or null for a version containing only static assets. |
| data[].modules | array&lt;object&gt; | Module names and types; content is never returned. |
| data[].compatibility_date | string | Workers runtime compatibility date. |
| data[].compatibility_flags | array&lt;string&gt; | Runtime compatibility flags. |
| data[].bindings | array&lt;object&gt; | Bindings; secret values are never returned. |
| data[].assets | object &#124; null | Static asset settings. |
| data[].annotations | object | Free-form annotations. |
| data[].author_id | string &#124; null | Who created the version. |
| data[].source | string | Upload origin, e.g. api or sdk. |
| data[].urls | array&lt;string&gt; | Preview URLs of this version. |
| data[].praxis | object | Platform fields: owning Worker, build source, script size and asset manifest summary. |
| next_cursor | string &#124; null | Cursor for the next page; null on the last page. |
