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

# Auto-generated collection query endpoint
GET /api/apps/:app_id/collections/:collection/data

> Accepts any query parameters that match indexed fields in the collection.
Example: GET /api/apps/app_123/collections/users/data?email=test@example.com&status=active

This is PUBLIC - no authentication required (like predefined queries)



## OpenAPI

````yaml /openapi.yaml get /api/apps/{app_id}/collections/{collection}/data
openapi: 3.1.0
info:
  title: OnDB API
  description: Monetize anything
  license:
    name: ''
  version: 4.0.0
servers: []
security: []
tags:
  - name: Health
    description: Health check and system status
  - name: Applications
    description: Application management
  - name: Billing
    description: Billing information and usage
  - name: Pricing
    description: Pricing information and quotes
  - name: X402 Payment Protocol
    description: Payment verification and settlement
  - name: Data Storage
    description: Store data to Celestia blockchain
  - name: Data Query
    description: Query and retrieve data
  - name: Collections
    description: Collection management
  - name: Indexes
    description: Index management and relations
  - name: Retention
    description: Data retention policies
  - name: Materialized Views
    description: Materialized view management
  - name: Predefined Queries
    description: Create and execute predefined queries
  - name: View Query
    description: Query materialized view data
  - name: Wallet
    description: App wallet management
  - name: Tasks
    description: Task tracking and status
  - name: Transactions
    description: Transaction status
  - name: Authorization
    description: Authorization grant management
  - name: API Keys
    description: API key management
  - name: Encryption
    description: Encryption settings and configuration
  - name: Payout
    description: Payout settings and history
  - name: API Collections
    description: API collection management
paths:
  /api/apps/{app_id}/collections/{collection}/data:
    get:
      tags:
        - Collections
      summary: |-
        Auto-generated collection query endpoint
        GET /api/apps/:app_id/collections/:collection/data
      description: >-
        Accepts any query parameters that match indexed fields in the
        collection.

        Example: GET
        /api/apps/app_123/collections/users/data?email=test@example.com&status=active


        This is PUBLIC - no authentication required (like predefined queries)
      operationId: query_collection_by_indexes
      parameters:
        - name: app_id
          in: path
          description: Application ID
          required: true
          schema:
            type: string
        - name: collection
          in: path
          description: Collection name
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: 'Limit results (default: 20)'
          required: false
          schema:
            type: integer
            minimum: 0
        - name: offset
          in: query
          description: 'Offset for pagination (default: 0)'
          required: false
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: Query results
          content:
            application/json:
              schema: {}
        '400':
          description: Bad request - non-indexed field queried
        '404':
          description: Collection not found
        '500':
          description: Internal server error

````