---
title: "GET /api-keys/permissions"
method: GET
path: "/api-keys/permissions"
tags: ["API Keys"]
---

# GET /api-keys/permissions

`GET /api-keys/permissions`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/api-keys/permissions`
- Auth: HTTP bearer

## Response `200`

Available permissions and roles retrieved successfully

- AvailablePermissions: Response containing all available permissions for frontend validation
  - `permissions` PermissionInfo[], required: All available permissions in the system
    - `category` string, required: Category of the permission (e.g., "Projects", "Deployments")
    - `description` string, required: Human-readable description of the permission
    - `name` string, required: The permission identifier (e.g., "projects:read")
  - `roles` RoleInfo[], required: All available roles
    - `description` string, required: Human-readable description of the role
    - `name` string, required: The role identifier (e.g., "admin")
    - `permissions` string[], required: Permissions included in this role

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
