[{"data":1,"prerenderedAt":2810},["ShallowReactive",2],{"navigation_docs_en":3,"-en-telephony-webhooks":705,"-en-telephony-webhooks-surround":2805},[4,8,26,52,101,131,181,219,237,247,269,291,562,572,612,661,691],{"title":5,"path":6,"stem":7},"Introduction","\u002Fen\u002Fintroduction","en\u002F01.introduction",{"title":9,"path":10,"stem":11,"children":12},"Getting started","\u002Fen\u002Fgetting-started","en\u002F02.getting-started\u002Findex",[13,14,18,22],{"title":9,"path":10,"stem":11},{"title":15,"path":16,"stem":17},"Initial setup","\u002Fen\u002Fgetting-started\u002Finitial-setup","en\u002F02.getting-started\u002F01.initial-setup",{"title":19,"path":20,"stem":21},"Create your first agent","\u002Fen\u002Fgetting-started\u002Ffirst-agent","en\u002F02.getting-started\u002F02.first-agent",{"title":23,"path":24,"stem":25},"Run a test call","\u002Fen\u002Fgetting-started\u002Ftest-call","en\u002F02.getting-started\u002F03.test-call",{"title":27,"path":28,"stem":29,"children":30},"Concepts","\u002Fen\u002Fconcepts","en\u002F03.concepts\u002Findex",[31,32,36,40,44,48],{"title":27,"path":28,"stem":29},{"title":33,"path":34,"stem":35},"Voice agent","\u002Fen\u002Fconcepts\u002Fagent","en\u002F03.concepts\u002F01.agent",{"title":37,"path":38,"stem":39},"Flow","\u002Fen\u002Fconcepts\u002Fflow","en\u002F03.concepts\u002F02.flow",{"title":41,"path":42,"stem":43},"Runtime","\u002Fen\u002Fconcepts\u002Fruntime","en\u002F03.concepts\u002F03.runtime",{"title":45,"path":46,"stem":47},"Organization and permissions","\u002Fen\u002Fconcepts\u002Forganization","en\u002F03.concepts\u002F04.organization",{"title":49,"path":50,"stem":51},"Prompt Builder","\u002Fen\u002Fconcepts\u002Fprompt-builder","en\u002F03.concepts\u002F05.prompt-builder",{"title":53,"path":54,"stem":55,"children":56},"Guides","\u002Fen\u002Fguides","en\u002F04.guides\u002Findex",[57,58,61,65,69,73,77,81,85,89,93,97],{"title":53,"path":54,"stem":55},{"title":19,"path":59,"stem":60},"\u002Fen\u002Fguides\u002Fcreate-first-agent","en\u002F04.guides\u002F01.create-first-agent",{"title":62,"path":63,"stem":64},"Use the Flow Builder","\u002Fen\u002Fguides\u002Fuse-flow-builder","en\u002F04.guides\u002F02.use-flow-builder",{"title":66,"path":67,"stem":68},"Publish and receive calls","\u002Fen\u002Fguides\u002Fpublish-agent","en\u002F04.guides\u002F03.publish-agent",{"title":70,"path":71,"stem":72},"Test an agent","\u002Fen\u002Fguides\u002Ftest-agent","en\u002F04.guides\u002F04.test-agent",{"title":74,"path":75,"stem":76},"Transfer to a human","\u002Fen\u002Fguides\u002Ftransfer-to-human","en\u002F04.guides\u002F05.transfer-to-human",{"title":78,"path":79,"stem":80},"Book meetings with Cal.com","\u002Fen\u002Fguides\u002Fbook-meetings","en\u002F04.guides\u002F06.book-meetings",{"title":82,"path":83,"stem":84},"Send SMS","\u002Fen\u002Fguides\u002Fsend-sms","en\u002F04.guides\u002F07.send-sms",{"title":86,"path":87,"stem":88},"Configure a phone book","\u002Fen\u002Fguides\u002Fconfigure-phone-book","en\u002F04.guides\u002F08.configure-phone-book",{"title":90,"path":91,"stem":92},"Embed the voice widget","\u002Fen\u002Fguides\u002Fembed-widget","en\u002F04.guides\u002F09.embed-widget",{"title":94,"path":95,"stem":96},"Record calls","\u002Fen\u002Fguides\u002Frecord-calls","en\u002F04.guides\u002F10.record-calls",{"title":98,"path":99,"stem":100},"Redact personal data","\u002Fen\u002Fguides\u002Fredact-personal-data","en\u002F04.guides\u002F11.redact-personal-data",{"title":102,"path":103,"stem":104,"children":105},"Flow Builder","\u002Fen\u002Fflow-builder","en\u002F05.flow-builder\u002Findex",[106,107,111,115,119,123,127],{"title":102,"path":103,"stem":104},{"title":108,"path":109,"stem":110},"Builder interface","\u002Fen\u002Fflow-builder\u002Finterface","en\u002F05.flow-builder\u002F01.interface",{"title":112,"path":113,"stem":114},"Flow structure","\u002Fen\u002Fflow-builder\u002Fstructure","en\u002F05.flow-builder\u002F02.structure",{"title":116,"path":117,"stem":118},"Flow variables","\u002Fen\u002Fflow-builder\u002Fvariables","en\u002F05.flow-builder\u002F03.variables",{"title":120,"path":121,"stem":122},"Conditions and paths","\u002Fen\u002Fflow-builder\u002Fbranches","en\u002F05.flow-builder\u002F04.branches",{"title":124,"path":125,"stem":126},"Test a flow","\u002Fen\u002Fflow-builder\u002Ftesting","en\u002F05.flow-builder\u002F05.testing",{"title":128,"path":129,"stem":130},"Validation and publishing","\u002Fen\u002Fflow-builder\u002Fvalidation-publishing","en\u002F05.flow-builder\u002F06.validation-publishing",{"title":132,"path":133,"stem":134,"children":135},"Nodes","\u002Fen\u002Fnodes","en\u002F06.nodes\u002Findex",[136,137,141,145,149,153,157,161,165,169,173,177],{"title":132,"path":133,"stem":134},{"title":138,"path":139,"stem":140},"Conversation","\u002Fen\u002Fnodes\u002Fconversation","en\u002F06.nodes\u002F01.conversation",{"title":142,"path":143,"stem":144},"Message","\u002Fen\u002Fnodes\u002Fmessage","en\u002F06.nodes\u002F02.message",{"title":146,"path":147,"stem":148},"Split path","\u002Fen\u002Fnodes\u002Fsplit-path","en\u002F06.nodes\u002F03.split-path",{"title":150,"path":151,"stem":152},"Jump to","\u002Fen\u002Fnodes\u002Fjump-to","en\u002F06.nodes\u002F04.jump-to",{"title":154,"path":155,"stem":156},"Trigger subflow","\u002Fen\u002Fnodes\u002Ftrigger-subflow","en\u002F06.nodes\u002F05.trigger-subflow",{"title":158,"path":159,"stem":160},"Custom action","\u002Fen\u002Fnodes\u002Fcustom-action","en\u002F06.nodes\u002F06.custom-action",{"title":162,"path":163,"stem":164},"Send SMS during the call","\u002Fen\u002Fnodes\u002Fsend-sms-during-call","en\u002F06.nodes\u002F07.send-sms-during-call",{"title":166,"path":167,"stem":168},"Transfer","\u002Fen\u002Fnodes\u002Ftransfer","en\u002F06.nodes\u002F08.transfer",{"title":170,"path":171,"stem":172},"Booking","\u002Fen\u002Fnodes\u002Fbooking","en\u002F06.nodes\u002F09.booking",{"title":174,"path":175,"stem":176},"End call","\u002Fen\u002Fnodes\u002Fend-call","en\u002F06.nodes\u002F10.end-call",{"title":178,"path":179,"stem":180},"Nodes coming soon","\u002Fen\u002Fnodes\u002Fcoming-soon","en\u002F06.nodes\u002F11.coming-soon",{"title":182,"path":183,"stem":184,"children":185},"Actions","\u002Fen\u002Factions","en\u002F07.actions\u002Findex",[186,187,191,195,199,203,207,211,215],{"title":182,"path":183,"stem":184},{"title":188,"path":189,"stem":190},"Call transfers","\u002Fen\u002Factions\u002Fcall-transfers","en\u002F07.actions\u002F01.call-transfers",{"title":192,"path":193,"stem":194},"IVR","\u002Fen\u002Factions\u002Fivr","en\u002F07.actions\u002F02.ivr",{"title":196,"path":197,"stem":198},"SMS during the call","\u002Fen\u002Factions\u002Fduring-call-sms","en\u002F07.actions\u002F03.during-call-sms",{"title":200,"path":201,"stem":202},"Post-call SMS","\u002Fen\u002Factions\u002Fpost-call-sms","en\u002F07.actions\u002F04.post-call-sms",{"title":204,"path":205,"stem":206},"Custom actions","\u002Fen\u002Factions\u002Fcustom-actions","en\u002F07.actions\u002F05.custom-actions",{"title":208,"path":209,"stem":210},"Information extractors","\u002Fen\u002Factions\u002Finformation-extractors","en\u002F07.actions\u002F06.information-extractors",{"title":212,"path":213,"stem":214},"Custom evaluations","\u002Fen\u002Factions\u002Fcustom-evaluations","en\u002F07.actions\u002F07.custom-evaluations",{"title":216,"path":217,"stem":218},"Real-time booking","\u002Fen\u002Factions\u002Freal-time-booking","en\u002F07.actions\u002F08.real-time-booking",{"title":220,"path":221,"stem":222,"children":223},"Knowledge base","\u002Fen\u002Fknowledge-base","en\u002F08.knowledge-base\u002Findex",[224,225,229,233],{"title":220,"path":221,"stem":222},{"title":226,"path":227,"stem":228},"Sources","\u002Fen\u002Fknowledge-base\u002Fsources","en\u002F08.knowledge-base\u002F01.sources",{"title":230,"path":231,"stem":232},"Citations","\u002Fen\u002Fknowledge-base\u002Fcitations","en\u002F08.knowledge-base\u002F02.citations",{"title":234,"path":235,"stem":236},"Shared memory","\u002Fen\u002Fknowledge-base\u002Fshared-memory","en\u002F08.knowledge-base\u002F03.shared-memory",{"title":238,"path":239,"stem":240,"children":241},"Test Center","\u002Fen\u002Ftest-center","en\u002F09.test-center\u002Findex",[242,243],{"title":238,"path":239,"stem":240},{"title":244,"path":245,"stem":246},"Evaluations","\u002Fen\u002Ftest-center\u002Fevaluations","en\u002F09.test-center\u002F01.evaluations",{"title":248,"path":249,"stem":250,"children":251},"History and analytics","\u002Fen\u002Fhistory","en\u002F10.history\u002Findex",[252,253,257,261,265],{"title":248,"path":249,"stem":250},{"title":254,"path":255,"stem":256},"Overview","\u002Fen\u002Fhistory\u002Fdashboard","en\u002F10.history\u002F01.dashboard",{"title":258,"path":259,"stem":260},"Calls","\u002Fen\u002Fhistory\u002Fcalls","en\u002F10.history\u002F02.calls",{"title":262,"path":263,"stem":264},"Recordings","\u002Fen\u002Fhistory\u002Frecordings","en\u002F10.history\u002F03.recordings",{"title":266,"path":267,"stem":268},"Analytics","\u002Fen\u002Fhistory\u002Fanalytics","en\u002F10.history\u002F04.analytics",{"title":270,"path":271,"stem":272,"children":273},"WhatsApp","\u002Fen\u002Fwhatsapp","en\u002F11.whatsapp\u002Findex",[274,275,279,283,287],{"title":270,"path":271,"stem":272},{"title":276,"path":277,"stem":278},"Connect the number","\u002Fen\u002Fwhatsapp\u002Fconnect","en\u002F11.whatsapp\u002F01.connect",{"title":280,"path":281,"stem":282},"Templates","\u002Fen\u002Fwhatsapp\u002Ftemplates","en\u002F11.whatsapp\u002F02.templates",{"title":284,"path":285,"stem":286},"Conversations","\u002Fen\u002Fwhatsapp\u002Fconversations","en\u002F11.whatsapp\u002F03.conversations",{"title":288,"path":289,"stem":290},"Voice calls","\u002Fen\u002Fwhatsapp\u002Fcalls","en\u002F11.whatsapp\u002F04.calls",{"title":292,"path":293,"stem":294,"children":295},"API","\u002Fen\u002Fapi","en\u002F12.api\u002Findex",[296,297,301,305,309,313,317,321,536,554,558],{"title":292,"path":293,"stem":294},{"title":298,"path":299,"stem":300},"Getting started with the API","\u002Fen\u002Fapi\u002Fgetting-started","en\u002F12.api\u002F01.getting-started",{"title":302,"path":303,"stem":304},"DISKA API","\u002Fen\u002Fapi\u002Fapi-channel","en\u002F12.api\u002F02.api-channel",{"title":306,"path":307,"stem":308},"Authentication","\u002Fen\u002Fapi\u002Fauthentication","en\u002F12.api\u002F03.authentication",{"title":310,"path":311,"stem":312},"Webhooks","\u002Fen\u002Fapi\u002Fwebhooks","en\u002F12.api\u002F04.webhooks",{"title":314,"path":315,"stem":316},"Endpoints","\u002Fen\u002Fapi\u002Fendpoints","en\u002F12.api\u002F05.endpoints",{"title":318,"path":319,"stem":320},"Realtime","\u002Fen\u002Fapi\u002Frealtime","en\u002F12.api\u002F06.realtime",{"title":322,"path":323,"stem":324,"children":325},"API reference","\u002Fen\u002Fapi\u002Freference","en\u002F12.api\u002F07.reference\u002Findex",[326,327,337,363,380,398,440,466,475,485,511],{"title":322,"path":323,"stem":324},{"title":328,"path":329,"stem":330,"children":331},"Identity","\u002Fen\u002Fapi\u002Freference\u002Fidentity","en\u002F12.api\u002F07.reference\u002F01.identity\u002Findex",[332,333],{"title":328,"path":329,"stem":330},{"title":334,"path":335,"stem":336},"Get the key and organization","\u002Fen\u002Fapi\u002Freference\u002Fidentity\u002Fget-identity","en\u002F12.api\u002F07.reference\u002F01.identity\u002F01.get-identity",{"title":338,"path":339,"stem":340,"children":341},"Agents","\u002Fen\u002Fapi\u002Freference\u002Fagents","en\u002F12.api\u002F07.reference\u002F02.agents\u002Findex",[342,343,347,351,355,359],{"title":338,"path":339,"stem":340},{"title":344,"path":345,"stem":346},"List agents","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Flist-agents","en\u002F12.api\u002F07.reference\u002F02.agents\u002F01.list-agents",{"title":348,"path":349,"stem":350},"Get an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fget-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F02.get-agent",{"title":352,"path":353,"stem":354},"Update an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fupdate-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F03.update-agent",{"title":356,"path":357,"stem":358},"Create an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fcreate-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F04.create-agent",{"title":360,"path":361,"stem":362},"Publish an agent","\u002Fen\u002Fapi\u002Freference\u002Fagents\u002Fpublish-agent","en\u002F12.api\u002F07.reference\u002F02.agents\u002F05.publish-agent",{"title":258,"path":364,"stem":365,"children":366},"\u002Fen\u002Fapi\u002Freference\u002Fcalls","en\u002F12.api\u002F07.reference\u002F03.calls\u002Findex",[367,368,372,376],{"title":258,"path":364,"stem":365},{"title":369,"path":370,"stem":371},"List calls","\u002Fen\u002Fapi\u002Freference\u002Fcalls\u002Flist-calls","en\u002F12.api\u002F07.reference\u002F03.calls\u002F01.list-calls",{"title":373,"path":374,"stem":375},"Get a call","\u002Fen\u002Fapi\u002Freference\u002Fcalls\u002Fget-call","en\u002F12.api\u002F07.reference\u002F03.calls\u002F02.get-call",{"title":377,"path":378,"stem":379},"Download the recording","\u002Fen\u002Fapi\u002Freference\u002Fcalls\u002Fget-call-recording","en\u002F12.api\u002F07.reference\u002F03.calls\u002F03.get-call-recording",{"title":381,"path":382,"stem":383,"children":384},"Outbound calls","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002Findex",[385,386,390,394],{"title":381,"path":382,"stem":383},{"title":387,"path":388,"stem":389},"Make an outbound call","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls\u002Fcreate-outbound-call","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F01.create-outbound-call",{"title":391,"path":392,"stem":393},"Get an outbound call","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls\u002Fget-outbound-call","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F02.get-outbound-call",{"title":395,"path":396,"stem":397},"Hang up an outbound call","\u002Fen\u002Fapi\u002Freference\u002Foutbound-calls\u002Fhang-up-outbound-call","en\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F03.hang-up-outbound-call",{"title":399,"path":400,"stem":401,"children":402},"Campaigns","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002Findex",[403,404,408,412,416,420,424,428,432,436],{"title":399,"path":400,"stem":401},{"title":405,"path":406,"stem":407},"List campaigns","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaigns","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F01.list-campaigns",{"title":409,"path":410,"stem":411},"Create a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fcreate-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F02.create-campaign",{"title":413,"path":414,"stem":415},"Get a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fget-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F03.get-campaign",{"title":417,"path":418,"stem":419},"Add recipients","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fadd-campaign-recipients","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F04.add-campaign-recipients",{"title":421,"path":422,"stem":423},"List recipients","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaign-recipients","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F05.list-campaign-recipients",{"title":425,"path":426,"stem":427},"Start a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fstart-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F06.start-campaign",{"title":429,"path":430,"stem":431},"Pause a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fpause-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F07.pause-campaign",{"title":433,"path":434,"stem":435},"Resume a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fresume-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F08.resume-campaign",{"title":437,"path":438,"stem":439},"Cancel a campaign","\u002Fen\u002Fapi\u002Freference\u002Fcampaigns\u002Fcancel-campaign","en\u002F12.api\u002F07.reference\u002F05.campaigns\u002F09.cancel-campaign",{"title":441,"path":442,"stem":443,"children":444},"Chat","\u002Fen\u002Fapi\u002Freference\u002Fchats","en\u002F12.api\u002F07.reference\u002F06.chats\u002Findex",[445,446,450,454,458,462],{"title":441,"path":442,"stem":443},{"title":447,"path":448,"stem":449},"Create a chat","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fcreate-chat","en\u002F12.api\u002F07.reference\u002F06.chats\u002F01.create-chat",{"title":451,"path":452,"stem":453},"Send a message","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fsend-chat-message","en\u002F12.api\u002F07.reference\u002F06.chats\u002F02.send-chat-message",{"title":455,"path":456,"stem":457},"Get a chat","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fget-chat","en\u002F12.api\u002F07.reference\u002F06.chats\u002F03.get-chat",{"title":459,"path":460,"stem":461},"List chats","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Flist-chats","en\u002F12.api\u002F07.reference\u002F06.chats\u002F04.list-chats",{"title":463,"path":464,"stem":465},"End a chat","\u002Fen\u002Fapi\u002Freference\u002Fchats\u002Fend-chat","en\u002F12.api\u002F07.reference\u002F06.chats\u002F05.end-chat",{"title":266,"path":467,"stem":468,"children":469},"\u002Fen\u002Fapi\u002Freference\u002Fanalytics","en\u002F12.api\u002F07.reference\u002F07.analytics\u002Findex",[470,471],{"title":266,"path":467,"stem":468},{"title":472,"path":473,"stem":474},"Analytics overview","\u002Fen\u002Fapi\u002Freference\u002Fanalytics\u002Fget-overview","en\u002F12.api\u002F07.reference\u002F07.analytics\u002F01.get-overview",{"title":476,"path":477,"stem":478,"children":479},"Phone numbers","\u002Fen\u002Fapi\u002Freference\u002Fphone-numbers","en\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002Findex",[480,481],{"title":476,"path":477,"stem":478},{"title":482,"path":483,"stem":484},"List phone numbers","\u002Fen\u002Fapi\u002Freference\u002Fphone-numbers\u002Flist-phone-numbers","en\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002F01.list-phone-numbers",{"title":486,"path":487,"stem":488,"children":489},"Knowledge","\u002Fen\u002Fapi\u002Freference\u002Fknowledge","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002Findex",[490,491,495,499,503,507],{"title":486,"path":487,"stem":488},{"title":492,"path":493,"stem":494},"List knowledge bases","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Flist-knowledge-bases","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F01.list-knowledge-bases",{"title":496,"path":497,"stem":498},"Create a knowledge base","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fcreate-knowledge-base","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F02.create-knowledge-base",{"title":500,"path":501,"stem":502},"Add a text document","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fadd-text-document","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F03.add-text-document",{"title":504,"path":505,"stem":506},"Import a web page","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fimport-url","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F04.import-url",{"title":508,"path":509,"stem":510},"Upload a PDF","\u002Fen\u002Fapi\u002Freference\u002Fknowledge\u002Fupload-pdf","en\u002F12.api\u002F07.reference\u002F09.knowledge\u002F05.upload-pdf",{"title":310,"path":512,"stem":513,"children":514},"\u002Fen\u002Fapi\u002Freference\u002Fwebhooks","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002Findex",[515,516,520,524,528,532],{"title":310,"path":512,"stem":513},{"title":517,"path":518,"stem":519},"List webhook endpoints","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Flist-webhook-endpoints","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F01.list-webhook-endpoints",{"title":521,"path":522,"stem":523},"Create a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Fcreate-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F02.create-webhook-endpoint",{"title":525,"path":526,"stem":527},"Update a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Fupdate-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F03.update-webhook-endpoint",{"title":529,"path":530,"stem":531},"Delete a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Fdelete-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F04.delete-webhook-endpoint",{"title":533,"path":534,"stem":535},"Test a webhook endpoint","\u002Fen\u002Fapi\u002Freference\u002Fwebhooks\u002Ftest-webhook-endpoint","en\u002F12.api\u002F07.reference\u002F10.webhooks\u002F05.test-webhook-endpoint",{"title":537,"path":538,"stem":539,"children":540},"API guides","\u002Fen\u002Fapi\u002Fguides","en\u002F12.api\u002F08.guides\u002Findex",[541,542,546,550],{"title":537,"path":538,"stem":539},{"title":543,"path":544,"stem":545},"Sync calls with your CRM","\u002Fen\u002Fapi\u002Fguides\u002Fsync-calls-crm","en\u002F12.api\u002F08.guides\u002F01.sync-calls-crm",{"title":547,"path":548,"stem":549},"Export the call history","\u002Fen\u002Fapi\u002Fguides\u002Fexport-call-history","en\u002F12.api\u002F08.guides\u002F02.export-call-history",{"title":551,"path":552,"stem":553},"Feed knowledge from your website","\u002Fen\u002Fapi\u002Fguides\u002Fknowledge-from-website","en\u002F12.api\u002F08.guides\u002F03.knowledge-from-website",{"title":555,"path":556,"stem":557},"Versioning and changelog","\u002Fen\u002Fapi\u002Fchangelog","en\u002F12.api\u002F09.changelog",{"title":559,"path":560,"stem":561},"OAuth for partner platforms","\u002Fen\u002Fapi\u002Foauth","en\u002F12.api\u002F10.oauth",{"title":563,"path":564,"stem":565,"children":566},"Integrations","\u002Fen\u002Fintegrations","en\u002F13.integrations\u002Findex",[567,568],{"title":563,"path":564,"stem":565},{"title":569,"path":570,"stem":571},"Cal.com","\u002Fen\u002Fintegrations\u002Fcalcom","en\u002F13.integrations\u002F01.calcom",{"title":573,"path":574,"stem":575,"children":576},"Telephony","\u002Fen\u002Ftelephony","en\u002F14.telephony\u002Findex",[577,578,581,585,589,593,596,600,604,608],{"title":573,"path":574,"stem":575},{"title":476,"path":579,"stem":580},"\u002Fen\u002Ftelephony\u002Fnumbers","en\u002F14.telephony\u002F01.numbers",{"title":582,"path":583,"stem":584},"Connect over SIP","\u002Fen\u002Ftelephony\u002Fsip-trunk","en\u002F14.telephony\u002F02.sip-trunk",{"title":586,"path":587,"stem":588},"Phone calls","\u002Fen\u002Ftelephony\u002Fphone-calls","en\u002F14.telephony\u002F03.phone-calls",{"title":590,"path":591,"stem":592},"Call settings","\u002Fen\u002Ftelephony\u002Fcall-settings","en\u002F14.telephony\u002F04.call-settings",{"title":399,"path":594,"stem":595},"\u002Fen\u002Ftelephony\u002Fcampaigns","en\u002F14.telephony\u002F05.campaigns",{"title":597,"path":598,"stem":599},"Simultaneous calls","\u002Fen\u002Ftelephony\u002Fconcurrency","en\u002F14.telephony\u002F06.concurrency",{"title":601,"path":602,"stem":603},"Transfers","\u002Fen\u002Ftelephony\u002Ftransfers","en\u002F14.telephony\u002F07.transfers",{"title":605,"path":606,"stem":607},"Agent webhooks","\u002Fen\u002Ftelephony\u002Fwebhooks","en\u002F14.telephony\u002F08.webhooks",{"title":609,"path":610,"stem":611},"Errors and end reasons","\u002Fen\u002Ftelephony\u002Ferrors","en\u002F14.telephony\u002F09.errors",{"title":613,"path":614,"stem":615,"children":616},"Settings","\u002Fen\u002Fsettings","en\u002F15.settings\u002Findex",[617,618,622,626,630,634,638,642,646,650,653,657],{"title":613,"path":614,"stem":615},{"title":619,"path":620,"stem":621},"Profile","\u002Fen\u002Fsettings\u002Fpersonal-profile","en\u002F15.settings\u002F01.personal-profile",{"title":623,"path":624,"stem":625},"Credentials","\u002Fen\u002Fsettings\u002Fcredentials","en\u002F15.settings\u002F02.credentials",{"title":627,"path":628,"stem":629},"Password","\u002Fen\u002Fsettings\u002Fpassword","en\u002F15.settings\u002F03.password",{"title":631,"path":632,"stem":633},"Two-factor authentication","\u002Fen\u002Fsettings\u002Ftwo-factor","en\u002F15.settings\u002F04.two-factor",{"title":635,"path":636,"stem":637},"Active sessions","\u002Fen\u002Fsettings\u002Fsessions","en\u002F15.settings\u002F05.sessions",{"title":639,"path":640,"stem":641},"Company","\u002Fen\u002Fsettings\u002Fcompany","en\u002F15.settings\u002F06.company",{"title":643,"path":644,"stem":645},"Organization","\u002Fen\u002Fsettings\u002Forganization","en\u002F15.settings\u002F07.organization",{"title":647,"path":648,"stem":649},"Members","\u002Fen\u002Fsettings\u002Fmembers","en\u002F15.settings\u002F08.members",{"title":563,"path":651,"stem":652},"\u002Fen\u002Fsettings\u002Fintegrations","en\u002F15.settings\u002F09.integrations",{"title":654,"path":655,"stem":656},"API keys","\u002Fen\u002Fsettings\u002Fapi-keys","en\u002F15.settings\u002F10.api-keys",{"title":658,"path":659,"stem":660},"Connected apps and OAuth apps","\u002Fen\u002Fsettings\u002Fconnected-apps","en\u002F15.settings\u002F11.connected-apps",{"title":662,"path":663,"stem":664,"children":665},"Common problems","\u002Fen\u002Ftroubleshooting","en\u002F16.troubleshooting\u002Findex",[666,667,671,675,679,683,687],{"title":662,"path":663,"stem":664},{"title":668,"path":669,"stem":670},"Agent not answering","\u002Fen\u002Ftroubleshooting\u002Fagent-not-answering","en\u002F16.troubleshooting\u002F01.agent-not-answering",{"title":672,"path":673,"stem":674},"Calls drop","\u002Fen\u002Ftroubleshooting\u002Fcalls-drop","en\u002F16.troubleshooting\u002F02.calls-drop",{"title":676,"path":677,"stem":678},"Flow not publishing","\u002Fen\u002Ftroubleshooting\u002Fflow-not-publishing","en\u002F16.troubleshooting\u002F03.flow-not-publishing",{"title":680,"path":681,"stem":682},"Knowledge not answering","\u002Fen\u002Ftroubleshooting\u002Fkb-not-answering","en\u002F16.troubleshooting\u002F04.kb-not-answering",{"title":684,"path":685,"stem":686},"Integration not connecting","\u002Fen\u002Ftroubleshooting\u002Fintegration-not-connecting","en\u002F16.troubleshooting\u002F05.integration-not-connecting",{"title":688,"path":689,"stem":690},"Tests failing","\u002Fen\u002Ftroubleshooting\u002Ftests-failing","en\u002F16.troubleshooting\u002F06.tests-failing",{"title":692,"path":693,"stem":694,"children":695,"page":704},"Legal","\u002Fen\u002Flegal","en\u002F17.legal",[696,700],{"title":697,"path":698,"stem":699},"Privacy Policy","\u002Fen\u002Flegal\u002Fprivacy","en\u002F17.legal\u002F01.privacy",{"title":701,"path":702,"stem":703},"Terms and Conditions","\u002Fen\u002Flegal\u002Fterms","en\u002F17.legal\u002F02.terms",false,{"id":706,"title":605,"body":707,"description":2798,"extension":2799,"links":2800,"meta":2801,"navigation":2802,"path":606,"seo":2803,"stem":607,"__hash__":2804},"docs_en\u002Fen\u002F14.telephony\u002F08.webhooks.md",{"type":708,"value":709,"toc":2781},"minimark",[710,719,815,832,837,885,892,895,898,905,934,939,1151,1219,1223,1230,1356,1400,1404,1411,1414,1418,1737,1742,1745,1761,2383,2465,2475,2479,2494,2498,2544,2547,2553,2576,2581,2584,2587,2595,2614,2626,2630,2704,2707,2711,2777],[711,712,713,714,718],"p",{},"Each agent can have two webhooks, under ",[715,716,717],"strong",{},"Publicação → Telefone"," (publish → phone):",[720,721,722,737],"table",{},[723,724,725],"thead",{},[726,727,728,731,734],"tr",{},[729,730],"th",{},[729,732,733],{},"Inbound Webhook",[729,735,736],{},"Data Webhook",[738,739,740,752,766,777,793,804],"tbody",{},[726,741,742,746,749],{},[743,744,745],"td",{},"When",[743,747,748],{},"When a call reaches the agent, before it speaks",[743,750,751],{},"When the call ends, after post-call processing",[726,753,754,756,763],{},[743,755,258],{},[743,757,758,759,762],{},"Inbound, by phone or WhatsApp (",[715,760,761],{},"Inbound"," agents only)",[743,764,765],{},"Inbound and outbound, by phone or WhatsApp, plus public link and widget calls",[726,767,768,771,774],{},[743,769,770],{},"Your system",[743,772,773],{},"Answers with facts about the caller, which the agent uses in the conversation",[743,775,776],{},"Stores the transcript, extracted data, evaluations and actions",[726,778,779,782,788],{},[743,780,781],{},"Event",[743,783,784],{},[785,786,787],"code",{},"call.inbound",[743,789,790],{},[785,791,792],{},"call.completed",[726,794,795,798,801],{},[743,796,797],{},"Response time",[743,799,800],{},"Up to 5 seconds",[743,802,803],{},"Up to 10 seconds",[726,805,806,809,812],{},[743,807,808],{},"Retries",[743,810,811],{},"None: the call does not wait",[743,813,814],{},"Up to 3 attempts",[711,816,817,818,821,822,825,826,831],{},"Both requests are JSON ",[785,819,820],{},"POST","s and are ",[715,823,824],{},"signed"," with the agent's secret (see ",[827,828,830],"a",{"href":829},"#verify-the-signature","Verify the signature",").",[833,834,836],"h2",{"id":835},"set-up","Set up",[838,839,840,848,865,868,879],"ol",{},[841,842,843,844,847],"li",{},"Open the agent and click ",[715,845,846],{},"Publicação"," (publish).",[841,849,850,851,854,855,857,858,860,861,864],{},"In the ",[715,852,853],{},"Telefone"," (phone) tab, enter the URL under ",[715,856,733],{}," and\u002For ",[715,859,736],{},". The URL must start with ",[785,862,863],{},"https:\u002F\u002F"," and be a public address.",[841,866,867],{},"Click outside the field or press Enter to save.",[841,869,870,871,874,875,831],{},"Click ",[715,872,873],{},"Inicializar"," (initialize) to send a test request to the URL (see ",[827,876,878],{"href":877},"#test-with-inicializar","Test with Inicializar",[841,880,881,884],{},[715,882,883],{},"Publish"," the agent. Like the rest of the call settings, the webhooks apply from the published version.",[711,886,887,888,891],{},"To stop using a webhook, clear the URL (the ",[715,889,890],{},"×"," button) and publish again.",[711,893,894],{},"Anyone who can edit the agent (owners, admins and members) can change the webhooks and see the signing secret.",[833,896,733],{"id":897},"inbound-webhook",[711,899,900,901,904],{},"When an inbound call reaches the agent, Diska sends it to the Inbound Webhook ",[715,902,903],{},"before the agent speaks",". The answer can carry:",[906,907,908,919],"ul",{},[841,909,910,915,916,831],{},[715,911,912],{},[785,913,914],{},"variables",": facts about the caller (name, plan, balance, last order…). The agent receives them as facts about this call and uses them in the conversation. In a flow-mode agent they are available as variables (",[785,917,918],{},"{{nome}}",[841,920,921,926,927,930,931,933],{},[715,922,923],{},[785,924,925],{},"metadata",": your system's references (the customer's CRM ID, a session ID…). The agent does not see them; they come back in the ",[827,928,736],{"href":929},"#data-webhook",", in the ",[785,932,925],{}," field.",[935,936,938],"h3",{"id":937},"request","Request",[940,941,946],"pre",{"className":942,"code":943,"language":944,"meta":945,"style":945},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"event\": \"call.inbound\",\n  \"test\": false,\n  \"agent_id\": \"61e5f9d7-06eb-43ad-a8a5-056ff7b448fd\",\n  \"organization_id\": \"0ba43fdf-…\",\n  \"channel\": \"phone\",\n  \"direction\": \"inbound\",\n  \"from_number\": \"+244923000001\",\n  \"to_number\": \"+244959092450\",\n  \"created_at\": \"2026-11-08T10:15:02.418Z\"\n}\n","json","",[785,947,948,957,984,999,1020,1041,1062,1083,1104,1125,1145],{"__ignoreMap":945},[949,950,953],"span",{"class":951,"line":952},"line",1,[949,954,956],{"class":955},"sMK4o","{\n",[949,958,960,963,967,970,973,976,979,981],{"class":951,"line":959},2,[949,961,962],{"class":955},"  \"",[949,964,966],{"class":965},"spNyl","event",[949,968,969],{"class":955},"\"",[949,971,972],{"class":955},":",[949,974,975],{"class":955}," \"",[949,977,787],{"class":978},"sfazB",[949,980,969],{"class":955},[949,982,983],{"class":955},",\n",[949,985,987,989,992,994,996],{"class":951,"line":986},3,[949,988,962],{"class":955},[949,990,991],{"class":965},"test",[949,993,969],{"class":955},[949,995,972],{"class":955},[949,997,998],{"class":955}," false,\n",[949,1000,1002,1004,1007,1009,1011,1013,1016,1018],{"class":951,"line":1001},4,[949,1003,962],{"class":955},[949,1005,1006],{"class":965},"agent_id",[949,1008,969],{"class":955},[949,1010,972],{"class":955},[949,1012,975],{"class":955},[949,1014,1015],{"class":978},"61e5f9d7-06eb-43ad-a8a5-056ff7b448fd",[949,1017,969],{"class":955},[949,1019,983],{"class":955},[949,1021,1023,1025,1028,1030,1032,1034,1037,1039],{"class":951,"line":1022},5,[949,1024,962],{"class":955},[949,1026,1027],{"class":965},"organization_id",[949,1029,969],{"class":955},[949,1031,972],{"class":955},[949,1033,975],{"class":955},[949,1035,1036],{"class":978},"0ba43fdf-…",[949,1038,969],{"class":955},[949,1040,983],{"class":955},[949,1042,1044,1046,1049,1051,1053,1055,1058,1060],{"class":951,"line":1043},6,[949,1045,962],{"class":955},[949,1047,1048],{"class":965},"channel",[949,1050,969],{"class":955},[949,1052,972],{"class":955},[949,1054,975],{"class":955},[949,1056,1057],{"class":978},"phone",[949,1059,969],{"class":955},[949,1061,983],{"class":955},[949,1063,1065,1067,1070,1072,1074,1076,1079,1081],{"class":951,"line":1064},7,[949,1066,962],{"class":955},[949,1068,1069],{"class":965},"direction",[949,1071,969],{"class":955},[949,1073,972],{"class":955},[949,1075,975],{"class":955},[949,1077,1078],{"class":978},"inbound",[949,1080,969],{"class":955},[949,1082,983],{"class":955},[949,1084,1086,1088,1091,1093,1095,1097,1100,1102],{"class":951,"line":1085},8,[949,1087,962],{"class":955},[949,1089,1090],{"class":965},"from_number",[949,1092,969],{"class":955},[949,1094,972],{"class":955},[949,1096,975],{"class":955},[949,1098,1099],{"class":978},"+244923000001",[949,1101,969],{"class":955},[949,1103,983],{"class":955},[949,1105,1107,1109,1112,1114,1116,1118,1121,1123],{"class":951,"line":1106},9,[949,1108,962],{"class":955},[949,1110,1111],{"class":965},"to_number",[949,1113,969],{"class":955},[949,1115,972],{"class":955},[949,1117,975],{"class":955},[949,1119,1120],{"class":978},"+244959092450",[949,1122,969],{"class":955},[949,1124,983],{"class":955},[949,1126,1128,1130,1133,1135,1137,1139,1142],{"class":951,"line":1127},10,[949,1129,962],{"class":955},[949,1131,1132],{"class":965},"created_at",[949,1134,969],{"class":955},[949,1136,972],{"class":955},[949,1138,975],{"class":955},[949,1140,1141],{"class":978},"2026-11-08T10:15:02.418Z",[949,1143,1144],{"class":955},"\"\n",[949,1146,1148],{"class":951,"line":1147},11,[949,1149,1150],{"class":955},"}\n",[720,1152,1153,1163],{},[723,1154,1155],{},[726,1156,1157,1160],{},[729,1158,1159],{},"Field",[729,1161,1162],{},"Description",[738,1164,1165,1179,1192,1204],{},[726,1166,1167,1171],{},[743,1168,1169],{},[785,1170,1048],{},[743,1172,1173,1175,1176],{},[785,1174,1057],{}," (DISKA number or SIP trunk) or ",[785,1177,1178],{},"whatsapp",[726,1180,1181,1185],{},[743,1182,1183],{},[785,1184,1090],{},[743,1186,1187,1188,1191],{},"The caller's number, as the network delivered it. May be ",[785,1189,1190],{},"null"," if the caller hides their number.",[726,1193,1194,1198],{},[743,1195,1196],{},[785,1197,1111],{},[743,1199,1200,1201,1203],{},"The agent's number. On a WhatsApp call it is ",[785,1202,1190],{},".",[726,1205,1206,1210],{},[743,1207,1208],{},[785,1209,991],{},[743,1211,1212,1215,1216,1218],{},[785,1213,1214],{},"true"," only on ",[715,1217,873],{}," requests",[935,1220,1222],{"id":1221},"response","Response",[711,1224,1225,1226,1229],{},"Answer ",[785,1227,1228],{},"200"," with JSON:",[940,1231,1233],{"className":942,"code":1232,"language":944,"meta":945,"style":945},"{\n  \"variables\": {\n    \"nome\": \"Ana Silva\",\n    \"plano\": \"Gold\",\n    \"saldo\": \"12 500 Kz\"\n  },\n  \"metadata\": {\n    \"crm_id\": \"CL-48213\"\n  }\n}\n",[785,1234,1235,1239,1252,1274,1294,1312,1317,1329,1347,1352],{"__ignoreMap":945},[949,1236,1237],{"class":951,"line":952},[949,1238,956],{"class":955},[949,1240,1241,1243,1245,1247,1249],{"class":951,"line":959},[949,1242,962],{"class":955},[949,1244,914],{"class":965},[949,1246,969],{"class":955},[949,1248,972],{"class":955},[949,1250,1251],{"class":955}," {\n",[949,1253,1254,1257,1261,1263,1265,1267,1270,1272],{"class":951,"line":986},[949,1255,1256],{"class":955},"    \"",[949,1258,1260],{"class":1259},"sBMFI","nome",[949,1262,969],{"class":955},[949,1264,972],{"class":955},[949,1266,975],{"class":955},[949,1268,1269],{"class":978},"Ana Silva",[949,1271,969],{"class":955},[949,1273,983],{"class":955},[949,1275,1276,1278,1281,1283,1285,1287,1290,1292],{"class":951,"line":1001},[949,1277,1256],{"class":955},[949,1279,1280],{"class":1259},"plano",[949,1282,969],{"class":955},[949,1284,972],{"class":955},[949,1286,975],{"class":955},[949,1288,1289],{"class":978},"Gold",[949,1291,969],{"class":955},[949,1293,983],{"class":955},[949,1295,1296,1298,1301,1303,1305,1307,1310],{"class":951,"line":1022},[949,1297,1256],{"class":955},[949,1299,1300],{"class":1259},"saldo",[949,1302,969],{"class":955},[949,1304,972],{"class":955},[949,1306,975],{"class":955},[949,1308,1309],{"class":978},"12 500 Kz",[949,1311,1144],{"class":955},[949,1313,1314],{"class":951,"line":1043},[949,1315,1316],{"class":955},"  },\n",[949,1318,1319,1321,1323,1325,1327],{"class":951,"line":1064},[949,1320,962],{"class":955},[949,1322,925],{"class":965},[949,1324,969],{"class":955},[949,1326,972],{"class":955},[949,1328,1251],{"class":955},[949,1330,1331,1333,1336,1338,1340,1342,1345],{"class":951,"line":1085},[949,1332,1256],{"class":955},[949,1334,1335],{"class":1259},"crm_id",[949,1337,969],{"class":955},[949,1339,972],{"class":955},[949,1341,975],{"class":955},[949,1343,1344],{"class":978},"CL-48213",[949,1346,1144],{"class":955},[949,1348,1349],{"class":951,"line":1106},[949,1350,1351],{"class":955},"  }\n",[949,1353,1354],{"class":951,"line":1127},[949,1355,1150],{"class":955},[906,1357,1358,1368,1371,1378,1383,1393],{},[841,1359,1360,1361,1364,1365,831],{},"Variable names are normalized to lowercase, without accents or spaces (",[785,1362,1363],{},"Nome do cliente"," → ",[785,1366,1367],{},"nome_do_cliente",[841,1369,1370],{},"At most 20 variables, up to 200 characters each. Values are kept on one line.",[841,1372,1373,1374,1377],{},"A variable whose value reads like an instruction (for example \"ignore the previous instructions\") is dropped. The agent receives variables as ",[715,1375,1376],{},"facts",", never as orders.",[841,1379,1380,1382],{},[785,1381,925],{},": up to 20 pairs, 500 characters per value.",[841,1384,1385,1386,1388,1389,1392],{},"A ",[785,1387,1228],{}," or ",[785,1390,1391],{},"204"," with no body is valid: the agent answers without extra facts.",[841,1394,1395,1396,1399],{},"We also accept ",[785,1397,1398],{},"{\"call_inbound\": {\"custom_variables\": {…}, \"metadata\": {…}}}",", for integrations moving from another platform.",[935,1401,1403],{"id":1402},"if-your-system-does-not-answer","If your system does not answer",[711,1405,1406,1407,1410],{},"The Inbound Webhook ",[715,1408,1409],{},"never refuses a call",". If your system takes longer than 5 seconds, answers with an error, a redirect or something that is not JSON, the agent answers anyway, without those facts. There are no retries: the caller is waiting.",[711,1412,1413],{},"Answer fast: every second your system takes is another second of ringing for the caller.",[935,1415,1417],{"id":1416},"example-receiver","Example receiver",[1419,1420,1421,1507],"code-group",{},[940,1422,1427],{"className":1423,"code":1424,"filename":1425,"language":1426,"meta":945,"style":945},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from fastapi import FastAPI, Request\n\napp = FastAPI()\n\n\n@app.post(\"\u002Fdiska\u002Finbound\")\nasync def inbound(request: Request):\n    call = await request.json()\n    customer = await find_customer(call[\"from_number\"])  # your CRM\n    if customer is None:\n        return {}\n    return {\n        \"variables\": {\"nome\": customer.name, \"plano\": customer.plan},\n        \"metadata\": {\"crm_id\": customer.id},\n    }\n","Python (FastAPI)","python",[785,1428,1429,1434,1440,1445,1449,1453,1458,1463,1468,1473,1478,1483,1489,1495,1501],{"__ignoreMap":945},[949,1430,1431],{"class":951,"line":952},[949,1432,1433],{},"from fastapi import FastAPI, Request\n",[949,1435,1436],{"class":951,"line":959},[949,1437,1439],{"emptyLinePlaceholder":1438},true,"\n",[949,1441,1442],{"class":951,"line":986},[949,1443,1444],{},"app = FastAPI()\n",[949,1446,1447],{"class":951,"line":1001},[949,1448,1439],{"emptyLinePlaceholder":1438},[949,1450,1451],{"class":951,"line":1022},[949,1452,1439],{"emptyLinePlaceholder":1438},[949,1454,1455],{"class":951,"line":1043},[949,1456,1457],{},"@app.post(\"\u002Fdiska\u002Finbound\")\n",[949,1459,1460],{"class":951,"line":1064},[949,1461,1462],{},"async def inbound(request: Request):\n",[949,1464,1465],{"class":951,"line":1085},[949,1466,1467],{},"    call = await request.json()\n",[949,1469,1470],{"class":951,"line":1106},[949,1471,1472],{},"    customer = await find_customer(call[\"from_number\"])  # your CRM\n",[949,1474,1475],{"class":951,"line":1127},[949,1476,1477],{},"    if customer is None:\n",[949,1479,1480],{"class":951,"line":1147},[949,1481,1482],{},"        return {}\n",[949,1484,1486],{"class":951,"line":1485},12,[949,1487,1488],{},"    return {\n",[949,1490,1492],{"class":951,"line":1491},13,[949,1493,1494],{},"        \"variables\": {\"nome\": customer.name, \"plano\": customer.plan},\n",[949,1496,1498],{"class":951,"line":1497},14,[949,1499,1500],{},"        \"metadata\": {\"crm_id\": customer.id},\n",[949,1502,1504],{"class":951,"line":1503},15,[949,1505,1506],{},"    }\n",[940,1508,1513],{"className":1509,"code":1510,"filename":1511,"language":1512,"meta":945,"style":945},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","app.post('\u002Fdiska\u002Finbound', express.json(), async (req, res) => {\n  const customer = await findCustomer(req.body.from_number) \u002F\u002F your CRM\n  if (!customer) return res.json({})\n  res.json({\n    variables: { nome: customer.name, plano: customer.plan },\n    metadata: { crm_id: customer.id }\n  })\n})\n","Node.js (Express)","js",[785,1514,1515,1576,1615,1647,1660,1699,1723,1730],{"__ignoreMap":945},[949,1516,1517,1521,1523,1527,1530,1533,1536,1538,1541,1544,1546,1548,1551,1553,1556,1559,1563,1565,1568,1571,1574],{"class":951,"line":952},[949,1518,1520],{"class":1519},"sTEyZ","app",[949,1522,1203],{"class":955},[949,1524,1526],{"class":1525},"s2Zo4","post",[949,1528,1529],{"class":1519},"(",[949,1531,1532],{"class":955},"'",[949,1534,1535],{"class":978},"\u002Fdiska\u002Finbound",[949,1537,1532],{"class":955},[949,1539,1540],{"class":955},",",[949,1542,1543],{"class":1519}," express",[949,1545,1203],{"class":955},[949,1547,944],{"class":1525},[949,1549,1550],{"class":1519},"()",[949,1552,1540],{"class":955},[949,1554,1555],{"class":965}," async",[949,1557,1558],{"class":955}," (",[949,1560,1562],{"class":1561},"sHdIc","req",[949,1564,1540],{"class":955},[949,1566,1567],{"class":1561}," res",[949,1569,1570],{"class":955},")",[949,1572,1573],{"class":965}," =>",[949,1575,1251],{"class":955},[949,1577,1578,1581,1584,1587,1591,1594,1597,1599,1601,1604,1606,1608,1611],{"class":951,"line":959},[949,1579,1580],{"class":965},"  const",[949,1582,1583],{"class":1519}," customer",[949,1585,1586],{"class":955}," =",[949,1588,1590],{"class":1589},"s7zQu"," await",[949,1592,1593],{"class":1525}," findCustomer",[949,1595,1529],{"class":1596},"swJcz",[949,1598,1562],{"class":1519},[949,1600,1203],{"class":955},[949,1602,1603],{"class":1519},"body",[949,1605,1203],{"class":955},[949,1607,1090],{"class":1519},[949,1609,1610],{"class":1596},") ",[949,1612,1614],{"class":1613},"sHwdD","\u002F\u002F your CRM\n",[949,1616,1617,1620,1622,1625,1628,1630,1633,1635,1637,1639,1641,1644],{"class":951,"line":986},[949,1618,1619],{"class":1589},"  if",[949,1621,1558],{"class":1596},[949,1623,1624],{"class":955},"!",[949,1626,1627],{"class":1519},"customer",[949,1629,1610],{"class":1596},[949,1631,1632],{"class":1589},"return",[949,1634,1567],{"class":1519},[949,1636,1203],{"class":955},[949,1638,944],{"class":1525},[949,1640,1529],{"class":1596},[949,1642,1643],{"class":955},"{}",[949,1645,1646],{"class":1596},")\n",[949,1648,1649,1652,1654,1656,1658],{"class":951,"line":1001},[949,1650,1651],{"class":1519},"  res",[949,1653,1203],{"class":955},[949,1655,944],{"class":1525},[949,1657,1529],{"class":1596},[949,1659,956],{"class":955},[949,1661,1662,1665,1667,1670,1673,1675,1677,1679,1682,1684,1687,1689,1691,1693,1696],{"class":951,"line":1022},[949,1663,1664],{"class":1596},"    variables",[949,1666,972],{"class":955},[949,1668,1669],{"class":955}," {",[949,1671,1672],{"class":1596}," nome",[949,1674,972],{"class":955},[949,1676,1583],{"class":1519},[949,1678,1203],{"class":955},[949,1680,1681],{"class":1519},"name",[949,1683,1540],{"class":955},[949,1685,1686],{"class":1596}," plano",[949,1688,972],{"class":955},[949,1690,1583],{"class":1519},[949,1692,1203],{"class":955},[949,1694,1695],{"class":1519},"plan",[949,1697,1698],{"class":955}," },\n",[949,1700,1701,1704,1706,1708,1711,1713,1715,1717,1720],{"class":951,"line":1043},[949,1702,1703],{"class":1596},"    metadata",[949,1705,972],{"class":955},[949,1707,1669],{"class":955},[949,1709,1710],{"class":1596}," crm_id",[949,1712,972],{"class":955},[949,1714,1583],{"class":1519},[949,1716,1203],{"class":955},[949,1718,1719],{"class":1519},"id",[949,1721,1722],{"class":955}," }\n",[949,1724,1725,1728],{"class":951,"line":1064},[949,1726,1727],{"class":955},"  }",[949,1729,1646],{"class":1596},[949,1731,1732,1735],{"class":951,"line":1085},[949,1733,1734],{"class":955},"}",[949,1736,1646],{"class":1519},[711,1738,1739,1740,831],{},"Verify the signature before answering with customer data (see ",[827,1741,830],{"href":829},[833,1743,736],{"id":1744},"data-webhook",[711,1746,1747,1748,1750,1751,1754,1755,1758,1759,1203],{},"When a call ends and post-call processing finishes (transcript, data extraction, evaluations, SMS and actions), Diska sends the data to the Data Webhook. The body is the same as the ",[785,1749,792],{}," event of ",[827,1752,1753],{"href":311},"organization webhooks",", with two more fields: ",[785,1756,1757],{},"call"," and ",[785,1760,925],{},[940,1762,1764],{"className":942,"code":1763,"language":944,"meta":945,"style":945},"{\n  \"event\": \"call.completed\",\n  \"test\": false,\n  \"call_id\": \"8f1c2d3e-…\",\n  \"session_id\": \"sess_…\",\n  \"agent_id\": \"61e5f9d7-06eb-43ad-a8a5-056ff7b448fd\",\n  \"organization_id\": \"0ba43fdf-…\",\n  \"ended_at\": \"2026-11-08T10:18:44.120Z\",\n  \"caller_contact\": \"+244923000001\",\n  \"extracted_data\": { \"nome\": \"Ana Silva\", \"motivo\": \"Alterar o plano\" },\n  \"evaluations\": [],\n  \"sentiment\": \"positive\",\n  \"post_call_sms\": [],\n  \"custom_actions\": [],\n  \"executed_actions\": [],\n  \"transcript\": [\n    { \"role\": \"assistant\", \"content\": \"Olá Ana, em que posso ajudar?\" },\n    { \"role\": \"user\", \"content\": \"Queria mudar para o plano Gold.\" }\n  ],\n  \"call\": {\n    \"id\": \"8f1c2d3e-…\",\n    \"channel\": \"phone\",\n    \"direction\": \"inbound\",\n    \"status\": \"completed\",\n    \"end_reason\": \"user_requested_end\",\n    \"started_at\": \"2026-11-08T10:15:03.002Z\",\n    \"ended_at\": \"2026-11-08T10:18:41.870Z\",\n    \"duration_seconds\": 219,\n    \"from_number\": \"+244923000001\",\n    \"to_number\": \"+244959092450\"\n  },\n  \"metadata\": { \"crm_id\": \"CL-48213\" }\n}\n",[785,1765,1766,1770,1788,1800,1820,1840,1858,1876,1896,1915,1962,1976,1996,2009,2022,2035,2050,2092,2131,2137,2150,2169,2188,2207,2228,2249,2270,2290,2308,2327,2344,2349,2378],{"__ignoreMap":945},[949,1767,1768],{"class":951,"line":952},[949,1769,956],{"class":955},[949,1771,1772,1774,1776,1778,1780,1782,1784,1786],{"class":951,"line":959},[949,1773,962],{"class":955},[949,1775,966],{"class":965},[949,1777,969],{"class":955},[949,1779,972],{"class":955},[949,1781,975],{"class":955},[949,1783,792],{"class":978},[949,1785,969],{"class":955},[949,1787,983],{"class":955},[949,1789,1790,1792,1794,1796,1798],{"class":951,"line":986},[949,1791,962],{"class":955},[949,1793,991],{"class":965},[949,1795,969],{"class":955},[949,1797,972],{"class":955},[949,1799,998],{"class":955},[949,1801,1802,1804,1807,1809,1811,1813,1816,1818],{"class":951,"line":1001},[949,1803,962],{"class":955},[949,1805,1806],{"class":965},"call_id",[949,1808,969],{"class":955},[949,1810,972],{"class":955},[949,1812,975],{"class":955},[949,1814,1815],{"class":978},"8f1c2d3e-…",[949,1817,969],{"class":955},[949,1819,983],{"class":955},[949,1821,1822,1824,1827,1829,1831,1833,1836,1838],{"class":951,"line":1022},[949,1823,962],{"class":955},[949,1825,1826],{"class":965},"session_id",[949,1828,969],{"class":955},[949,1830,972],{"class":955},[949,1832,975],{"class":955},[949,1834,1835],{"class":978},"sess_…",[949,1837,969],{"class":955},[949,1839,983],{"class":955},[949,1841,1842,1844,1846,1848,1850,1852,1854,1856],{"class":951,"line":1043},[949,1843,962],{"class":955},[949,1845,1006],{"class":965},[949,1847,969],{"class":955},[949,1849,972],{"class":955},[949,1851,975],{"class":955},[949,1853,1015],{"class":978},[949,1855,969],{"class":955},[949,1857,983],{"class":955},[949,1859,1860,1862,1864,1866,1868,1870,1872,1874],{"class":951,"line":1064},[949,1861,962],{"class":955},[949,1863,1027],{"class":965},[949,1865,969],{"class":955},[949,1867,972],{"class":955},[949,1869,975],{"class":955},[949,1871,1036],{"class":978},[949,1873,969],{"class":955},[949,1875,983],{"class":955},[949,1877,1878,1880,1883,1885,1887,1889,1892,1894],{"class":951,"line":1085},[949,1879,962],{"class":955},[949,1881,1882],{"class":965},"ended_at",[949,1884,969],{"class":955},[949,1886,972],{"class":955},[949,1888,975],{"class":955},[949,1890,1891],{"class":978},"2026-11-08T10:18:44.120Z",[949,1893,969],{"class":955},[949,1895,983],{"class":955},[949,1897,1898,1900,1903,1905,1907,1909,1911,1913],{"class":951,"line":1106},[949,1899,962],{"class":955},[949,1901,1902],{"class":965},"caller_contact",[949,1904,969],{"class":955},[949,1906,972],{"class":955},[949,1908,975],{"class":955},[949,1910,1099],{"class":978},[949,1912,969],{"class":955},[949,1914,983],{"class":955},[949,1916,1917,1919,1922,1924,1926,1928,1930,1932,1934,1936,1938,1940,1942,1944,1946,1949,1951,1953,1955,1958,1960],{"class":951,"line":1127},[949,1918,962],{"class":955},[949,1920,1921],{"class":965},"extracted_data",[949,1923,969],{"class":955},[949,1925,972],{"class":955},[949,1927,1669],{"class":955},[949,1929,975],{"class":955},[949,1931,1260],{"class":1259},[949,1933,969],{"class":955},[949,1935,972],{"class":955},[949,1937,975],{"class":955},[949,1939,1269],{"class":978},[949,1941,969],{"class":955},[949,1943,1540],{"class":955},[949,1945,975],{"class":955},[949,1947,1948],{"class":1259},"motivo",[949,1950,969],{"class":955},[949,1952,972],{"class":955},[949,1954,975],{"class":955},[949,1956,1957],{"class":978},"Alterar o plano",[949,1959,969],{"class":955},[949,1961,1698],{"class":955},[949,1963,1964,1966,1969,1971,1973],{"class":951,"line":1147},[949,1965,962],{"class":955},[949,1967,1968],{"class":965},"evaluations",[949,1970,969],{"class":955},[949,1972,972],{"class":955},[949,1974,1975],{"class":955}," [],\n",[949,1977,1978,1980,1983,1985,1987,1989,1992,1994],{"class":951,"line":1485},[949,1979,962],{"class":955},[949,1981,1982],{"class":965},"sentiment",[949,1984,969],{"class":955},[949,1986,972],{"class":955},[949,1988,975],{"class":955},[949,1990,1991],{"class":978},"positive",[949,1993,969],{"class":955},[949,1995,983],{"class":955},[949,1997,1998,2000,2003,2005,2007],{"class":951,"line":1491},[949,1999,962],{"class":955},[949,2001,2002],{"class":965},"post_call_sms",[949,2004,969],{"class":955},[949,2006,972],{"class":955},[949,2008,1975],{"class":955},[949,2010,2011,2013,2016,2018,2020],{"class":951,"line":1497},[949,2012,962],{"class":955},[949,2014,2015],{"class":965},"custom_actions",[949,2017,969],{"class":955},[949,2019,972],{"class":955},[949,2021,1975],{"class":955},[949,2023,2024,2026,2029,2031,2033],{"class":951,"line":1503},[949,2025,962],{"class":955},[949,2027,2028],{"class":965},"executed_actions",[949,2030,969],{"class":955},[949,2032,972],{"class":955},[949,2034,1975],{"class":955},[949,2036,2038,2040,2043,2045,2047],{"class":951,"line":2037},16,[949,2039,962],{"class":955},[949,2041,2042],{"class":965},"transcript",[949,2044,969],{"class":955},[949,2046,972],{"class":955},[949,2048,2049],{"class":955}," [\n",[949,2051,2053,2056,2058,2061,2063,2065,2067,2070,2072,2074,2076,2079,2081,2083,2085,2088,2090],{"class":951,"line":2052},17,[949,2054,2055],{"class":955},"    {",[949,2057,975],{"class":955},[949,2059,2060],{"class":1259},"role",[949,2062,969],{"class":955},[949,2064,972],{"class":955},[949,2066,975],{"class":955},[949,2068,2069],{"class":978},"assistant",[949,2071,969],{"class":955},[949,2073,1540],{"class":955},[949,2075,975],{"class":955},[949,2077,2078],{"class":1259},"content",[949,2080,969],{"class":955},[949,2082,972],{"class":955},[949,2084,975],{"class":955},[949,2086,2087],{"class":978},"Olá Ana, em que posso ajudar?",[949,2089,969],{"class":955},[949,2091,1698],{"class":955},[949,2093,2095,2097,2099,2101,2103,2105,2107,2110,2112,2114,2116,2118,2120,2122,2124,2127,2129],{"class":951,"line":2094},18,[949,2096,2055],{"class":955},[949,2098,975],{"class":955},[949,2100,2060],{"class":1259},[949,2102,969],{"class":955},[949,2104,972],{"class":955},[949,2106,975],{"class":955},[949,2108,2109],{"class":978},"user",[949,2111,969],{"class":955},[949,2113,1540],{"class":955},[949,2115,975],{"class":955},[949,2117,2078],{"class":1259},[949,2119,969],{"class":955},[949,2121,972],{"class":955},[949,2123,975],{"class":955},[949,2125,2126],{"class":978},"Queria mudar para o plano Gold.",[949,2128,969],{"class":955},[949,2130,1722],{"class":955},[949,2132,2134],{"class":951,"line":2133},19,[949,2135,2136],{"class":955},"  ],\n",[949,2138,2140,2142,2144,2146,2148],{"class":951,"line":2139},20,[949,2141,962],{"class":955},[949,2143,1757],{"class":965},[949,2145,969],{"class":955},[949,2147,972],{"class":955},[949,2149,1251],{"class":955},[949,2151,2153,2155,2157,2159,2161,2163,2165,2167],{"class":951,"line":2152},21,[949,2154,1256],{"class":955},[949,2156,1719],{"class":1259},[949,2158,969],{"class":955},[949,2160,972],{"class":955},[949,2162,975],{"class":955},[949,2164,1815],{"class":978},[949,2166,969],{"class":955},[949,2168,983],{"class":955},[949,2170,2172,2174,2176,2178,2180,2182,2184,2186],{"class":951,"line":2171},22,[949,2173,1256],{"class":955},[949,2175,1048],{"class":1259},[949,2177,969],{"class":955},[949,2179,972],{"class":955},[949,2181,975],{"class":955},[949,2183,1057],{"class":978},[949,2185,969],{"class":955},[949,2187,983],{"class":955},[949,2189,2191,2193,2195,2197,2199,2201,2203,2205],{"class":951,"line":2190},23,[949,2192,1256],{"class":955},[949,2194,1069],{"class":1259},[949,2196,969],{"class":955},[949,2198,972],{"class":955},[949,2200,975],{"class":955},[949,2202,1078],{"class":978},[949,2204,969],{"class":955},[949,2206,983],{"class":955},[949,2208,2210,2212,2215,2217,2219,2221,2224,2226],{"class":951,"line":2209},24,[949,2211,1256],{"class":955},[949,2213,2214],{"class":1259},"status",[949,2216,969],{"class":955},[949,2218,972],{"class":955},[949,2220,975],{"class":955},[949,2222,2223],{"class":978},"completed",[949,2225,969],{"class":955},[949,2227,983],{"class":955},[949,2229,2231,2233,2236,2238,2240,2242,2245,2247],{"class":951,"line":2230},25,[949,2232,1256],{"class":955},[949,2234,2235],{"class":1259},"end_reason",[949,2237,969],{"class":955},[949,2239,972],{"class":955},[949,2241,975],{"class":955},[949,2243,2244],{"class":978},"user_requested_end",[949,2246,969],{"class":955},[949,2248,983],{"class":955},[949,2250,2252,2254,2257,2259,2261,2263,2266,2268],{"class":951,"line":2251},26,[949,2253,1256],{"class":955},[949,2255,2256],{"class":1259},"started_at",[949,2258,969],{"class":955},[949,2260,972],{"class":955},[949,2262,975],{"class":955},[949,2264,2265],{"class":978},"2026-11-08T10:15:03.002Z",[949,2267,969],{"class":955},[949,2269,983],{"class":955},[949,2271,2273,2275,2277,2279,2281,2283,2286,2288],{"class":951,"line":2272},27,[949,2274,1256],{"class":955},[949,2276,1882],{"class":1259},[949,2278,969],{"class":955},[949,2280,972],{"class":955},[949,2282,975],{"class":955},[949,2284,2285],{"class":978},"2026-11-08T10:18:41.870Z",[949,2287,969],{"class":955},[949,2289,983],{"class":955},[949,2291,2293,2295,2298,2300,2302,2306],{"class":951,"line":2292},28,[949,2294,1256],{"class":955},[949,2296,2297],{"class":1259},"duration_seconds",[949,2299,969],{"class":955},[949,2301,972],{"class":955},[949,2303,2305],{"class":2304},"sbssI"," 219",[949,2307,983],{"class":955},[949,2309,2311,2313,2315,2317,2319,2321,2323,2325],{"class":951,"line":2310},29,[949,2312,1256],{"class":955},[949,2314,1090],{"class":1259},[949,2316,969],{"class":955},[949,2318,972],{"class":955},[949,2320,975],{"class":955},[949,2322,1099],{"class":978},[949,2324,969],{"class":955},[949,2326,983],{"class":955},[949,2328,2330,2332,2334,2336,2338,2340,2342],{"class":951,"line":2329},30,[949,2331,1256],{"class":955},[949,2333,1111],{"class":1259},[949,2335,969],{"class":955},[949,2337,972],{"class":955},[949,2339,975],{"class":955},[949,2341,1120],{"class":978},[949,2343,1144],{"class":955},[949,2345,2347],{"class":951,"line":2346},31,[949,2348,1316],{"class":955},[949,2350,2352,2354,2356,2358,2360,2362,2364,2366,2368,2370,2372,2374,2376],{"class":951,"line":2351},32,[949,2353,962],{"class":955},[949,2355,925],{"class":965},[949,2357,969],{"class":955},[949,2359,972],{"class":955},[949,2361,1669],{"class":955},[949,2363,975],{"class":955},[949,2365,1335],{"class":1259},[949,2367,969],{"class":955},[949,2369,972],{"class":955},[949,2371,975],{"class":955},[949,2373,1344],{"class":978},[949,2375,969],{"class":955},[949,2377,1722],{"class":955},[949,2379,2381],{"class":951,"line":2380},33,[949,2382,1150],{"class":955},[720,2384,2385,2393],{},[723,2386,2387],{},[726,2388,2389,2391],{},[729,2390,1159],{},[729,2392,1162],{},[738,2394,2395,2411,2423,2432,2441,2453],{},[726,2396,2397,2401],{},[743,2398,2399],{},[785,2400,1806],{},[743,2402,2403,2404,2407,2408,1570],{},"The call's ID in ",[827,2405,2406],{"href":259},"History"," and in the DISKA API (",[785,2409,2410],{},"GET \u002Fv1\u002Fcalls\u002F{id}",[726,2412,2413,2417],{},[743,2414,2415],{},[785,2416,1921],{},[743,2418,2419,2420],{},"The values of the agent's ",[827,2421,2422],{"href":209},"information extractors",[726,2424,2425,2429],{},[743,2426,2427],{},[785,2428,1968],{},[743,2430,2431],{},"The configured post-call evaluations",[726,2433,2434,2438],{},[743,2435,2436],{},[785,2437,2042],{},[743,2439,2440],{},"The conversation, turn by turn",[726,2442,2443,2448],{},[743,2444,2445],{},[785,2446,2447],{},"call.end_reason",[743,2449,2450,2451,1570],{},"The end reason (see ",[827,2452,609],{"href":610},[726,2454,2455,2459],{},[743,2456,2457],{},[785,2458,925],{},[743,2460,2461,2462,2464],{},"What the Inbound Webhook returned in ",[785,2463,925],{}," (empty if none)",[711,2466,2467,2468,2470,2471,2474],{},"With ",[827,2469,98],{"href":99}," on, the transcript and extracted data arrive already masked (for example ",[785,2472,2473],{},"[TELEFONE]","). The caller's line number is kept.",[935,2476,2478],{"id":2477},"which-calls-are-sent","Which calls are sent",[906,2480,2481,2487],{},[841,2482,2483,2486],{},[715,2484,2485],{},"Completed"," calls of published agents: by phone (DISKA number or SIP trunk), WhatsApp, public link and widget, inbound and outbound (including campaigns and DISKA API calls).",[841,2488,2489,2490,2493],{},"Not sent: test calls from the ",[715,2491,2492],{},"Testar"," (test) panel and the Test Center, DISKA API text chats, and calls that failed or were cancelled.",[935,2495,2497],{"id":2496},"responses-and-retries","Responses and retries",[906,2499,2500,2506,2519,2531,2538],{},[841,2501,1225,2502,2505],{},[785,2503,2504],{},"2xx"," within 10 seconds. Queue the event and process it later.",[841,2507,1385,2508,2511,2512,2511,2515,2518],{},[785,2509,2510],{},"5xx",", ",[785,2513,2514],{},"408",[785,2516,2517],{},"429"," or no response is retried, up to 3 attempts, 1 and 2 seconds apart.",[841,2520,1385,2521,2524,2525,2527,2528,2530],{},[785,2522,2523],{},"4xx"," (other than ",[785,2526,2514],{},"\u002F",[785,2529,2517],{},") is not retried: your system refused the request.",[841,2532,2533,2534,2537],{},"Redirects (",[785,2535,2536],{},"3xx",") are not followed.",[841,2539,2540,2543],{},[785,2541,2542],{},"X-Diska-Delivery"," is the same on every attempt for the same call: use it to avoid processing a call twice.",[833,2545,878],{"id":2546},"test-with-inicializar",[711,2548,2549,2550,2552],{},"The ",[715,2551,873],{}," (initialize) button sends a test request to the URL in the field, even before you save it:",[906,2554,2555,2567],{},[841,2556,2557,2559,2560,2562,2563,2566],{},[715,2558,733],{},": sends a ",[785,2561,787],{}," with ",[785,2564,2565],{},"\"test\": true"," and made-up numbers. Diska shows the response code, the time taken, and the variables the agent would receive, or why a variable was dropped.",[841,2568,2569,2559,2571,2562,2573,2575],{},[715,2570,736],{},[785,2572,792],{},[785,2574,2565],{},", a sample conversation and zeroed IDs.",[711,2577,2578,2579,933],{},"Test requests are signed like real ones. To tell tests from real calls, check the ",[785,2580,991],{},[833,2582,830],{"id":2583},"verify-the-signature",[711,2585,2586],{},"Each request carries these headers:",[940,2588,2593],{"className":2589,"code":2591,"language":2592,"meta":945},[2590],"language-text","Content-Type:       application\u002Fjson\nUser-Agent:         Diska-Webhooks\u002F1.0\nX-Diska-Event:      call.inbound | call.completed\nX-Diska-Delivery:   \u003Cdelivery identifier>\nX-Diska-Timestamp:  \u003Cunix seconds>\nX-Diska-Signature:  sha256=\u003Chex>\n","text",[785,2594,2591],{"__ignoreMap":945},[711,2596,2597,2598,2601,2602,2605,2606,2609,2610,2613],{},"The signature is the hex HMAC-SHA256 of the text ",[785,2599,2600],{},"{X-Diska-Timestamp}.{body}"," with the agent's ",[715,2603,2604],{},"signing secret",". You find the secret under ",[715,2607,2608],{},"Publicação → Telefone → Segredo de assinatura"," (signing secret); it starts with ",[785,2611,2612],{},"whsec_",". Each agent has its own; the same secret signs both webhooks.",[711,2615,2616,2617,2620,2621,2625],{},"Compute the signature over the ",[715,2618,2619],{},"raw body",", exactly as received. The code is the same as for organization webhooks: see the Python, Node.js and PHP examples in ",[827,2622,2624],{"href":2623},"\u002Fen\u002Fapi\u002Fwebhooks#verify-the-signature","Webhooks › Verify the signature",". Reject requests older than 5 minutes.",[833,2627,2629],{"id":2628},"agent-or-organization-webhooks","Agent or organization webhooks?",[720,2631,2632,2645],{},[723,2633,2634],{},[726,2635,2636,2638,2640],{},[729,2637],{},[729,2639,605],{},[729,2641,2642],{},[827,2643,2644],{"href":311},"Organization webhooks",[738,2646,2647,2663,2674,2687],{},[726,2648,2649,2652,2657],{},[743,2650,2651],{},"Where it is set up",[743,2653,2654,2656],{},[715,2655,717],{},", per agent",[743,2658,2659,2660,1570],{},"Through the DISKA API (",[785,2661,2662],{},"webhooks:manage",[726,2664,2665,2668,2671],{},[743,2666,2667],{},"Before the call",[743,2669,2670],{},"Yes: Inbound Webhook",[743,2672,2673],{},"No",[726,2675,2676,2679,2682],{},[743,2677,2678],{},"After the call",[743,2680,2681],{},"Data Webhook, for this agent's calls",[743,2683,2684,2686],{},[785,2685,792],{}," for every call in the organization",[726,2688,2689,2692,2698],{},[743,2690,2691],{},"Signature",[743,2693,2694,2695,1570],{},"The agent's secret (",[785,2696,2697],{},"whsec_…",[743,2699,2700,2701,1570],{},"Each endpoint's secret (",[785,2702,2703],{},"dskw_…",[711,2705,2706],{},"You can use both: a completed call is sent to every webhook configured.",[833,2708,2710],{"id":2709},"troubleshooting","Troubleshooting",[720,2712,2713,2723],{},[723,2714,2715],{},[726,2716,2717,2720],{},[729,2718,2719],{},"Symptom",[729,2721,2722],{},"What to check",[738,2724,2725,2736,2746,2761,2769],{},[726,2726,2727,2730],{},[743,2728,2729],{},"The agent does not use the Inbound Webhook's facts",[743,2731,2732,2733,2735],{},"Was the agent published after saving the URL? Use ",[715,2734,873],{}," and check that the variables appear and whether any was dropped.",[726,2737,2738,2743],{},[743,2739,2740,2742],{},[715,2741,873],{}," says \"Sem resposta a tempo\" (no response in time)",[743,2744,2745],{},"Your system takes longer than 5 seconds. Answer first with what you have and do the rest afterwards.",[726,2747,2748,2751],{},[743,2749,2750],{},"\"Este endereço não é público\" (this address is not public)",[743,2752,2753,2754,2757,2758,2760],{},"The URL points to a private address (internal network, ",[785,2755,2756],{},"localhost","). Use a public ",[785,2759,863],{}," address.",[726,2762,2763,2766],{},[743,2764,2765],{},"The Data Webhook does not arrive",[743,2767,2768],{},"Was it a test call? Was the agent published with the URL? Did the call end as completed?",[726,2770,2771,2774],{},[743,2772,2773],{},"The signature does not match",[743,2775,2776],{},"Use the raw body, without re-serializing the JSON, and the right agent's secret.",[2778,2779,2780],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":945,"searchDepth":959,"depth":959,"links":2782},[2783,2784,2790,2794,2795,2796,2797],{"id":835,"depth":959,"text":836},{"id":897,"depth":959,"text":733,"children":2785},[2786,2787,2788,2789],{"id":937,"depth":986,"text":938},{"id":1221,"depth":986,"text":1222},{"id":1402,"depth":986,"text":1403},{"id":1416,"depth":986,"text":1417},{"id":1744,"depth":959,"text":736,"children":2791},[2792,2793],{"id":2477,"depth":986,"text":2478},{"id":2496,"depth":986,"text":2497},{"id":2546,"depth":959,"text":878},{"id":2583,"depth":959,"text":830},{"id":2628,"depth":959,"text":2629},{"id":2709,"depth":959,"text":2710},"Inbound Webhook and Data Webhook — your system receives each call before the agent answers, gives it facts about the caller, and receives the call's data when it ends.","md",null,{},{"title":605},{"title":605,"description":2798},"6M_clnk3ej8w7OK9lKeMnLwxug_hv8PD0f1CKmHvESA",[2806,2808],{"title":601,"path":602,"stem":603,"description":2807,"children":-1},"What happens on the line when the agent hands a call to a person — destinations by number type, caller ID, accepted SIP URIs, costs and troubleshooting.",{"title":609,"path":610,"stem":611,"description":2809,"children":-1},"What each end reason of a phone call in History means, why a call may never reach the agent and what to do in each case.",1795253709169]