---
title: "Generate temporary volume credentials."
method: POST
path: "/temporary-volume-credentials"
tags: ["TemporaryVolumeCredentials"]
---

# Generate temporary volume credentials.

`POST /temporary-volume-credentials`

## Request body

- GenerateTemporaryVolumeCredential
  - `volume_id` string, required — Volume id for which temporary credentials are generated. Can be obtained from volumes/{full_name} (get volume info) API.
  - `operation` 'UNKNOWN_VOLUME_OPERATION' | 'READ_VOLUME' | 'WRITE_VOLUME', required

## Response `200`

Successful response

- GenerateTemporaryVolumeCredentialResponse
  - `aws_temp_credentials` AwsCredentials
    - `access_key_id` string — The access key ID that identifies the temporary credentials.
    - `secret_access_key` string — The secret access key that can be used to sign AWS API requests.
    - `session_token` string — The token that users must pass to AWS API to use the temporary credentials.
  - `expiration_time` integer — Server time when the credential will expire, in epoch milliseconds. The API client is advised to cache the credential given this expiration time.

---

[API](https://skmtc.dev/unitycatalog/apis/unity-catalog-api.md) · [All operations](https://skmtc.dev/unitycatalog/apis/unity-catalog-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unitycatalog/unity-catalog-api/revisions/afb7536b3c70/schema)
