> ## Documentation Index
> Fetch the complete documentation index at: https://qubrics.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List the API key permission catalogue

> Any valid API key can read this free catalogue of categories, permissions, grant levels and endpoints. Categories and permissions can span pages. `meta.version` is shared across pages and changes when the catalogue changes.

To match the dashboard, check the key's scopes against the Management and Mailbox endpoints that require a permission across all pages for each category and permission. A `.write` grant includes reads. Root keys cannot use Mailbox endpoints. Mailbox keys cannot manage sending policies and can read inbox logs with `email.receive` or `mailbox.read`. Evaluate team and inbox sending-policy requirements separately. Integration keys need the corresponding category or permission grant for sending policies.

Coverage is `none` when the key meets no requirements. It is `write` when the key meets every requirement and the group has a write requirement or the key has an explicit write grant. An explicit write grant is `*`, the category's `.write` scope or, for permission coverage, the permission's `.write` scope. Otherwise, use `read` when the key meets exactly the read requirements and `part` when it meets some of the requirements. Coverage describes scopes before resource and spending limits apply.



## OpenAPI

````yaml /openapi-app.json get /permissions
openapi: 3.1.0
info:
  description: >-
    Marketing APIs for AI. Qubrics is building one gateway for partner APIs,
    hosted services and connected accounts. Email is live. Use the Management
    API to manage sending providers, domains, agent mailboxes and webhooks.
  title: Qubrics API
  version: 1.0.0
servers:
  - description: API v1
    url: https://app.qubrics.com/api/v1
security:
  - bearerAuth: []
  - oauth2: []
paths:
  /permissions:
    get:
      tags:
        - Connection
      summary: List the API key permission catalogue
      description: >-
        Any valid API key can read this free catalogue of categories,
        permissions, grant levels and endpoints. Categories and permissions can
        span pages. `meta.version` is shared across pages and changes when the
        catalogue changes.


        To match the dashboard, check the key's scopes against the Management
        and Mailbox endpoints that require a permission across all pages for
        each category and permission. A `.write` grant includes reads. Root keys
        cannot use Mailbox endpoints. Mailbox keys cannot manage sending
        policies and can read inbox logs with `email.receive` or `mailbox.read`.
        Evaluate team and inbox sending-policy requirements separately.
        Integration keys need the corresponding category or permission grant for
        sending policies.


        Coverage is `none` when the key meets no requirements. It is `write`
        when the key meets every requirement and the group has a write
        requirement or the key has an explicit write grant. An explicit write
        grant is `*`, the category's `.write` scope or, for permission coverage,
        the permission's `.write` scope. Otherwise, use `read` when the key
        meets exactly the read requirements and `part` when it meets some of the
        requirements. Coverage describes scopes before resource and spending
        limits apply.
      operationId: managementListPermissions
      parameters:
        - description: >-
            Send the `ETag` from a previous response with the same `category`,
            `q`, `cursor` and `limit`.
          in: header
          name: If-None-Match
          required: false
          schema:
            type: string
        - in: query
          name: category
          required: false
          schema:
            description: Filter by the exact category name, such as `account`.
            maxLength: 64
            pattern: ^[a-z][a-z0-9-]*$
            type: string
        - in: query
          name: q
          required: false
          schema:
            default: ''
            description: >-
              Match part of a category name, permission name or label, scope,
              endpoint path or description. Matching ignores case.
            maxLength: 128
            type: string
        - in: query
          name: cursor
          required: false
          schema:
            description: >-
              Omit `cursor` for the first page. Pass `pagination.next_cursor` as
              `cursor` with the same filters to continue.
            maxLength: 128
            pattern: ^[a-zA-Z][a-zA-Z0-9._-]*$
            type: string
        - in: query
          name: limit
          required: false
          schema:
            default: 50
            description: Number of endpoints to return. Values above 100 are capped.
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PermissionCatalogueResponse'
          description: Permission catalogue page
          headers:
            Cache-Control:
              schema:
                type: string
            ETag:
              schema:
                type: string
            Vary:
              schema:
                type: string
            X-Request-Id:
              schema:
                type: string
        '304':
          description: >-
            The current `ETag` matches `If-None-Match`. The response has no
            body.
          headers:
            Cache-Control:
              schema:
                type: string
            ETag:
              schema:
                type: string
            Vary:
              schema:
                type: string
            X-Request-Id:
              schema:
                type: string
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Invalid query parameter
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Authentication required
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Credential is not authorised
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Rate limit exceeded
          headers:
            Retry-After:
              schema:
                type: integer
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: Authentication service temporarily unavailable
          headers:
            Retry-After:
              schema:
                type: integer
      security:
        - bearerAuth: []
        - oauth2: []
components:
  schemas:
    PermissionCatalogueResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessEnvelope'
        - properties:
            data:
              items:
                additionalProperties: false
                properties:
                  levels:
                    items:
                      enum:
                        - read
                        - write
                      type: string
                    type: array
                  name:
                    type: string
                  permissions:
                    items:
                      additionalProperties: false
                      properties:
                        endpoints:
                          items:
                            $ref: '#/components/schemas/PermissionCatalogueEndpoint'
                          type: array
                        label:
                          type: string
                        levels:
                          items:
                            enum:
                              - read
                              - write
                            type: string
                          type: array
                        name:
                          type: string
                      required:
                        - name
                        - label
                        - levels
                        - endpoints
                      type: object
                    type: array
                  unscoped_endpoints:
                    items:
                      $ref: '#/components/schemas/PermissionCatalogueEndpoint'
                    type: array
                required:
                  - name
                  - levels
                  - permissions
                  - unscoped_endpoints
                type: object
              type: array
            meta:
              additionalProperties: false
              properties:
                request_id:
                  type: string
                version:
                  type: string
              required:
                - request_id
                - version
              type: object
            pagination:
              $ref: '#/components/schemas/CursorPagination'
          required:
            - data
            - pagination
          type: object
      unevaluatedProperties: false
    ApiError:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              description: Machine-readable error code
              enum:
                - invalid_parameter
                - missing_parameter
                - authentication_required
                - insufficient_permissions
                - key_spend_limit_exceeded
                - not_found
                - conflict
                - limit_exceeded
                - idempotency_conflict
                - payload_too_large
                - validation_error
                - rate_limit_exceeded
                - service_unavailable
                - internal_error
              example: invalid_parameter
              type: string
            doc_url:
              description: Link to relevant documentation
              type: string
            errors:
              description: >-
                Accumulated per-field issues for validation errors. Only present
                on 400/422 responses.
              items:
                $ref: '#/components/schemas/ApiErrorDetail'
              type: array
            message:
              description: Human-readable error description
              type: string
            param:
              description: The parameter that caused the error
              type: string
            retryable:
              description: >-
                Whether the caller may safely retry this request. 4xx are
                typically false (except 429); 5xx are typically true.
              example: false
              type: boolean
          required:
            - code
            - message
            - retryable
          type: object
        meta:
          additionalProperties: false
          properties:
            request_id:
              example: req_clxxxxxxxxxxxxxxxxxxxxxxxxx
              type: string
          required:
            - request_id
          type: object
        ok:
          enum:
            - false
          type: boolean
      required:
        - ok
        - error
        - meta
      type: object
    SuccessEnvelope:
      properties:
        meta:
          additionalProperties: {}
          properties: {}
          type: object
        ok:
          enum:
            - true
          type: boolean
      required:
        - ok
        - meta
      type: object
    PermissionCatalogueEndpoint:
      additionalProperties: false
      properties:
        access:
          enum:
            - read
            - write
          type: string
        api:
          enum:
            - management
            - mailbox
            - sending
          type: string
        billing:
          enum:
            - paid
            - free
          type: string
        description:
          type: string
        method:
          type: string
        operation_id:
          type: string
        path:
          type: string
        scope_groups:
          description: >-
            Legacy scope requirements. A key must cover every scope in one
            applicable group. For sending policies, use the group for the
            requested team or inbox target.
          items:
            items:
              type: string
            type: array
          type: array
      required:
        - operation_id
        - api
        - method
        - path
        - description
        - billing
        - access
        - scope_groups
      type: object
    CursorPagination:
      additionalProperties: false
      properties:
        has_more:
          type: boolean
        next_cursor:
          type: string
      required:
        - has_more
      type: object
    ApiErrorDetail:
      additionalProperties: false
      properties:
        code:
          description: >-
            Machine-readable issue code from the validator (e.g. zod issue
            code).
          example: invalid_string
          type: string
        field:
          description: Dot-path of the offending request field.
          example: recipient.email
          type: string
        message:
          description: Human-readable issue description.
          type: string
      required:
        - field
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: >-
        Qubrics API key. Use a root API key for Management API routes, or a
        mailbox credential for Mailbox API routes. Obtain keys from the
        dashboard under API Keys.
      scheme: bearer
      type: http
    oauth2:
      description: >-
        Use the authorisation-code flow with S256 PKCE and
        resource=https://qubrics.com/api. The user selects the team, API access
        and mailboxes during consent. OAuth access tokens authenticate HTTP API
        requests; use separate credentials for SMTP and IMAP.
      flows:
        authorizationCode:
          authorizationUrl: https://app.qubrics.com/oauth/authorize
          refreshUrl: https://app.qubrics.com/oauth/token
          scopes:
            analytics.*: All analytics operations
            analytics.read: View key usage analytics and verification logs
            billing.*: All billing operations
            billing.auto_topup: Configure auto top-up settings
            billing.read: View balance, transactions, invoices
            billing.topup: Purchase balance top-ups
            domain.*: All domain operations
            domain.create: Add sending domains
            domain.delete: Remove domains
            domain.read: List/view domains and DNS status
            domain.verify: Trigger domain verification
            email.receive: Authorise email reception
            email.send: Send email through the HTTP API
            key.*: All key management operations
            key.create: Create new API keys (both root and mailbox)
            key.read: List/view API keys and their metadata
            key.revoke: Revoke API keys
            key.rotate: Rotate API keys
            logs.*: All log operations
            logs.read: View delivery logs
            mailbox.admin.*: All mailbox admin operations
            mailbox.admin.create: Create mailboxes (admin-level)
            mailbox.admin.delete: Delete mailboxes (admin-level)
            mailbox.admin.manage: Manage all mailbox settings
            mailbox.admin.read: List/view mailboxes (admin-level)
            mailbox.drafts.write: Create and edit saved mailbox drafts
            mailbox.read: Read mailbox contents (folders, messages)
            mailbox.settings.update: Update own mailbox settings (signature, auto-reply)
            provider.*: All provider operations
            provider.create: Add email provider accounts (Google, Microsoft, SMTP)
            provider.delete: Remove provider accounts
            provider.read: List/view provider accounts and connection status
            provider.update: Update provider settings, refresh tokens
            routing.*: All routing operations
            routing.create: Create delivery groups
            routing.delete: Remove delivery groups
            routing.read: List/view delivery groups and routing rules
            routing.update: Update delivery group configuration
            team.*: All team operations
            team.members.invite: Invite team members
            team.members.remove: Remove team members
            team.members.roles: Change member roles
            team.read: View team settings and members
            team.update: Update team settings
            webhook.*: All webhook operations
            webhook.create: Create webhook subscriptions
            webhook.delete: Delete webhook subscriptions
            webhook.manage: Rotate signing secret + send test events
            webhook.read: List/view webhook subscriptions
            webhook.update: Update webhook URL, event types, enabled flag
          tokenUrl: https://app.qubrics.com/oauth/token
      type: oauth2

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.