{"name":"BytArch Bot API","version":"2.0.0","author":"BytArch","description":"BytArch's Official API Engine for WhatsApp Bots - SSE Event Streaming + Billing","authentication":{"type":"User ID","header":"Authorization: Bearer user_id or X-User-ID header","query":"user_id parameter"},"endpoints":{"botLifecycle":{"POST /bot/create":"Create a new WhatsApp bot { name, webhook_url }","POST /bots/list":"Get all bots","POST /bot/get":"Get bot by ID { bot_id }","POST /bot/start":"Start a bot { bot_id }","POST /bot/stop":"Stop a bot { bot_id }","POST /bot/restart":"Restart a bot { bot_id }","POST /bot/delete":"Delete a bot { bot_id }","POST /bot/update":"Update bot settings { bot_id, name?, webhook_url? }","POST /bot/status":"Get bot status { bot_id }","POST /bot/qrcode":"Get QR code image { bot_id }","POST /bot/pair":"Request pairing code { bot_id, phone }"},"messaging":{"POST /message/send":"Send text message { bot_id, to, message }","POST /message/sendMedia":"Send media message { bot_id, to, type, url/base64 }","POST /messages/list":"Get bot messages { bot_id, limit?, offset? }","POST /conversation/get":"Get conversation { bot_id, phone, limit?, offset? }","POST /conversations/list":"Get all conversations { bot_id }"},"webhooks":{"POST /webhook/set":"Set webhook URL { bot_id, url? }","POST /webhook/get":"Get webhook info { bot_id }","POST /webhook/test":"Test webhook { bot_id, url? }"},"events":{"POST /events/stream":"SSE event stream (all bot events) { bot_id }","POST /logs/list":"Get bot logs { bot_id, limit?, offset?, types? }","POST /events/list":"Get recent events { bot_id, limit? }"}}}