---
title: "Check access"
method: POST
path: "/api/inference-endpoints/{namespace}/{endpoint}/auth-check/{perms}"
tags: ["inference-endpoints"]
---

# Check access

`POST /api/inference-endpoints/{namespace}/{endpoint}/auth-check/{perms}`

Check if the user has access to the inference endpoint

## Path parameters

- `namespace` string, required
- `endpoint` string, required
- `perms` 'read' | 'write' | 'infer', required

## Query parameters

- `own` unknown
- `is_creator` unknown
- `creator_id` string
- `incur_cost` unknown
- `resource_group_id` string
- `repo_id` string

## Response `200`

The user has access to the inference endpoint/resource

- object
  - `namespace` object, required
    - `id` string, required
    - `name` string, required
  - `user` object, required
    - `id` string, required
    - `name` string, required
    - `hasHfLevelAccess` boolean
  - `resourceGroupId` string

## Other responses

- `207` — The user has access to the resource, but the endpoint name is restricted by pattern restrictions. Can only be returned if `endpoint` is not provided in the path

---

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