# Version

**Beta:**
Salaxy API v04 is in beta: it may change, and it is not used in production yet. Build on v03, the current version.

Functionality to list and get versions from version history for api objects.

Salaxy API v04 (beta), **Finland only**. 2 operations. Interactive version: [REST API reference](https://code.salaxy.com/reference/rest-api-v04.md). Machine-readable: [OpenAPI document](https://code.salaxy.com/openapi/salaxy-04.json).

**The reference wins:**
These pages are generated from the OpenAPI document. If a guide and this reference disagree about a field, follow the reference. Error responses are not in the document — see [Errors](https://code.salaxy.com/reference/errors.md).

## `GET /v04/api/{apiType}/{id}/versions`

**Get list of available versions.**

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `apiType` | path | string | yes |  |
| `id` | path | string | yes |  |

Response: `VersionInfo[]`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/version/GET/v04/api/{apiType}/{id}/versions)

## `GET /v04/api/{apiType}/{id}/versions/{versionId}`

**Get specific version of the resource**

| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| `apiType` | path | string | yes |  |
| `id` | path | string | yes |  |
| `versionId` | path | string | yes |  |

Response: `ApiCrudObject`

Try it: [interactive reference](https://code.salaxy.com/reference/rest-api-v04.md#tag/version/GET/v04/api/{apiType}/{id}/versions/{versionId})
