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

# Overview

> Architecture for the Products endpoints

## Purpose

Manages products (add, get, delete) for a business. Products are stored in the entities table with type="product".

## Endpoints

| Method | Path                                   | Description       |
| ------ | -------------------------------------- | ----------------- |
| GET    | `/products/{business_id}`              | Get all products  |
| POST   | `/products`                            | Add a new product |
| DELETE | `/products/{business_id}/{product_id}` | Delete a product  |

## Response Format (GET)

```json theme={null}
{
  "business_id": "org-slug-123",
  "products": [
    {
      "id": "uuid-...",
      "product_id": "product-a",
      "name": "Product A",
      "url": "https://acme.com/product-a",
      "favicon_url": null,
      "boosted_page_count": 25,
      "created_at": "2024-01-15T10:30:00Z"
    }
  ],
  "total": 1
}
```

## Code Location

```
src/app/apis/settings_tracking/products/routes.py
```
