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

# List API Key Permissions

> Active, non-deleted api key permission records, newest first unless `order_by` says otherwise. Requires `api-key-permission:find-all`.



## OpenAPI

````yaml GET /permission/api-key/permission
openapi: 3.0.1
info:
  title: API Key Permission API
  description: >
    Grants of a permission to an API key (`api_key_permission`, ADR 0105).
    Writes drop the key's cached grants. A populated `api_key` never carries
    `secret_hash`.


    List paging and sorting read the snake_case keys `page_size`,
    `max_page_size_override` and `order_by`. Every route requires the
    `api-key-permission:<action>` permission named in its description.
  version: '2026-10-21'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: API Key Permission
    description: Permissions granted to an API key.
paths:
  /permission/api-key/permission:
    get:
      tags:
        - API Key Permission
      summary: List API key permissions
      description: >-
        Active, non-deleted api key permission records, newest first unless
        `order_by` says otherwise. Requires `api-key-permission:find-all`.
      operationId: apiKeyPermissionFindAll
      parameters:
        - $ref: '#/components/parameters/Fields'
        - $ref: '#/components/parameters/Filters'
        - $ref: '#/components/parameters/OrderBy'
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/MaxPageSizeOverride'
        - $ref: '#/components/parameters/Populate'
      responses:
        '200':
          description: API key permission records
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApiKeyPermission'
                  message:
                    type: string
                  meta:
                    $ref: '#/components/schemas/Meta'
                  paging:
                    $ref: '#/components/schemas/Paging'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    Fields:
      name: fields
      in: query
      description: Comma-separated list of columns to return.
      schema:
        type: string
    Filters:
      name: filters
      in: query
      description: >-
        `field|operator|value` conditions separated by commas. Operators: eq,
        neq, gt, gte, lt, lte, like, ilike, in, is.
      schema:
        type: string
      example: is_actived|eq|true
    OrderBy:
      name: order_by
      in: query
      description: '`field:asc|desc` pairs separated by commas.'
      schema:
        type: string
      example: created_at:desc
    Page:
      name: page
      in: query
      description: 1-based page; when sent the answer is paginated and carries `paging`.
      schema:
        type: integer
        minimum: 1
    PageSize:
      name: page_size
      in: query
      description: Rows per page when `page` is sent.
      schema:
        type: integer
        minimum: 1
        default: 20
    MaxPageSizeOverride:
      name: max_page_size_override
      in: query
      description: Raises the page size cap (1000 by default).
      schema:
        type: integer
        minimum: 1
    Populate:
      name: populate
      in: query
      description: Whether to expand foreign keys into nested objects.
      schema:
        type: boolean
        default: true
  schemas:
    ApiKeyPermission:
      type: object
      properties:
        document_id:
          type: string
          format: uuid
        api_key:
          type: string
          format: uuid
          description: >-
            Related record id; with `populate` (the default) the related record
            is embedded instead.
        permission:
          type: string
          format: uuid
          description: >-
            Related record id; with `populate` (the default) the related record
            is embedded instead.
        is_actived:
          type: boolean
        is_deleted:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
          nullable: true
        deleted_at:
          type: string
          format: date-time
          nullable: true
    Meta:
      type: object
      properties:
        correlation:
          type: string
          description: Request correlation id; quote it when reporting an issue.
        status:
          type: integer
        timestamp:
          type: string
          format: date-time
        version:
          type: string
          nullable: true
    Paging:
      type: object
      properties:
        page:
          type: integer
        page_size:
          type: integer
        total:
          type: integer
        total_pages:
          type: integer
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
  responses:
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked or expired credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The caller lacks the required permission
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      headers:
        Retry-After:
          description: Seconds until a request is allowed again.
          schema:
            type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A `secret` API key, `hzk_<env>_<prefix>_<secret>`.

````

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