# 获取版本 (/docs/api/native/application/getVersion)



`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.

**支持状态: supported**

## 参数 [#参数]

| 名称          | 位置   | 类型     | 必填   | 说明                   |
| ----------- | ---- | ------ | ---- | -------------------- |
| worker\_id  | path | string | true | Worker ID (wkr\_…).  |
| version\_id | path | string | true | Version ID (ver\_…). |

## 响应 [#响应]

### HTTP 200 [#http-200]

Success

**application/json**

| 名称 | 类型 | 说明 |
| --- | --- | --- |
| id | string | Version ID, prefixed ver_. |
| number | integer | Per-Worker counter (v1, v2, …). |
| created_on | string | When the version was created. |
| main_module | string &#124; null | Entry module name, or null for a version containing only static assets. |
| modules | array&lt;object&gt; | 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&lt;string&gt; | Runtime compatibility flags. |
| bindings | array&lt;object&gt; | 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 &#124; 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 &#124; null | Who created the version. |
| source | string | Upload origin, e.g. api or sdk. |
| urls | array&lt;string&gt; | 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 &#124; null | Static asset manifest summary. |
