---
title: "List team permissions"
method: GET
path: "/team-permissions"
tags: ["Permissions"]
---

# List team permissions

`GET /team-permissions`

List team permissions of the current user. `user_id=me` must be set for client requests. Note that this might contain the permissions with the same permission ID across different teams. `(team_id, user_id, permission_id)` together uniquely identify a permission.

## Query parameters

- `team_id` string — Filter with the team ID. If set, only the permissions of the members in a specific team will be returned.
- `user_id` string — Filter with the user ID. If set, only the permissions this user has will be returned. Client request must set `user_id=me`
- `permission_id` string — Filter with the permission ID. If set, only the permissions with this specific ID will be returned
- `recursive` 'true' | 'false' — Whether to list permissions recursively. If set to `false`, only the permission the users directly have will be listed. If set to `true` all the direct and indirect permissions will be listed.

## Response `200`

Successful response

- object
  - `items` object[], required
    - `id` string, required — The permission ID used to uniquely identify a permission. Can either be a custom permission with lowercase letters, numbers, `:`, and `_` characters, or one of the system permissions: `$update_team`, `$delete_team`, `$read_members`, `$remove_members`, `$invite_members`, `$manage_api_keys`
    - `user_id` string, required — The unique identifier of the user
    - `team_id` string, required — The unique identifier of the team
  - `pagination` object
    - `next_cursor` 'null', nullable — The cursor to fetch the next page of results. null if there is no next page.

---

[API](https://skmtc.net/hexclave/apis/hexclave-rest-api.md) · [All operations](https://skmtc.net/hexclave/apis/hexclave-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexclave/hexclave-rest-api/versions/86dcd8c9953c/schema)
