{"info":{"name":"ePBX.bd Customer & Developer API (V1)","description":"Comprehensive REST API collection for Cloud PBX SaaS telephony, automated IVR confirmation calls, real-time webhooks, and CDR logs.","schema":"https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"},"item":[{"name":"1. Health & Ping","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"}],"url":{"raw":"https:\/\/epbx.bd\/api\/v1\/ping"}}},{"name":"2. Outbound AI Order Verification Call","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"},{"key":"Content-Type","value":"application\/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phone_number\": \"01700000000\",\n    \"customer_name\": \"Rahim\",\n    \"amount\": \"750 BDT\",\n    \"store_name\": \"My Store\",\n    \"custom_text\": \"Hello Rahim, to confirm your order, press 1. To speak with an agent, press 2.\",\n    \"confirm_text\": \"Your order has been confirmed successfully. Thank you!\",\n    \"cancel_text\": \"Please hold while we transfer you to support.\",\n    \"webhook_url\": \"https:\\\/\\\/your-store.com\\\/api\\\/order-callback\",\n    \"agent_extension\": \"101\"\n}"},"url":{"raw":"https:\/\/epbx.bd\/api\/v1\/calls\/verify"}}},{"name":"3. Call Detail Records (CDR) & Call History","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"}],"url":{"raw":"https:\/\/epbx.bd\/api\/v1\/calls\/history?page=1&per_page=20","query":[{"key":"page","value":"1"},{"key":"per_page","value":"20"},{"key":"phone_number","value":""},{"key":"disposition","value":"ANSWERED"}]}}},{"name":"4. Download Call Recording","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"}],"url":{"raw":"https:\/\/epbx.bd\/api\/v1\/calls\/recordings\/:call_id"}}},{"name":"5. Click-to-Call (Originate)","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"},{"key":"Content-Type","value":"application\/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"extension\": \"101\",\n    \"phone_number\": \"01700000000\",\n    \"caller_id\": \"101\"\n}"},"url":{"raw":"https:\/\/epbx.bd\/api\/v1\/calls\/originate"}}},{"name":"6. Get Global Wallet Balance","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"}],"url":{"raw":"https:\/\/epbx.bd\/api\/v1\/balance\/global"}}},{"name":"7. Get SIP Trunk Balance","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API_TOKEN}}","type":"text"}],"url":{"raw":"https:\/\/epbx.bd\/api\/v1\/balance\/ip"}}},{"name":"8. Test Webhook Ping","request":{"method":"POST","header":[{"key":"Content-Type","value":"application\/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"webhook_url\": \"https:\\\/\\\/yourstore.com\\\/confirm-order-custom.php\",\n    \"order_id\": \"TEST_123\",\n    \"status\": \"confirmed\",\n    \"phone_number\": \"01712345678\"\n}"},"url":{"raw":"https:\/\/epbx.bd\/api\/test\/webhook-ping"}}}]}