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

# List records

> Returns a page of records. End users only see records allowed by their row policies. Requires `can_read` for end users.



## OpenAPI

````yaml /api-reference/openapi.json get /collections/{collection}/records
openapi: 3.1.0
info:
  title: Bludia Public API
  version: 1.0.0
  description: >-
    The Bludia public REST API (v1). Every request requires the
    `X-BLUDIA-API-KEY` header. With an `end_users` key, data and account routes
    also require `Authorization: Bearer <access_token>` from login. With a
    `platform` key, the API key alone grants full project access.
servers:
  - url: https://{host}/ext/api/v1
    description: Your Bludia API host. Copy it from a collection's API Endpoints panel.
    variables:
      host:
        default: YOUR_API_HOST
        description: API host shown in your dashboard
security:
  - ApiKey: []
    BearerAuth: []
  - ApiKey: []
tags:
  - name: Records
    description: Create, read, update, and delete records in a collection.
  - name: Authentication
    description: >-
      Register, log in, refresh, and log out end users through an authentication
      guard.
  - name: Account
    description: Endpoints for the signed-in end user.
paths:
  /collections/{collection}/records:
    get:
      tags:
        - Records
      summary: List records
      description: >-
        Returns a page of records. End users only see records allowed by their
        row policies. Requires `can_read` for end users.
      operationId: listRecords
      parameters:
        - name: collection
          in: path
          required: true
          description: Collection slug, for example `orders`.
          schema:
            type: string
          example: orders
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
          description: Page number.
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: Records per page (max 100).
        - name: sort
          in: query
          schema:
            type: string
            enum:
              - created_at
              - updated_at
              - published_at
              - id
            default: created_at
          description: Sort column.
        - name: order
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          description: Sort direction.
        - name: filters
          in: query
          style: deepObject
          explode: true
          schema:
            type: object
            additionalProperties: true
          description: >-
            Filter by field name, for example `filters[status]=paid`,
            `filters[total][min]=100`,
            `filters[name][value]=ahm&filters[name][match_mode]=starts_with`.
            See Filtering docs.
        - name: conditions
          in: query
          schema:
            type: string
          description: >-
            JSON array of conditions on system columns (`id`, `created_at`,
            `updated_at`, `published_at`, `status`), for example
            `[{"field":"created_at","op":">=","value":"2026-11-01"}]`.
        - name: with
          in: query
          schema:
            type: string
          description: >-
            Comma-separated related collection slugs to include under
            `children`. Use dots for nesting: `orders.order_items`.
      responses:
        '200':
          description: A page of records.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordList'
              example:
                data:
                  - id: 101
                    slug: null
                    created_at: '2026-11-20T09:15:00.000000Z'
                    updated_at: '2026-11-20T09:15:00.000000Z'
                    published_at: '2026-11-20T09:15:00.000000Z'
                    children: []
                    title: 'Order #101'
                    status: confirmed
                    total: '120.00'
                    customer:
                      id: 25
                      label: Sarah Ahmed
                meta:
                  page: 1
                  limit: 20
                  total: 1
                  pages: 1
                  trashed: 0
                totals: []
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    RecordList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Record'
        meta:
          $ref: '#/components/schemas/PageMeta'
        totals:
          description: Column totals configured in collection settings.
      required:
        - data
        - meta
    Record:
      type: object
      description: >-
        System fields plus one key per collection field (by field name).
        Relation fields are `{id, label}` objects or arrays of them.
      properties:
        id:
          type: integer
        slug:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        published_at:
          type:
            - string
            - 'null'
          format: date-time
        children:
          description: Related records requested with `with`, keyed by collection name.
          oneOf:
            - type: array
            - type: object
              additionalProperties:
                type: array
                items:
                  type: object
      additionalProperties: true
    PageMeta:
      type: object
      properties:
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
          description: Matching records visible to the caller.
        pages:
          type: integer
        trashed:
          type: integer
          description: Matching records in the trash.
    Message:
      type: object
      properties:
        message:
          type: string
    AuthError:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable code, for example `invalid_credentials`.
        message:
          type: string
    Error:
      type: object
      properties:
        status:
          type: boolean
          const: false
        message:
          type: string
        errors:
          description: Field errors, when available.
        request_id:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid API key or access token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
          example:
            message: Missing API key.
    Forbidden:
      description: Key revoked or expired, origin not allowed, or no permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthError'
          example:
            error: permission_denied
            message: You do not have [delete] permission on collection [14].
    NotFound:
      description: Collection, guard, or record not found (or not visible).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
          example:
            message: Rate limit exceeded.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-BLUDIA-API-KEY
      description: Your project API key, for example `bludia_production_k3x9qa_...`.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        End-user access token from login, register, or refresh. Required with
        `end_users` keys.

````

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