{"info":{"name":"Wiretalk API","_postman_id":"wiretalk-api-v1","description":"Wiretalk REST, widget, and agent auth requests. All JSON responses include `status`, `message`, `code`, and `datetime`. Import variables `api_key`, `widget_key`, and `visitor_uid` before running widget requests.","schema":"https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"},"variable":[{"key":"base_url","value":"https:\/\/www.wiretalk.tech\/api\/v1"},{"key":"widget_base_url","value":"https:\/\/www.wiretalk.tech\/api\/widget"},{"key":"agent_base_url","value":"https:\/\/www.wiretalk.tech\/api\/agent"},{"key":"api_key","value":"wt_live_your_key"},{"key":"bearer_token","value":""},{"key":"widget_key","value":"wk_your_widget_key"},{"key":"visitor_uid","value":""}],"item":[{"name":"Public API v1","item":[{"name":"Account","item":[{"name":"Get organization and API key context","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/me","host":["www.wiretalk.tech"],"path":["api","v1","me"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/me","host":["www.wiretalk.tech"],"path":["api","v1","me"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"organization\": {\n        \"id\": 1,\n        \"name\": \"Acme Inc\",\n        \"plan\": \"pro\"\n    },\n    \"api_key\": {\n        \"id\": 3,\n        \"name\": \"CRM integration\",\n        \"key_prefix\": \"wt_live_abcd1234\",\n        \"abilities\": [\n            \"conversations:read\",\n            \"visitors:read\"\n        ],\n        \"last_used_at\": \"2026-07-07T10:00:00+00:00\"\n    },\n    \"api\": {\n        \"version\": \"v1\",\n        \"base_url\": \"https:\/\/app.example.com\/api\/v1\",\n        \"docs_url\": \"https:\/\/app.example.com\/docs\/api\",\n        \"openapi_url\": \"https:\/\/app.example.com\/docs\/api\/openapi.json\",\n        \"postman_url\": \"https:\/\/app.example.com\/docs\/api\/postman.json\",\n        \"rate_limit_per_minute\": 120,\n        \"supports_idempotency\": true\n    }\n}"}]}]},{"name":"Conversations","item":[{"name":"List visitor conversations for your organization","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations","host":["www.wiretalk.tech"],"path":["api","v1","conversations"],"protocol":"https","query":[{"key":"status","value":"{{status}}","description":"Filter by status: waiting, active, closed, missed","disabled":true},{"key":"site_id","value":"{{site_id}}","description":"Filter by website ID","disabled":true},{"key":"page","value":"{{page}}","description":"Page number (default 1)","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100, default 50)","disabled":true}]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations","host":["www.wiretalk.tech"],"path":["api","v1","conversations"],"protocol":"https","query":[{"key":"status","value":"{{status}}","description":"Filter by status: waiting, active, closed, missed","disabled":true},{"key":"site_id","value":"{{site_id}}","description":"Filter by website ID","disabled":true},{"key":"page","value":"{{page}}","description":"Page number (default 1)","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100, default 50)","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": [\n        {\n            \"id\": 42,\n            \"site_id\": 1,\n            \"visitor_id\": 9,\n            \"status\": \"active\",\n            \"type\": \"visitor\",\n            \"locale\": \"en\",\n            \"assigned_agent_id\": 2,\n            \"started_at\": \"2026-07-07T09:00:00+00:00\",\n            \"visitor\": {\n                \"id\": 9,\n                \"name\": \"Jane\",\n                \"email\": \"jane@example.com\"\n            }\n        }\n    ],\n    \"current_page\": 1,\n    \"per_page\": 50\n}"}]},{"name":"Get a conversation with all messages","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": {\n        \"id\": 42,\n        \"messages\": [\n            {\n                \"id\": 101,\n                \"body\": \"Hello, I need help\",\n                \"type\": \"text\",\n                \"sender_type\": \"visitor\",\n                \"created_at\": \"2026-07-07T09:01:00+00:00\",\n                \"attachments\": []\n            }\n        ],\n        \"status\": \"active\"\n    }\n}"}]},{"name":"List messages in a conversation (paginated, newest first)","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}\/messages","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}","messages"],"protocol":"https","query":[{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}\/messages","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}","messages"],"protocol":"https","query":[{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": [\n        {\n            \"id\": 101,\n            \"body\": \"Hello\",\n            \"sender_type\": \"visitor\"\n        }\n    ]\n}"}]},{"name":"Send an agent reply to a visitor conversation","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}\/messages","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}","messages"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"body\": \"{{body}}\",\n    \"agent_user_id\": 1\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}\/messages","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}","messages"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"body\": \"{{body}}\",\n    \"agent_user_id\": 1\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"201\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"id\": 102,\n    \"body\": \"Thanks for reaching out \u2014 we can help with that.\",\n    \"type\": \"text\",\n    \"sender_type\": \"agent\",\n    \"sender_id\": 2,\n    \"created_at\": \"2026-07-07T09:05:00+00:00\",\n    \"attachments\": []\n}"}]},{"name":"Close a visitor conversation","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}\/close","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}","close"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"agent_user_id\": 1\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/conversations\/{conversation}\/close","host":["www.wiretalk.tech"],"path":["api","v1","conversations","{conversation}","close"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"agent_user_id\": 1\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": {\n        \"id\": 42,\n        \"closed_at\": \"2026-07-07T09:10:00+00:00\",\n        \"status\": \"closed\"\n    }\n}"}]}]},{"name":"Visitors","item":[{"name":"List visitors across your websites","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/visitors","host":["www.wiretalk.tech"],"path":["api","v1","visitors"],"protocol":"https","query":[{"key":"search","value":"{{search}}","description":"Search name, email, or visitor UID","disabled":true},{"key":"site_id","value":"{{site_id}}","description":"Filter by website ID","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/visitors","host":["www.wiretalk.tech"],"path":["api","v1","visitors"],"protocol":"https","query":[{"key":"search","value":"{{search}}","description":"Search name, email, or visitor UID","disabled":true},{"key":"site_id","value":"{{site_id}}","description":"Filter by website ID","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": [\n        {\n            \"id\": 9,\n            \"visitor_uid\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n            \"site_id\": 1,\n            \"name\": \"Jane Doe\",\n            \"email\": \"jane@example.com\",\n            \"country\": \"IN\",\n            \"language\": \"en\",\n            \"last_seen_at\": \"2026-07-07T09:00:00+00:00\"\n        }\n    ]\n}"}]},{"name":"Get visitor profile and activity counts","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/visitors\/{visitor}","host":["www.wiretalk.tech"],"path":["api","v1","visitors","{visitor}"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/visitors\/{visitor}","host":["www.wiretalk.tech"],"path":["api","v1","visitors","{visitor}"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"id\": 9,\n    \"name\": \"Jane Doe\",\n    \"email\": \"jane@example.com\",\n    \"conversations_count\": 3,\n    \"tickets_count\": 1\n}"}]}]},{"name":"Tickets","item":[{"name":"List support tickets","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets","host":["www.wiretalk.tech"],"path":["api","v1","tickets"],"protocol":"https","query":[{"key":"status","value":"{{status}}","description":"open, pending, in_progress, resolved, closed","disabled":true},{"key":"priority","value":"{{priority}}","description":"low, normal, high, urgent","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets","host":["www.wiretalk.tech"],"path":["api","v1","tickets"],"protocol":"https","query":[{"key":"status","value":"{{status}}","description":"open, pending, in_progress, resolved, closed","disabled":true},{"key":"priority","value":"{{priority}}","description":"low, normal, high, urgent","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": [\n        {\n            \"id\": 7,\n            \"ticket_number\": \"TKT-2026-00007\",\n            \"subject\": \"Billing question\",\n            \"status\": \"open\",\n            \"priority\": \"normal\",\n            \"source\": \"widget\"\n        }\n    ]\n}"}]},{"name":"Get ticket details with comments","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets\/{ticket}","host":["www.wiretalk.tech"],"path":["api","v1","tickets","{ticket}"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets\/{ticket}","host":["www.wiretalk.tech"],"path":["api","v1","tickets","{ticket}"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": {\n        \"id\": 7,\n        \"ticket_number\": \"TKT-2026-00007\",\n        \"subject\": \"Billing question\",\n        \"comments\": [\n            {\n                \"id\": 1,\n                \"body\": \"I was charged twice.\",\n                \"is_internal\": false,\n                \"created_at\": \"2026-07-07T08:00:00+00:00\"\n            }\n        ],\n        \"status\": \"open\"\n    }\n}"}]},{"name":"Create a new ticket (requires ticketing on your plan)","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets","host":["www.wiretalk.tech"],"path":["api","v1","tickets"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"subject\": \"{{subject}}\",\n    \"description\": \"{{description}}\",\n    \"priority\": \"{{priority}}\",\n    \"site_id\": 1,\n    \"visitor_id\": 1,\n    \"customer_name\": \"{{customer_name}}\",\n    \"customer_email\": \"{{customer_email}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets","host":["www.wiretalk.tech"],"path":["api","v1","tickets"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"subject\": \"{{subject}}\",\n    \"description\": \"{{description}}\",\n    \"priority\": \"{{priority}}\",\n    \"site_id\": 1,\n    \"visitor_id\": 1,\n    \"customer_name\": \"{{customer_name}}\",\n    \"customer_email\": \"{{customer_email}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"201\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": {\n        \"id\": 8,\n        \"ticket_number\": \"TKT-2026-00008\",\n        \"subject\": \"API integration\",\n        \"priority\": \"normal\",\n        \"source\": \"api\",\n        \"status\": \"open\"\n    }\n}"}]},{"name":"Update ticket status","request":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets\/{ticket}\/status","host":["www.wiretalk.tech"],"path":["api","v1","tickets","{ticket}","status"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"status\": \"{{status}}\",\n    \"agent_user_id\": 1\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/tickets\/{ticket}\/status","host":["www.wiretalk.tech"],"path":["api","v1","tickets","{ticket}","status"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"status\": \"{{status}}\",\n    \"agent_user_id\": 1\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": {\n        \"id\": 7,\n        \"status\": \"resolved\"\n    }\n}"}]}]},{"name":"Agents","item":[{"name":"List team agents in your organization","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/agents","host":["www.wiretalk.tech"],"path":["api","v1","agents"],"protocol":"https","query":[{"key":"role","value":"{{role}}","description":"Filter by role: owner, admin, agent","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/agents","host":["www.wiretalk.tech"],"path":["api","v1","agents"],"protocol":"https","query":[{"key":"role","value":"{{role}}","description":"Filter by role: owner, admin, agent","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"name\": \"Alex Agent\",\n            \"email\": \"alex@example.com\",\n            \"role\": \"agent\",\n            \"status\": \"online\"\n        }\n    ]\n}"}]},{"name":"Get a single agent profile","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/agents\/{agent}","host":["www.wiretalk.tech"],"path":["api","v1","agents","{agent}"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/agents\/{agent}","host":["www.wiretalk.tech"],"path":["api","v1","agents","{agent}"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"Alex Agent\",\n        \"email\": \"alex@example.com\",\n        \"role\": \"agent\",\n        \"last_seen_at\": \"2026-07-07T09:30:00+00:00\",\n        \"status\": \"online\"\n    }\n}"}]}]},{"name":"Sites","item":[{"name":"List websites (widget sites) in your organization","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/sites","host":["www.wiretalk.tech"],"path":["api","v1","sites"],"protocol":"https","query":[{"key":"is_active","value":"{{is_active}}","description":"Filter by active status","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/sites","host":["www.wiretalk.tech"],"path":["api","v1","sites"],"protocol":"https","query":[{"key":"is_active","value":"{{is_active}}","description":"Filter by active status","disabled":true},{"key":"page","value":"{{page}}","description":"Page number","disabled":true},{"key":"per_page","value":"{{per_page}}","description":"Results per page (max 100)","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Marketing site\",\n            \"domain\": \"example.com\",\n            \"is_active\": true\n        }\n    ]\n}"}]},{"name":"Get a single website","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/sites\/{site}","host":["www.wiretalk.tech"],"path":["api","v1","sites","{site}"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/v1\/sites\/{site}","host":["www.wiretalk.tech"],"path":["api","v1","sites","{site}"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"id\": 1,\n    \"name\": \"Marketing site\",\n    \"domain\": \"example.com\",\n    \"is_active\": true,\n    \"timezone\": \"Asia\/Kolkata\",\n    \"content_import\": {\n        \"status\": \"completed\",\n        \"progress\": 100,\n        \"progress_label\": \"Import complete\",\n        \"summary\": {\n            \"pages\": 24,\n            \"kb_articles\": 18,\n            \"bot_replies\": 12\n        }\n    }\n}"}]}]}],"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{api_key}}","type":"string"}]}},{"name":"Visitor trusted login (server)","item":[{"name":"Trusted login","item":[{"name":"Log in a visitor by email using the organization trusted secret","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/visitor-account-login\/trusted","host":["www.wiretalk.tech"],"path":["api","visitor-account-login","trusted"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"email\": \"{{email}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/visitor-account-login\/trusted","host":["www.wiretalk.tech"],"path":["api","visitor-account-login","trusted"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"email\": \"{{email}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"You are logged in successfully.\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"success\": true,\n    \"reply_body\": \"Welcome back.\",\n    \"visitor_profile\": {\n        \"email\": \"jane@example.com\",\n        \"account_login\": {\n            \"logged_in\": true,\n            \"identifier\": \"jane@example.com\",\n            \"verified_at\": \"2026-09-06T08:00:00+00:00\"\n        }\n    }\n}"}]}]},{"name":"Agent \u2014 manage secret","item":[{"name":"Trusted login status (enabled, prefix, endpoint URL)","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/visitor-trusted-login","host":["www.wiretalk.tech"],"path":["api","agent","visitor-trusted-login"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/visitor-trusted-login","host":["www.wiretalk.tech"],"path":["api","agent","visitor-trusted-login"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"trusted_login\": {\n        \"enabled\": true,\n        \"secret_configured\": true,\n        \"secret_prefix\": \"wt_vlogin_ab\",\n        \"header\": \"X-Wiretalk-Visitor-Login-Secret\",\n        \"endpoint\": \"https:\/\/www.wiretalk.tech\/api\/visitor-account-login\/trusted\"\n    }\n}"}]},{"name":"Generate or rotate trusted login secret (shown once)","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/visitor-trusted-login\/secret","host":["www.wiretalk.tech"],"path":["api","agent","visitor-trusted-login","secret"],"protocol":"https","query":[]}},"response":[{"name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/visitor-trusted-login\/secret","host":["www.wiretalk.tech"],"path":["api","agent","visitor-trusted-login","secret"],"protocol":"https","query":[]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Copy this secret now. It will not be shown again.\",\n    \"code\": \"201\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"plain_text_secret\": \"wt_vlogin_abcdefghijklmnopqrstuvwxyz0123456789\",\n    \"trusted_login\": {\n        \"enabled\": true,\n        \"secret_configured\": true\n    }\n}"}]},{"name":"Enable or disable trusted login (secret must exist to enable)","request":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/visitor-trusted-login","host":["www.wiretalk.tech"],"path":["api","agent","visitor-trusted-login"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"enabled\": true\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/visitor-trusted-login","host":["www.wiretalk.tech"],"path":["api","agent","visitor-trusted-login"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"enabled\": true\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"trusted_login\": {\n        \"enabled\": false,\n        \"secret_configured\": true\n    }\n}"}]}]}]},{"name":"Widget session & profile","item":[{"name":"Session bootstrap","item":[{"name":"Initialize widget session and load config","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/init","host":["www.wiretalk.tech"],"path":["api","widget","init"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"locale\": \"{{locale}}\",\n    \"url\": \"{{url}}\",\n    \"page_title\": \"{{page_title}}\",\n    \"visitor_name\": \"{{visitor_name}}\",\n    \"visitor_email\": \"{{visitor_email}}\",\n    \"visitor_phone\": \"{{visitor_phone}}\",\n    \"visitor_mobile\": \"{{visitor_mobile}}\",\n    \"mobile\": \"{{mobile}}\",\n    \"platform\": \"{{platform}}\",\n    \"app_id\": \"{{app_id}}\",\n    \"app_version\": \"{{app_version}}\",\n    \"app_build\": \"{{app_build}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/init","host":["www.wiretalk.tech"],"path":["api","widget","init"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"locale\": \"{{locale}}\",\n    \"url\": \"{{url}}\",\n    \"page_title\": \"{{page_title}}\",\n    \"visitor_name\": \"{{visitor_name}}\",\n    \"visitor_email\": \"{{visitor_email}}\",\n    \"visitor_phone\": \"{{visitor_phone}}\",\n    \"visitor_mobile\": \"{{visitor_mobile}}\",\n    \"mobile\": \"{{mobile}}\",\n    \"platform\": \"{{platform}}\",\n    \"app_id\": \"{{app_id}}\",\n    \"app_version\": \"{{app_version}}\",\n    \"app_build\": \"{{app_build}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"visitor_uid\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n    \"visitor_id\": 9,\n    \"session_token\": \"sess_abc123\",\n    \"conversation_id\": 42,\n    \"widget_config\": {\n        \"pre_chat_form\": {\n            \"enabled\": true,\n            \"delay_minutes\": 10,\n            \"fields\": [\n                {\n                    \"key\": \"name\",\n                    \"type\": \"text\",\n                    \"label\": \"Name\",\n                    \"required\": true,\n                    \"builtin\": true\n                }\n            ]\n        },\n        \"visitor_account_login\": {\n            \"enabled\": true,\n            \"menu_label\": \"Account login\",\n            \"logout_label\": \"Log out\"\n        },\n        \"filter_record\": {\n            \"enabled\": true,\n            \"button_label\": \"Search your data\",\n            \"filters\": [\n                {\n                    \"key\": \"txn\",\n                    \"label\": \"Transaction ID\",\n                    \"type\": \"text\"\n                },\n                {\n                    \"key\": \"date\",\n                    \"label\": \"Date range\",\n                    \"type\": \"date_range\"\n                }\n            ],\n            \"empty_reply\": \"No records found.\",\n            \"login_required_reply\": \"Please log in to search your data.\"\n        }\n    },\n    \"visitor_profile\": {\n        \"name\": \"Jane Doe\",\n        \"email\": \"jane@example.com\",\n        \"phone\": \"9876543210\",\n        \"profile_complete\": true,\n        \"pre_chat_submitted\": false,\n        \"account_login\": {\n            \"logged_in\": false,\n            \"identifier\": null,\n            \"verified_at\": null\n        }\n    }\n}"}]},{"name":"Submit pre-chat form fields for the current visitor","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/profile","host":["www.wiretalk.tech"],"path":["api","widget","profile"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"name\": \"{{name}}\",\n    \"email\": \"{{email}}\",\n    \"phone\": \"{{phone}}\",\n    \"custom_fields\": {}\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/profile","host":["www.wiretalk.tech"],"path":["api","widget","profile"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"name\": \"{{name}}\",\n    \"email\": \"{{email}}\",\n    \"phone\": \"{{phone}}\",\n    \"custom_fields\": {}\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"visitor_profile\": {\n        \"name\": \"Jane Doe\",\n        \"email\": \"jane@example.com\",\n        \"phone\": \"9876543210\",\n        \"profile_complete\": true,\n        \"pre_chat_submitted\": true\n    }\n}"}]}]}]},{"name":"Widget data lookup & account login","item":[{"name":"Account login","item":[{"name":"Log in a visitor with email or mobile identifier","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/account-login","host":["www.wiretalk.tech"],"path":["api","widget","account-login"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"identifier\": \"{{identifier}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/account-login","host":["www.wiretalk.tech"],"path":["api","widget","account-login"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"identifier\": \"{{identifier}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"You are logged in successfully.\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"success\": true,\n    \"otp_required\": false,\n    \"reply_body\": \"Welcome back, Jane.\",\n    \"follow_up_replies\": [\n        {\n            \"type\": \"button\",\n            \"label\": \"Export This Month\",\n            \"emoji\": \"\ud83d\udcca\"\n        },\n        {\n            \"type\": \"filter_record\",\n            \"label\": \"Search your data\",\n            \"emoji\": \"\ud83d\udd0d\"\n        }\n    ],\n    \"visitor_profile\": {\n        \"name\": \"Jane Doe\",\n        \"email\": \"jane@example.com\",\n        \"account_login\": {\n            \"logged_in\": true,\n            \"identifier\": \"jane@example.com\",\n            \"verified_at\": \"2026-09-06T08:00:00+00:00\"\n        }\n    }\n}"}]},{"name":"Verify email OTP when login requires OTP confirmation","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/account-login\/verify-otp","host":["www.wiretalk.tech"],"path":["api","widget","account-login","verify-otp"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"otp\": \"{{otp}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/account-login\/verify-otp","host":["www.wiretalk.tech"],"path":["api","widget","account-login","verify-otp"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"otp\": \"{{otp}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Login verified.\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"success\": true,\n    \"reply_body\": \"You are logged in successfully.\",\n    \"follow_up_replies\": [],\n    \"visitor_profile\": {\n        \"account_login\": {\n            \"logged_in\": true,\n            \"identifier\": \"jane@example.com\",\n            \"verified_at\": \"2026-09-06T08:01:00+00:00\"\n        }\n    }\n}"}]},{"name":"End the visitor account login session","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/account-logout","host":["www.wiretalk.tech"],"path":["api","widget","account-logout"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/account-logout","host":["www.wiretalk.tech"],"path":["api","widget","account-logout"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Logged out.\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"success\": true,\n    \"visitor_profile\": {\n        \"account_login\": {\n            \"logged_in\": false,\n            \"identifier\": null,\n            \"verified_at\": null\n        }\n    }\n}"}]}]},{"name":"Filter record search","item":[{"name":"Search logged-in visitor records across configured tables","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/filter-records\/search","host":["www.wiretalk.tech"],"path":["api","widget","filter-records","search"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"filters\": {}\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/filter-records\/search","host":["www.wiretalk.tech"],"path":["api","widget","filter-records","search"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"filters\": {}\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Results\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"success\": true,\n    \"body\": \"<div class=\\\"wt-filter-record-section\\\"><h4 class=\\\"wt-filter-record-section-title\\\">Transactions<\/h4>{{WTDL_TABLE}}\u2026{{\/WTDL_TABLE}}<\/div>\"\n}"}]}]},{"name":"Lookup tables in chat","item":[{"name":"Paginate rows from a lookup rule reply in the widget","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/data-lookup\/paginate","host":["www.wiretalk.tech"],"path":["api","widget","data-lookup","paginate"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"conversation_id\": 1,\n    \"rule_id\": \"{{rule_id}}\",\n    \"page\": 1,\n    \"trigger_message\": 1\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/data-lookup\/paginate","host":["www.wiretalk.tech"],"path":["api","widget","data-lookup","paginate"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"conversation_id\": 1,\n    \"rule_id\": \"{{rule_id}}\",\n    \"page\": 1,\n    \"trigger_message\": 1\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"reply_body\": \"{{WTDL_TABLE}}<table class=\\\"wt-dl-table\\\">\u2026<\/table>{{\/WTDL_TABLE}}\",\n    \"page\": 2,\n    \"has_more\": false\n}"}]},{"name":"Run a configured row action (e.g. open detail view)","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/data-lookup\/row-action","host":["www.wiretalk.tech"],"path":["api","widget","data-lookup","row-action"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"conversation_id\": 1,\n    \"rule_id\": \"{{rule_id}}\",\n    \"action_id\": \"{{action_id}}\",\n    \"row\": {}\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/data-lookup\/row-action","host":["www.wiretalk.tech"],"path":["api","widget","data-lookup","row-action"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"conversation_id\": 1,\n    \"rule_id\": \"{{rule_id}}\",\n    \"action_id\": \"{{action_id}}\",\n    \"row\": {}\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"reply_body\": \"Invoice #INV-1042 \u2014 status: paid\"\n}"}]}]}]},{"name":"Widget appointments","item":[{"name":"Availability & booking","item":[{"name":"List bookable slots for a calendar date","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/appointments\/availability","host":["www.wiretalk.tech"],"path":["api","widget","appointments","availability"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"date\": \"{{date}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/appointments\/availability","host":["www.wiretalk.tech"],"path":["api","widget","appointments","availability"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"date\": \"{{date}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"date\": \"2026-08-27\",\n    \"timezone\": \"Asia\/Kolkata\",\n    \"slots\": [\n        {\n            \"starts_at\": \"2026-08-27T09:00:00+05:30\",\n            \"ends_at\": \"2026-08-27T09:30:00+05:30\",\n            \"label\": \"9:00 AM\",\n            \"available\": true,\n            \"status\": \"available\"\n        },\n        {\n            \"starts_at\": \"2026-08-27T09:30:00+05:30\",\n            \"ends_at\": \"2026-08-27T10:00:00+05:30\",\n            \"label\": \"9:30 AM\",\n            \"available\": false,\n            \"status\": \"booked\"\n        }\n    ]\n}"}]},{"name":"Book an appointment slot for the current visitor","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/appointments\/book","host":["www.wiretalk.tech"],"path":["api","widget","appointments","book"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"scheduled_at\": \"{{scheduled_at}}\",\n    \"conversation_id\": 1,\n    \"visitor_name\": \"{{visitor_name}}\",\n    \"visitor_email\": \"{{visitor_email}}\",\n    \"visitor_phone\": \"{{visitor_phone}}\",\n    \"button_label\": \"{{button_label}}\",\n    \"bot_template_id\": 1\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/widget\/appointments\/book","host":["www.wiretalk.tech"],"path":["api","widget","appointments","book"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"widget_key\": \"{{widget_key}}\",\n    \"visitor_uid\": \"{{visitor_uid}}\",\n    \"scheduled_at\": \"{{scheduled_at}}\",\n    \"conversation_id\": 1,\n    \"visitor_name\": \"{{visitor_name}}\",\n    \"visitor_email\": \"{{visitor_email}}\",\n    \"visitor_phone\": \"{{visitor_phone}}\",\n    \"button_label\": \"{{button_label}}\",\n    \"bot_template_id\": 1\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"201\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"appointment\": {\n        \"id\": 12,\n        \"status\": \"confirmed\",\n        \"scheduled_at\": \"2026-08-27T09:00:00+05:30\",\n        \"ends_at\": \"2026-08-27T09:30:00+05:30\",\n        \"timezone\": \"Asia\/Kolkata\",\n        \"formatted\": \"Thursday, Aug 27, 2026 at 9:00 AM\",\n        \"visitor_name\": \"Jane Doe\",\n        \"visitor_email\": \"jane@example.com\"\n    }\n}"}]}]}]},{"name":"Agent appointments","item":[{"name":"Settings & records","item":[{"name":"Get appointment slot rules for the organization site","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointment-settings","host":["www.wiretalk.tech"],"path":["api","agent","appointment-settings"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointment-settings","host":["www.wiretalk.tech"],"path":["api","agent","appointment-settings"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"settings\": {\n        \"enabled\": true,\n        \"duration_minutes\": 30,\n        \"buffer_minutes\": 0,\n        \"slot_interval_minutes\": 30,\n        \"advance_days\": 14,\n        \"min_notice_hours\": 2\n    },\n    \"timezone\": \"Asia\/Kolkata\"\n}"}]},{"name":"Update appointment slot rules","request":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointment-settings","host":["www.wiretalk.tech"],"path":["api","agent","appointment-settings"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"enabled\": true,\n    \"duration_minutes\": 1,\n    \"buffer_minutes\": 1,\n    \"slot_interval_minutes\": 1,\n    \"advance_days\": 1,\n    \"min_notice_hours\": 1\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointment-settings","host":["www.wiretalk.tech"],"path":["api","agent","appointment-settings"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"enabled\": true,\n    \"duration_minutes\": 1,\n    \"buffer_minutes\": 1,\n    \"slot_interval_minutes\": 1,\n    \"advance_days\": 1,\n    \"min_notice_hours\": 1\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"settings\": {\n        \"enabled\": true,\n        \"duration_minutes\": 30,\n        \"advance_days\": 14\n    },\n    \"timezone\": \"Asia\/Kolkata\"\n}"}]},{"name":"List appointments for your organization","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointments","host":["www.wiretalk.tech"],"path":["api","agent","appointments"],"protocol":"https","query":[{"key":"status","value":"{{status}}","description":"pending, confirmed, cancelled, completed","disabled":true},{"key":"from","value":"{{from}}","description":"Filter from date (YYYY-MM-DD)","disabled":true},{"key":"to","value":"{{to}}","description":"Filter to date (YYYY-MM-DD)","disabled":true}]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointments","host":["www.wiretalk.tech"],"path":["api","agent","appointments"],"protocol":"https","query":[{"key":"status","value":"{{status}}","description":"pending, confirmed, cancelled, completed","disabled":true},{"key":"from","value":"{{from}}","description":"Filter from date (YYYY-MM-DD)","disabled":true},{"key":"to","value":"{{to}}","description":"Filter to date (YYYY-MM-DD)","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": [\n        {\n            \"id\": 12,\n            \"status\": \"confirmed\",\n            \"scheduled_at\": \"2026-08-27T09:00:00+05:30\",\n            \"formatted\": \"Thursday, Aug 27, 2026 9:00 AM\",\n            \"visitor_name\": \"Jane Doe\",\n            \"visitor_email\": \"jane@example.com\",\n            \"conversation_id\": 42\n        }\n    ]\n}"}]},{"name":"Update appointment status or internal notes","request":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointments\/{appointment}","host":["www.wiretalk.tech"],"path":["api","agent","appointments","{appointment}"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"status\": \"{{status}}\",\n    \"notes\": \"{{notes}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"PATCH","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/agent\/appointments\/{appointment}","host":["www.wiretalk.tech"],"path":["api","agent","appointments","{appointment}"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"status\": \"{{status}}\",\n    \"notes\": \"{{notes}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"data\": {\n        \"id\": 12,\n        \"notes\": \"Visitor rescheduled by email\",\n        \"status\": \"cancelled\"\n    }\n}"}]}]}]},{"name":"Agent auth (Sanctum)","item":[{"name":"Login","request":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/login","host":["www.wiretalk.tech"],"path":["api","login"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"email\": \"{{email}}\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":false}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/login","host":["www.wiretalk.tech"],"path":["api","login"],"protocol":"https","query":[]},"body":{"mode":"raw","raw":"{\n    \"email\": \"{{email}}\",\n    \"password\": \"{{password}}\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"token\": \"1|sanctum-token\",\n    \"user\": {\n        \"id\": 1,\n        \"name\": \"Jane Agent\"\n    }\n}"}]},{"name":"Current user","request":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/me","host":["www.wiretalk.tech"],"path":["api","me"],"protocol":"https","query":[]}},"response":[{"name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application\/json"},{"key":"Content-Type","value":"application\/json","disabled":true}],"url":{"raw":"https:\/\/www.wiretalk.tech\/api\/me","host":["www.wiretalk.tech"],"path":["api","me"],"protocol":"https","query":[]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application\/json"}],"body":"{\n    \"status\": true,\n    \"message\": \"Success\",\n    \"code\": \"200\",\n    \"datetime\": \"2026-09-08T12:00:00+00:00\",\n    \"id\": 1,\n    \"name\": \"Jane Agent\",\n    \"email\": \"jane@company.com\"\n}"}]}],"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{bearer_token}}","type":"string"}]}}]}