{"name":"Kiwify API Wrapper - Fullstack","version":"2.0.0","features":["Multi-user sessions","Job queue with workers","WebSocket real-time updates","CLI / IA command interface","Backward compatible with /api/* routes"],"endpoints":{"legacy_api":{"POST /api/login":"Login (single user, backward compat)","GET /api/products":"List products","POST /api/products":"Create product","GET /api/products/:id":"Get product details","PUT /api/products/:id":"Update product (bumps, offers, etc)","GET /api/clubs":"List clubs","POST /api/clubs":"Create club","GET /api/courses/:id":"Get course details","POST /api/courses/:courseId/modules":"Create module","POST /api/courses/:courseId/lessons":"Create lesson","GET /api/courses/:courseId/lessons/:lessonId":"Get lesson details","PUT /api/links/private":"Set links as private"},"sessions":{"GET /sessions":"List active sessions","POST /sessions/login":"Login multi-user (body: userId, email, password, device_token)","POST /sessions/logout":"Logout (body: userId)"},"queue":{"POST /queue/:queueName":"Enqueue job (body: userId, data, priority, delay)","GET /queue/jobs/:jobId":"Get job status","GET /queue/:queueName/jobs":"List jobs in queue","GET /queue/stats":"Queue statistics"},"command":{"POST /command":"Send command from CLI/IA (body: userId, action, params)","POST /products/:productId/pixels":"Add Facebook pixel to product (body: userId, pixelId, domainId?)","DELETE /products/:productId/pixels/:pixelId?userId=<id>":"Remove Facebook pixel from product","GET /products/with-pixels?userId=<id>":"List products that have Facebook pixels configured"},"capi":{"customWebhookEnabled":true,"POST /products/:productId/pixels/:pixelId/capi/connect":"Register webhook integration for CAPI","POST /products/:productId/pixels/:pixelId/capi/test":"Send test event to Meta CAPI","GET /products/:productId/pixels/:pixelId/capi/status?userId=<id>":"Check CAPI status for a pixel","GET /capi/integrations":"List all CAPI webhook integrations","GET /capi/events/:pixelId":"Recent CAPI events for a pixel"},"webhooks":{"POST /webhooks/kiwify/:integrationId":"Receive Kiwify purchase webhook and send CAPI event to Meta","GET /webhooks/kiwify/:integrationId":"Check if webhook integration exists"},"websocket":{"connection":"ws://localhost:PORT - real-time job updates","events":["job:queued","job:processing","job:completed","job:failed","job:retrying","capi:event"]}},"queues":["api-call","create-full-product","login","add-pixel"]}