---
title: "Create token  (Cloud-only)"
method: POST
path: "/v1/client-side-access-tokens"
tags: ["clientSideAccessTokens"]
---

# Create token  (Cloud-only)

`POST /v1/client-side-access-tokens`

Create a new client side access token with the specified configuration.

## Request body

- object
  - `policy` object[], required
    - `type` 'agent', required
    - `id` string, required
    - `access` string[], required
  - `hostname` string, uri, required — The hostname of the client side application. Please specify the full URL including the protocol (http or https).
  - `expires_at` string — The expiration date of the token. If not provided, the token will expire in 5 minutes

## Response `201`

201

- object
  - `policy` object, required
    - `version` '1', required
    - `data` object[], required
      - `type` 'agent', required
      - `id` string, required
      - `access` string[], required
  - `token` string, required
  - `hostname` string, required
  - `expiresAt` string, required

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/yu-code666/apis/letta-api.md) · [All operations](https://skmtc.dev/yu-code666/apis/letta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yu-code666/letta-api/revisions/6cec99480c13/schema)
