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

# Get all products

> Retrieves a list of products with pagination.
    
This endpoint allows you to fetch products with optional pagination.

## Use Cases
- List all products
- Browse product catalog
- Implement product search

## Query Parameters
- `skip`: Number of records to skip (default: 0)
- `take`: Number of records to take (default: 10)

## Example Response
```json
{
  "data": [
    {
      "id": "prod_123456",
      "name": "Premium Widget",
      "description": "High-quality widget for all your needs",
      "price": "99.99",
      "images": [
        "https://storage.example.com/images/file1.jpg",
        "https://storage.example.com/images/file2.jpg"
      ],
      "createdAt": "2024-03-20T10:00:00Z"
    }
  ],
  "total": 100,
  "skip": 0,
  "take": 10
}
```



## OpenAPI

````yaml /swagger.yml get /api/v0/products
openapi: 3.0.0
info:
  title: Devdraft AI Payment & Business Management API
  description: >-

    A comprehensive payment processing and business management API that enables
    seamless integration of cryptocurrency and traditional payment methods.
        
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.devdraft.ai
    description: Production Server
security: []
tags: []
paths:
  /api/v0/products:
    get:
      tags:
        - Products
      summary: Get all products
      description: |-
        Retrieves a list of products with pagination.
            
        This endpoint allows you to fetch products with optional pagination.

        ## Use Cases
        - List all products
        - Browse product catalog
        - Implement product search

        ## Query Parameters
        - `skip`: Number of records to skip (default: 0)
        - `take`: Number of records to take (default: 10)

        ## Example Response
        ```json
        {
          "data": [
            {
              "id": "prod_123456",
              "name": "Premium Widget",
              "description": "High-quality widget for all your needs",
              "price": "99.99",
              "images": [
                "https://storage.example.com/images/file1.jpg",
                "https://storage.example.com/images/file2.jpg"
              ],
              "createdAt": "2024-03-20T10:00:00Z"
            }
          ],
          "total": 100,
          "skip": 0,
          "take": 10
        }
        ```
      operationId: ProductController_findAll
      parameters:
        - name: skip
          required: false
          in: query
          description: Number of records to skip
          schema:
            type: number
        - name: take
          required: false
          in: query
          description: Number of records to take
          schema:
            type: number
      responses:
        '200':
          description: Return all products.
        '401':
          description: Unauthorized - Invalid API credentials
      security:
        - x-client-secret: []
        - x-client-key: []
components:
  securitySchemes:
    x-client-secret:
      type: apiKey
      in: header
      name: x-client-secret
      description: >-
        Your secret API key. Keep this secure and never expose it in client-side
        code.
    x-client-key:
      type: apiKey
      in: header
      name: x-client-key
      description: Your unique client API key. Obtain this from your Devdraft AI dashboard.

````