---
title: "Request access"
method: POST
path: "/datasets/{namespace}/{repo}/ask-access"
tags: ["datasets"]
---

# Request access

`POST /datasets/{namespace}/{repo}/ask-access`

Request access to a gated repository. The fields requested by repository card metadata (https://huggingface.co/docs/hub/en/models-gated#customize-requested-information)

## Path parameters

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

## Request body

- object

## Other responses

- `303` — Redirection to the repo

---

[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)
