Product endpoints
The product API lets you create, read, update, and publish digital products.
List products
GET /api/productsQuery parameters:
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status: draft, published, or archived. |
type | string | Filter by product type: ebook, meal_plan, recipe_card_pack, or lead_magnet. |
page | integer | Page number. |
per_page | integer | Results per page. |
Get a product
GET /api/products/{id}Create a product
POST /api/productsContent-Type: application/jsonThe request body varies by product type. See the product data model for field details.
Update a product
PATCH /api/products/{id}Content-Type: application/jsonPublish a product
POST /api/products/{id}/publishContent-Type: application/json
{ "platforms": ["stan_store", "gumroad"], "price_cents": 1299, "currency": "USD"}Generate lead magnet
POST /api/products/{id}/lead-magnetGenerates a lead magnet from an existing ebook or recipe card pack.