logoAccess

List API key permissions

GET
/api/v1/api-keys/catalog

The permissions (grouped by resource, with sensitive ones marked) and presets a key can be created with. Use it to build a permission picker.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
resources*array<>
presets*array<>
curl -X GET 'https://api.tryaccess.xyz/api/v1/api-keys/catalog' \  -H 'x-api-key: string'
{  "resources": [    {      "key": "payments",      "label": "Payments",      "actions": [        {          "key": "refund",          "permission": "payments:refund",          "label": "Issue refunds",          "description": "Refund payments back to customers.",          "sensitive": true        }      ]    }  ],  "presets": [    {      "key": "read_only",      "label": "Read only",      "description": "View every non-sensitive resource. Cannot change anything.",      "grants": [        "*:read"      ],      "resolved": [        "customers:read",        "payments:read"      ]    }  ]}

How is this guide?