# Access secret version in project

`GET /v1/projects/{project}/secrets/{secret}/versions/{version}/access`, operation `secrets.AccessSecretVersionInProject`

Reads a version's value. Every read is recorded in the Data Access audit log, whatever the organization records otherwise.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `project` | path | Yes | `string` | The project's ID. |
| `secret` | path | Yes | `string` | The secret's ID. |
| `version` | path | Yes | `string` | The version's number, or latest for the newest enabled one. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | The version read, by its number, even when the request named latest. |
| `payload` | `SecretPayload` | Yes | Its value. |
| `payload.data` | `string` | Yes | The value, base64-encoded: at least 1 byte, at most 64 KiB. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.