# Create a short-lived token


> Mints a short-lived token for the calling user. `token_type` is required and `read_scaling` is the only supported value. The token expires after a day. When an access token is behind the credential, the token expires no later than that access token and deleting the access token revokes it. The optional `context` is read by secure-view policies through session_context(key); keys are lowercased.

`POST /v1/tokens/short-lived`

Mints a short-lived token for the calling user. `token_type` is required and `read_scaling` is the only supported value. The token expires after a day. When an access token is behind the credential, the token expires no later than that access token and deleting the access token revokes it. The optional `context` is read by secure-view policies through session_context(key); keys are lowercased.

## Request


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `GET https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

URL-encode query parameter values and send a GET request:

```text
GET https://motherduck.com/docs/api/feedback/agent?page_path=%2Fsql-reference%2Frest-api%2Ftokens-create-short-lived%2F&page_title=Create%20a%20short-lived%20token&text=<url-encoded user feedback, max 2000 characters>
```

Optionally append `&source=<url-encoded interface identifier>` such as `claude.ai` or `chatgpt`.

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed query parameters, and `429` when rate-limited.
