---
title: "Xet read token"
method: GET
path: "/api/models/{namespace}/{repo}/xet-read-token/{rev}"
tags: ["models"]
---

# Xet read token

`GET /api/models/{namespace}/{repo}/xet-read-token/{rev}`

Get a read short-lived access token for XET

## Path parameters

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

## Response `200`

The response from the getXetReadAccessToken endpoint.

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

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/dae0cc3790f0/schema)
