---
title: "Create access key"
method: POST
path: "/v1/cwobject/access-key"
tags: ["CWObject"]
---

# Create access key

`POST /v1/cwobject/access-key`

Creates a CoreWeave AI Object Storage access key, exchanging a CoreWeave API access token (Cloud token) for object-storage credentials.

## Request body

- CreateAccessKeyFromJWTRequest — Inputs for creating an access key from a CoreWeave Cloud token.
  - `durationSeconds` integer, required — Lifespan of the resulting access key in seconds. Set to `0` to create a permanent key; set to a positive integer to create a temporary key with that lifespan. Required.
  - `attributes` object — Free-form caller-supplied attributes attached to the key (for example, `name`).

## Response `200`

OK

- CreateAccessKeyFromJWTResponse — The newly-minted access key. The `secretKey` is the only opportunity to read the secret value.
  - `accessKeyId` string — The access-key ID.
  - `secretKey` string — The secret access key. Treat as a credential and store it securely on receipt.
  - `principalName` string — The fully-qualified principal name that owns the access key.
  - `expiry` string, date-time — The expiration time of the access key. Permanent keys may report a sentinel value.
  - `attributes` object — The attributes that were attached to the key on creation.

## Other responses

- `default` — Default error response

---

[API](https://skmtc.net/coreweave/apis/coreweave-telemetry-relay-api.md) · [All operations](https://skmtc.net/coreweave/apis/coreweave-telemetry-relay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coreweave/coreweave-telemetry-relay-api/versions/3b98ea4fe0c3/schema)
