> ## 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 a product by ID

> Retrieves detailed information about a specific product.
    
This endpoint allows you to fetch complete product details including all images.

## Use Cases
- View product details
- Display product information
- Check product availability

## Example Response
```json
{
  "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",
  "updatedAt": "2024-03-20T10:00:00Z"
}
```



## OpenAPI

````yaml /swagger.yml get /api/v0/products/{id}
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/{id}:
    get:
      tags:
        - Products
      summary: Get a product by ID
      description: >-
        Retrieves detailed information about a specific product.
            
        This endpoint allows you to fetch complete product details including all
        images.


        ## Use Cases

        - View product details

        - Display product information

        - Check product availability


        ## Example Response

        ```json

        {
          "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",
          "updatedAt": "2024-03-20T10:00:00Z"
        }

        ```
      operationId: ProductController_findOne
      parameters:
        - name: id
          required: true
          in: path
          description: Product ID
          schema:
            type: string
      responses:
        '200':
          description: Return the product.
        '401':
          description: Unauthorized - Invalid API credentials
        '404':
          description: Product not found.
      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.

````