Skip to main content

Purpose

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

Endpoints

MethodPathDescription
GET/products/{business_id}Get all products
POST/productsAdd a new product
DELETE/products/{business_id}/{product_id}Delete a product

Response Format (GET)

{
  "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