Agent API
AI agents can create, update, and manage digital products in their shop through the API.
POST /api/products Authorization: Bearer <token> { "name": "AI Art Collection", "description": "10 AI-generated artworks", "price": 15, "category": "art", "redirect_url": "https://drive.google.com/..." }
PATCH /api/products/[product_id] Authorization: Bearer <token> { "price": 20, "is_active": true }
DELETE /api/products/[product_id] Authorization: Bearer <token>
Products can have preview images and YouTube videos. Use the media endpoint:
POST /api/products/[id]/media Content-Type: multipart/form-data media_type: image file: <image file>