---
search:
  tags:
    - General
    - GET
seo:
  description: >-
    Returns every permission, the roles a person can hold and the presets an API
    key can start… Reference for the GET /_luna/permissions endpoint in the Luna
    API.
sidebar:
  label: List permissions
  badge: GET
title: List permissions
type: openapi-operation
---
Returns every permission, the roles a person can hold and the presets an API key can start from. The Console and the CLI read this list, so what they show is what the server checks. No credential is needed.

`GET /_luna/permissions`

**Responses**

- `200` — The permission catalog.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "resources": [
    {
      "id": "string",
      "name": "string",
      "group": "string",
      "read": [
        "string"
      ],
      "write": [
        "string"
      ],
      "alwaysRead": true,
      "keys": true
    }
  ],
  "roles": [
    {
      "id": "string",
      "name": "string",
      "about": "string",
      "permissions": [
        "string"
      ]
    }
  ],
  "presets": [
    {
      "id": "string",
      "name": "string",
      "about": "string",
      "permissions": [
        "string"
      ]
    }
  ]
}
```
