---
title: "Xet write token"
method: GET
path: "/api/containers/{namespace}/{repo}/xet-write-token"
tags: ["containers"]
---

# Xet write token

`GET /api/containers/{namespace}/{repo}/xet-write-token`

Get a write short-lived access token for XET upload

## Path parameters

- `namespace` string, required
- `repo` string, required

## Response `200`

The response from the getXetWriteAccessToken endpoint.

- object
  - `casUrl` string, required
  - `exp` number, required
  - `accessToken` string, required

## Changes

- **2026-09-18** `74f2b0d17636` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/containers/:namespace/:repo/xet-write-token/get.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/2be5f0669ac6?raw)
