{"info":{"_postman_id":"5e52c230-9ce0-4a40-bd09-066a0fcbd594","name":"Ziwo Webhooks","description":"<html><head></head><body><p>Typescript API/websocket to create a webhook system for the customer and a communication between Zoho and the different events received</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10370423","collectionId":"5e52c230-9ce0-4a40-bd09-066a0fcbd594","publishedId":"SzKPX2m6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-29T07:09:58.000Z"},"item":[{"name":"POST Call Webhook","id":"247aa614-871c-4136-96d3-01ae438e064e","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"<string>\",\n    \"dialplan\": \"<string>\",\n    \"callID\": \"<string>\",\n    \"otherLegCallID\": \"<string>\",\n    \"type\": \"<string>\",\n    \"data\": \"<string>\",\n    \"flags\": \"<string>\",\n    \"callerIdName\": \"<string>\",\n    \"callerIdNumber\": \"<string>\",\n    \"calleeIdName\": \"<string>\",\n    \"calleeIdNumber\": \"<string>\",\n    \"startedAt\": \"<string>\",\n    \"startedAtEpoch\": \"<string>\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url","description":"<p>This endpoint describes the payload the customer will receive through the webhook. The {customer_url} is the url the customer will provide us and we'll call with the payload below. In order to display both payloads, we created 2 endpoints but in reality the endpoint will be shared</p>\n","urlObject":{"path":["customer_url"],"host":["https://ziwo-ws-proxy.com"],"query":[],"variable":[]}},"response":[{"id":"1caa916a-25ef-4356-9dea-503d1b7025d4","name":"We will store in DB your response and the status code returned but we're not handling anything in our code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"dialplan\": null,\n    \"callID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"otherLegCallID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"type\": \"ringing\",\n    \"data\": \"043xxxxxx\",\n    \"flags\": \"0\",\n    \"callerIdName\": \"043xxxxxx\",\n    \"callerIdNumber\": \"043xxxxxx\",\n    \"calleeIdName\": \"33333\",\n    \"calleeIdNumber\": \"33333\",\n    \"startedAt\": \"2020-02-16T07:35:55.122Z\",\n    \"startedAtEpoch\": \"1581838555122651\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"3f59a50b-2e28-4bc2-bc2e-62f99ac90984","name":"We will store in DB your response and the status code returned but we're not handling anything in our code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"dialplan\": null,\n    \"callID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"otherLegCallID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"type\": \"ringing\",\n    \"data\": \"043xxxxxx\",\n    \"flags\": \"0\",\n    \"callerIdName\": \"043xxxxxx\",\n    \"callerIdNumber\": \"043xxxxxx\",\n    \"calleeIdName\": \"33333\",\n    \"calleeIdNumber\": \"33333\",\n    \"startedAt\": \"2020-02-16T07:35:55.122Z\",\n    \"startedAtEpoch\": \"1581838555122651\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"e8a0920d-1cc4-47a2-9f11-e5dd256b0e97","name":"We will store in DB your response and the status code returned but we're not handling anything in our code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"dialplan\": null,\n    \"callID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"otherLegCallID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"type\": \"ringing\",\n    \"data\": \"043xxxxxx\",\n    \"flags\": \"0\",\n    \"callerIdName\": \"043xxxxxx\",\n    \"callerIdNumber\": \"043xxxxxx\",\n    \"calleeIdName\": \"33333\",\n    \"calleeIdNumber\": \"33333\",\n    \"startedAt\": \"2020-02-16T07:35:55.122Z\",\n    \"startedAtEpoch\": \"1581838555122651\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"247aa614-871c-4136-96d3-01ae438e064e"},{"name":"POST Agent Webhook","id":"1b4b5d1a-dd99-499a-9f90-cc0f1e620639","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"<string>\",\n    \"status\": \"<string>\",\n    \"action\": \"<string>\",\n    \"data\": \"<string>\",\n    \"type\": \"<string>\",\n    \"startedAt\": \"<string>\",\n    \"startedAtEpoch\": \"<string>\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url1","description":"<p>This endpoint describes the payload the customer will receive through the webhook. The {customer_url} is the url the customer will provide us and we'll call with the payload below. In order to display both payloads, we created 2 endpoints but in reality the endpoint will be shared</p>\n","urlObject":{"path":["customer_url1"],"host":["https://ziwo-ws-proxy.com"],"query":[],"variable":[]}},"response":[{"id":"922205b4-3886-4d75-a797-31fb8ce1e064","name":"We will store in DB your response and the status code returned but we're not handling anything in our code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"status\": \"available\",\n    \"action\": \"agent-add\",\n    \"type\": \"agent-connected\",\n    \"data\": \"043xxxxxx\",\n    \"startedAt\": \"2020-02-16T07:35:55.122Z\",\n    \"startedAtEpoch\": \"1581838555122651\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url1"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"a7ef604f-8415-4e02-a12e-4136cbb939fa","name":"We will store in DB your response and the status code returned but we're not handling anything in our code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"status\": \"available\",\n    \"action\": \"agent-add\",\n    \"type\": \"agent-connected\",\n    \"data\": \"043xxxxxx\",\n    \"startedAt\": \"2020-02-16T07:35:55.122Z\",\n    \"startedAtEpoch\": \"1581838555122651\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"a8bedbf0-fcac-487a-944a-2fa98f40a2ec","name":"We will store in DB your response and the status code returned but we're not handling anything in our code","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"coreUUID\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    \"status\": \"available\",\n    \"action\": \"agent-add\",\n    \"type\": \"agent-connected\",\n    \"data\": \"043xxxxxx\",\n    \"startedAt\": \"2020-02-16T07:35:55.122Z\",\n    \"startedAtEpoch\": \"1581838555122651\"\n}"},"url":"https://ziwo-ws-proxy.com/customer_url1"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"1b4b5d1a-dd99-499a-9f90-cc0f1e620639"}],"variable":[{"id":"baseUrl","key":"baseUrl","value":"https://ziwo-ws-proxy.com","type":"string"}]}