---
title: "Checks if permission is granted for a given user."
method: POST
path: "/permissions/is_granted"
tags: ["Permissions"]
---

# Checks if permission is granted for a given user.

`POST /permissions/is_granted`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/permissions/is_granted`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/permissions/is_granted/post.ts> (a function with typed inputs; its response is checked against the schema)

Checks if permission is granted for a given user.

## Request body

- PermissionCheckRequest
  - `permission` string, required

## Response `200`

Successful operation

- boolean

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid or missing API key
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
