[{"data":1,"prerenderedAt":2290},["ShallowReactive",2],{"navigation_docs_en":3,"-en-api-reference-chats-create-chat":705,"-en-api-reference-chats-create-chat-surround":2285},[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":447,"body":707,"description":2279,"extension":2280,"links":2281,"meta":2282,"navigation":1097,"path":448,"seo":2283,"stem":449,"__hash__":2284},"docs_en\u002Fen\u002F12.api\u002F07.reference\u002F06.chats\u002F01.create-chat.md",{"type":708,"value":709,"toc":2271},"minimark",[710,727,738,757,762,767,853,999,1003,1708,1712,1719,1725,1732,1927,2184,2188,2245,2267],[711,712,717],"pre",{"className":713,"code":714,"language":715,"meta":716,"style":716},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","POST https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats\n","http","",[718,719,720],"code",{"__ignoreMap":716},[721,722,725],"span",{"class":723,"line":724},"line",1,[721,726,714],{},[728,729,730,734,735],"p",{},[731,732,733],"strong",{},"Scope:"," ",[718,736,737],{},"chats:write",[728,739,740,741,744,745,748,749,752,753,756],{},"If the agent speaks first and has a greeting, the response already carries that message. The chat also shows in ",[718,742,743],{},"GET \u002Fv1\u002Fcalls",", with channel ",[718,746,747],{},"web_chat",". ",[718,750,751],{},"metadata"," is yours: it is stored and returned, but the agent never sees it. Send ",[718,754,755],{},"Idempotency-Key"," to retry the request without opening two chats.",[758,759,761],"h2",{"id":760},"request-body","Request body",[728,763,764],{},[718,765,766],{},"application\u002Fjson",[768,769,770,789],"table",{},[771,772,773],"thead",{},[774,775,776,780,783,786],"tr",{},[777,778,779],"th",{},"Field",[777,781,782],{},"Type",[777,784,785],{},"Required",[777,787,788],{},"Description",[790,791,792,809,825,838],"tbody",{},[774,793,794,800,803,806],{},[795,796,797],"td",{},[718,798,799],{},"agent_id",[795,801,802],{},"string",[795,804,805],{},"Yes",[795,807,808],{},"Published prompt-mode agent. Up to 64 characters.",[774,810,811,816,819,822],{},[795,812,813],{},[718,814,815],{},"variables",[795,817,818],{},"object",[795,820,821],{},"No",[795,823,824],{},"Chat variables (up to 20), as on calls.",[774,826,827,831,833,835],{},[795,828,829],{},[718,830,751],{},[795,832,818],{},[795,834,821],{},[795,836,837],{},"Up to 20 text → text pairs (500 characters per value), for you only.",[774,839,840,845,848,850],{},[795,841,842],{},[718,843,844],{},"contact",[795,846,847],{},"string | null",[795,849,821],{},[795,851,852],{},"Who is chatting: phone, email or your own ID. Up to 120 characters.",[711,854,858],{"className":855,"code":856,"language":857,"meta":716,"style":716},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"agent_id\": \"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\n  \"contact\": \"+244923000000\",\n  \"variables\": {\n    \"nome\": \"Ana\"\n  },\n  \"metadata\": {\n    \"crm_ticket\": \"T-1042\"\n  }\n}\n","json",[718,859,860,866,893,913,927,949,955,968,987,993],{"__ignoreMap":716},[721,861,862],{"class":723,"line":724},[721,863,865],{"class":864},"sMK4o","{\n",[721,867,869,872,875,878,881,884,888,890],{"class":723,"line":868},2,[721,870,871],{"class":864},"  \"",[721,873,799],{"class":874},"spNyl",[721,876,877],{"class":864},"\"",[721,879,880],{"class":864},":",[721,882,883],{"class":864}," \"",[721,885,887],{"class":886},"sfazB","3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",[721,889,877],{"class":864},[721,891,892],{"class":864},",\n",[721,894,896,898,900,902,904,906,909,911],{"class":723,"line":895},3,[721,897,871],{"class":864},[721,899,844],{"class":874},[721,901,877],{"class":864},[721,903,880],{"class":864},[721,905,883],{"class":864},[721,907,908],{"class":886},"+244923000000",[721,910,877],{"class":864},[721,912,892],{"class":864},[721,914,916,918,920,922,924],{"class":723,"line":915},4,[721,917,871],{"class":864},[721,919,815],{"class":874},[721,921,877],{"class":864},[721,923,880],{"class":864},[721,925,926],{"class":864}," {\n",[721,928,930,933,937,939,941,943,946],{"class":723,"line":929},5,[721,931,932],{"class":864},"    \"",[721,934,936],{"class":935},"sBMFI","nome",[721,938,877],{"class":864},[721,940,880],{"class":864},[721,942,883],{"class":864},[721,944,945],{"class":886},"Ana",[721,947,948],{"class":864},"\"\n",[721,950,952],{"class":723,"line":951},6,[721,953,954],{"class":864},"  },\n",[721,956,958,960,962,964,966],{"class":723,"line":957},7,[721,959,871],{"class":864},[721,961,751],{"class":874},[721,963,877],{"class":864},[721,965,880],{"class":864},[721,967,926],{"class":864},[721,969,971,973,976,978,980,982,985],{"class":723,"line":970},8,[721,972,932],{"class":864},[721,974,975],{"class":935},"crm_ticket",[721,977,877],{"class":864},[721,979,880],{"class":864},[721,981,883],{"class":864},[721,983,984],{"class":886},"T-1042",[721,986,948],{"class":864},[721,988,990],{"class":723,"line":989},9,[721,991,992],{"class":864},"  }\n",[721,994,996],{"class":723,"line":995},10,[721,997,998],{"class":864},"}\n",[758,1000,1002],{"id":1001},"examples","Examples",[1004,1005,1006,1080,1203,1555],"code-group",{},[711,1007,1012],{"className":1008,"code":1009,"filename":1010,"language":1011,"meta":716,"style":716},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats\" \\\n  -H \"Authorization: Bearer $DISKA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"agent_id\":\"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\"contact\":\"+244923000000\",\"variables\":{\"nome\":\"Ana\"},\"metadata\":{\"crm_ticket\":\"T-1042\"}}'\n","cURL","bash",[718,1013,1014,1036,1053,1066],{"__ignoreMap":716},[721,1015,1016,1019,1022,1025,1027,1030,1032],{"class":723,"line":724},[721,1017,1018],{"class":935},"curl",[721,1020,1021],{"class":886}," -X",[721,1023,1024],{"class":886}," POST",[721,1026,883],{"class":864},[721,1028,1029],{"class":886},"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats",[721,1031,877],{"class":864},[721,1033,1035],{"class":1034},"sTEyZ"," \\\n",[721,1037,1038,1041,1043,1046,1049,1051],{"class":723,"line":868},[721,1039,1040],{"class":886},"  -H",[721,1042,883],{"class":864},[721,1044,1045],{"class":886},"Authorization: Bearer ",[721,1047,1048],{"class":1034},"$DISKA_API_KEY",[721,1050,877],{"class":864},[721,1052,1035],{"class":1034},[721,1054,1055,1057,1059,1062,1064],{"class":723,"line":895},[721,1056,1040],{"class":886},[721,1058,883],{"class":864},[721,1060,1061],{"class":886},"Content-Type: application\u002Fjson",[721,1063,877],{"class":864},[721,1065,1035],{"class":1034},[721,1067,1068,1071,1074,1077],{"class":723,"line":915},[721,1069,1070],{"class":886},"  -d",[721,1072,1073],{"class":864}," '",[721,1075,1076],{"class":886},"{\"agent_id\":\"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\"contact\":\"+244923000000\",\"variables\":{\"nome\":\"Ana\"},\"metadata\":{\"crm_ticket\":\"T-1042\"}}",[721,1078,1079],{"class":864},"'\n",[711,1081,1086],{"className":1082,"code":1083,"filename":1084,"language":1085,"meta":716,"style":716},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\n\nimport requests\n\nresponse = requests.post(\n    \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n    json={\n        \"agent_id\": \"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\n        \"contact\": \"+244923000000\",\n        \"variables\": {\n            \"nome\": \"Ana\",\n        },\n        \"metadata\": {\n            \"crm_ticket\": \"T-1042\",\n        },\n    },\n    timeout=30,\n)\nresponse.raise_for_status()\nprint(response.json())\n","Python","python",[718,1087,1088,1093,1099,1104,1108,1113,1118,1123,1128,1133,1138,1144,1150,1156,1162,1168,1173,1179,1185,1191,1197],{"__ignoreMap":716},[721,1089,1090],{"class":723,"line":724},[721,1091,1092],{},"import os\n",[721,1094,1095],{"class":723,"line":868},[721,1096,1098],{"emptyLinePlaceholder":1097},true,"\n",[721,1100,1101],{"class":723,"line":895},[721,1102,1103],{},"import requests\n",[721,1105,1106],{"class":723,"line":915},[721,1107,1098],{"emptyLinePlaceholder":1097},[721,1109,1110],{"class":723,"line":929},[721,1111,1112],{},"response = requests.post(\n",[721,1114,1115],{"class":723,"line":951},[721,1116,1117],{},"    \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats\",\n",[721,1119,1120],{"class":723,"line":957},[721,1121,1122],{},"    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n",[721,1124,1125],{"class":723,"line":970},[721,1126,1127],{},"    json={\n",[721,1129,1130],{"class":723,"line":989},[721,1131,1132],{},"        \"agent_id\": \"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\n",[721,1134,1135],{"class":723,"line":995},[721,1136,1137],{},"        \"contact\": \"+244923000000\",\n",[721,1139,1141],{"class":723,"line":1140},11,[721,1142,1143],{},"        \"variables\": {\n",[721,1145,1147],{"class":723,"line":1146},12,[721,1148,1149],{},"            \"nome\": \"Ana\",\n",[721,1151,1153],{"class":723,"line":1152},13,[721,1154,1155],{},"        },\n",[721,1157,1159],{"class":723,"line":1158},14,[721,1160,1161],{},"        \"metadata\": {\n",[721,1163,1165],{"class":723,"line":1164},15,[721,1166,1167],{},"            \"crm_ticket\": \"T-1042\",\n",[721,1169,1171],{"class":723,"line":1170},16,[721,1172,1155],{},[721,1174,1176],{"class":723,"line":1175},17,[721,1177,1178],{},"    },\n",[721,1180,1182],{"class":723,"line":1181},18,[721,1183,1184],{},"    timeout=30,\n",[721,1186,1188],{"class":723,"line":1187},19,[721,1189,1190],{},")\n",[721,1192,1194],{"class":723,"line":1193},20,[721,1195,1196],{},"response.raise_for_status()\n",[721,1198,1200],{"class":723,"line":1199},21,[721,1201,1202],{},"print(response.json())\n",[711,1204,1209],{"className":1205,"code":1206,"filename":1207,"language":1208,"meta":716,"style":716},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Node.js 18 or later, in a .mjs file\nconst response = await fetch('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats', {\n  method: 'POST',\n  headers: {\n    Authorization: `Bearer ${process.env.DISKA_API_KEY}`,\n    'Content-Type': 'application\u002Fjson'\n  },\n  body: JSON.stringify({\n    \"agent_id\": \"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\n    \"contact\": \"+244923000000\",\n    \"variables\": {\n      \"nome\": \"Ana\"\n    },\n    \"metadata\": {\n      \"crm_ticket\": \"T-1042\"\n    }\n  })\n})\nif (!response.ok) throw new Error(`${response.status} ${await response.text()}`)\nconsole.log(await response.json())\n","JavaScript","js",[718,1210,1211,1217,1251,1268,1277,1312,1330,1334,1353,1371,1389,1401,1418,1422,1434,1450,1455,1462,1469,1532],{"__ignoreMap":716},[721,1212,1213],{"class":723,"line":724},[721,1214,1216],{"class":1215},"sHwdD","\u002F\u002F Node.js 18 or later, in a .mjs file\n",[721,1218,1219,1222,1225,1228,1232,1236,1239,1242,1244,1246,1249],{"class":723,"line":868},[721,1220,1221],{"class":874},"const",[721,1223,1224],{"class":1034}," response ",[721,1226,1227],{"class":864},"=",[721,1229,1231],{"class":1230},"s7zQu"," await",[721,1233,1235],{"class":1234},"s2Zo4"," fetch",[721,1237,1238],{"class":1034},"(",[721,1240,1241],{"class":864},"'",[721,1243,1029],{"class":886},[721,1245,1241],{"class":864},[721,1247,1248],{"class":864},",",[721,1250,926],{"class":864},[721,1252,1253,1257,1259,1261,1264,1266],{"class":723,"line":895},[721,1254,1256],{"class":1255},"swJcz","  method",[721,1258,880],{"class":864},[721,1260,1073],{"class":864},[721,1262,1263],{"class":886},"POST",[721,1265,1241],{"class":864},[721,1267,892],{"class":864},[721,1269,1270,1273,1275],{"class":723,"line":915},[721,1271,1272],{"class":1255},"  headers",[721,1274,880],{"class":864},[721,1276,926],{"class":864},[721,1278,1279,1282,1284,1287,1290,1293,1296,1299,1302,1304,1307,1310],{"class":723,"line":929},[721,1280,1281],{"class":1255},"    Authorization",[721,1283,880],{"class":864},[721,1285,1286],{"class":864}," `",[721,1288,1289],{"class":886},"Bearer ",[721,1291,1292],{"class":864},"${",[721,1294,1295],{"class":1034},"process",[721,1297,1298],{"class":864},".",[721,1300,1301],{"class":1034},"env",[721,1303,1298],{"class":864},[721,1305,1306],{"class":1034},"DISKA_API_KEY",[721,1308,1309],{"class":864},"}`",[721,1311,892],{"class":864},[721,1313,1314,1317,1320,1322,1324,1326,1328],{"class":723,"line":951},[721,1315,1316],{"class":864},"    '",[721,1318,1319],{"class":1255},"Content-Type",[721,1321,1241],{"class":864},[721,1323,880],{"class":864},[721,1325,1073],{"class":864},[721,1327,766],{"class":886},[721,1329,1079],{"class":864},[721,1331,1332],{"class":723,"line":957},[721,1333,954],{"class":864},[721,1335,1336,1339,1341,1344,1346,1349,1351],{"class":723,"line":970},[721,1337,1338],{"class":1255},"  body",[721,1340,880],{"class":864},[721,1342,1343],{"class":1034}," JSON",[721,1345,1298],{"class":864},[721,1347,1348],{"class":1234},"stringify",[721,1350,1238],{"class":1034},[721,1352,865],{"class":864},[721,1354,1355,1357,1359,1361,1363,1365,1367,1369],{"class":723,"line":989},[721,1356,932],{"class":864},[721,1358,799],{"class":1255},[721,1360,877],{"class":864},[721,1362,880],{"class":864},[721,1364,883],{"class":864},[721,1366,887],{"class":886},[721,1368,877],{"class":864},[721,1370,892],{"class":864},[721,1372,1373,1375,1377,1379,1381,1383,1385,1387],{"class":723,"line":995},[721,1374,932],{"class":864},[721,1376,844],{"class":1255},[721,1378,877],{"class":864},[721,1380,880],{"class":864},[721,1382,883],{"class":864},[721,1384,908],{"class":886},[721,1386,877],{"class":864},[721,1388,892],{"class":864},[721,1390,1391,1393,1395,1397,1399],{"class":723,"line":1140},[721,1392,932],{"class":864},[721,1394,815],{"class":1255},[721,1396,877],{"class":864},[721,1398,880],{"class":864},[721,1400,926],{"class":864},[721,1402,1403,1406,1408,1410,1412,1414,1416],{"class":723,"line":1146},[721,1404,1405],{"class":864},"      \"",[721,1407,936],{"class":1255},[721,1409,877],{"class":864},[721,1411,880],{"class":864},[721,1413,883],{"class":864},[721,1415,945],{"class":886},[721,1417,948],{"class":864},[721,1419,1420],{"class":723,"line":1152},[721,1421,1178],{"class":864},[721,1423,1424,1426,1428,1430,1432],{"class":723,"line":1158},[721,1425,932],{"class":864},[721,1427,751],{"class":1255},[721,1429,877],{"class":864},[721,1431,880],{"class":864},[721,1433,926],{"class":864},[721,1435,1436,1438,1440,1442,1444,1446,1448],{"class":723,"line":1164},[721,1437,1405],{"class":864},[721,1439,975],{"class":1255},[721,1441,877],{"class":864},[721,1443,880],{"class":864},[721,1445,883],{"class":864},[721,1447,984],{"class":886},[721,1449,948],{"class":864},[721,1451,1452],{"class":723,"line":1170},[721,1453,1454],{"class":864},"    }\n",[721,1456,1457,1460],{"class":723,"line":1175},[721,1458,1459],{"class":864},"  }",[721,1461,1190],{"class":1034},[721,1463,1464,1467],{"class":723,"line":1181},[721,1465,1466],{"class":864},"}",[721,1468,1190],{"class":1034},[721,1470,1471,1474,1477,1480,1483,1485,1488,1491,1494,1497,1499,1502,1504,1506,1509,1511,1514,1517,1520,1522,1525,1528,1530],{"class":723,"line":1187},[721,1472,1473],{"class":1230},"if",[721,1475,1476],{"class":1034}," (",[721,1478,1479],{"class":864},"!",[721,1481,1482],{"class":1034},"response",[721,1484,1298],{"class":864},[721,1486,1487],{"class":1034},"ok) ",[721,1489,1490],{"class":1230},"throw",[721,1492,1493],{"class":864}," new",[721,1495,1496],{"class":1234}," Error",[721,1498,1238],{"class":1034},[721,1500,1501],{"class":864},"`${",[721,1503,1482],{"class":1034},[721,1505,1298],{"class":864},[721,1507,1508],{"class":1034},"status",[721,1510,1466],{"class":864},[721,1512,1513],{"class":864}," ${",[721,1515,1516],{"class":1230},"await",[721,1518,1519],{"class":1034}," response",[721,1521,1298],{"class":864},[721,1523,1524],{"class":1234},"text",[721,1526,1527],{"class":1034},"()",[721,1529,1309],{"class":864},[721,1531,1190],{"class":1034},[721,1533,1534,1537,1539,1542,1544,1546,1548,1550,1552],{"class":723,"line":1193},[721,1535,1536],{"class":1034},"console",[721,1538,1298],{"class":864},[721,1540,1541],{"class":1234},"log",[721,1543,1238],{"class":1034},[721,1545,1516],{"class":1230},[721,1547,1519],{"class":1034},[721,1549,1298],{"class":864},[721,1551,857],{"class":1234},[721,1553,1554],{"class":1034},"())\n",[711,1556,1561],{"className":1557,"code":1558,"filename":1559,"language":1560,"meta":716,"style":716},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C?php\n$ch = curl_init('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats');\ncurl_setopt_array($ch, [\n    CURLOPT_CUSTOMREQUEST => 'POST',\n    CURLOPT_HTTPHEADER => [\n        'Authorization: Bearer ' . getenv('DISKA_API_KEY'),\n        'Content-Type: application\u002Fjson',\n    ],\n    CURLOPT_POSTFIELDS => json_encode([\n        'agent_id' => '3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40',\n        'contact' => '+244923000000',\n        'variables' => [\n            'nome' => 'Ana',\n        ],\n        'metadata' => [\n            'crm_ticket' => 'T-1042',\n        ],\n    ]),\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_TIMEOUT => 30,\n]);\n$body = curl_exec($ch);\n$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\ncurl_close($ch);\nif ($status >= 400) {\n    throw new RuntimeException(\"HTTP $status: $body\");\n}\nprint_r(json_decode($body, true));\n","PHP","php",[718,1562,1563,1568,1573,1578,1583,1588,1593,1598,1603,1608,1613,1618,1623,1628,1633,1638,1643,1647,1652,1657,1662,1667,1673,1679,1685,1691,1697,1702],{"__ignoreMap":716},[721,1564,1565],{"class":723,"line":724},[721,1566,1567],{},"\u003C?php\n",[721,1569,1570],{"class":723,"line":868},[721,1571,1572],{},"$ch = curl_init('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fchats');\n",[721,1574,1575],{"class":723,"line":895},[721,1576,1577],{},"curl_setopt_array($ch, [\n",[721,1579,1580],{"class":723,"line":915},[721,1581,1582],{},"    CURLOPT_CUSTOMREQUEST => 'POST',\n",[721,1584,1585],{"class":723,"line":929},[721,1586,1587],{},"    CURLOPT_HTTPHEADER => [\n",[721,1589,1590],{"class":723,"line":951},[721,1591,1592],{},"        'Authorization: Bearer ' . getenv('DISKA_API_KEY'),\n",[721,1594,1595],{"class":723,"line":957},[721,1596,1597],{},"        'Content-Type: application\u002Fjson',\n",[721,1599,1600],{"class":723,"line":970},[721,1601,1602],{},"    ],\n",[721,1604,1605],{"class":723,"line":989},[721,1606,1607],{},"    CURLOPT_POSTFIELDS => json_encode([\n",[721,1609,1610],{"class":723,"line":995},[721,1611,1612],{},"        'agent_id' => '3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40',\n",[721,1614,1615],{"class":723,"line":1140},[721,1616,1617],{},"        'contact' => '+244923000000',\n",[721,1619,1620],{"class":723,"line":1146},[721,1621,1622],{},"        'variables' => [\n",[721,1624,1625],{"class":723,"line":1152},[721,1626,1627],{},"            'nome' => 'Ana',\n",[721,1629,1630],{"class":723,"line":1158},[721,1631,1632],{},"        ],\n",[721,1634,1635],{"class":723,"line":1164},[721,1636,1637],{},"        'metadata' => [\n",[721,1639,1640],{"class":723,"line":1170},[721,1641,1642],{},"            'crm_ticket' => 'T-1042',\n",[721,1644,1645],{"class":723,"line":1175},[721,1646,1632],{},[721,1648,1649],{"class":723,"line":1181},[721,1650,1651],{},"    ]),\n",[721,1653,1654],{"class":723,"line":1187},[721,1655,1656],{},"    CURLOPT_RETURNTRANSFER => true,\n",[721,1658,1659],{"class":723,"line":1193},[721,1660,1661],{},"    CURLOPT_TIMEOUT => 30,\n",[721,1663,1664],{"class":723,"line":1199},[721,1665,1666],{},"]);\n",[721,1668,1670],{"class":723,"line":1669},22,[721,1671,1672],{},"$body = curl_exec($ch);\n",[721,1674,1676],{"class":723,"line":1675},23,[721,1677,1678],{},"$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\n",[721,1680,1682],{"class":723,"line":1681},24,[721,1683,1684],{},"curl_close($ch);\n",[721,1686,1688],{"class":723,"line":1687},25,[721,1689,1690],{},"if ($status >= 400) {\n",[721,1692,1694],{"class":723,"line":1693},26,[721,1695,1696],{},"    throw new RuntimeException(\"HTTP $status: $body\");\n",[721,1698,1700],{"class":723,"line":1699},27,[721,1701,998],{},[721,1703,1705],{"class":723,"line":1704},28,[721,1706,1707],{},"print_r(json_decode($body, true));\n",[758,1709,1711],{"id":1710},"try-it","Try it",[728,1713,1714,1715,1718],{},"Send the request from this page, with your key. The key stays on this page: it is not stored and is only sent to ",[718,1716,1717],{},"api.diska.ai",". Use a test key with the fewest scopes you need.",[1720,1721],"api-playground",{":params":1722,"body":856,"body-type":857,"locale":1723,"method":1263,"path":1724},"[]","en","\u002Fv1\u002Fchats",[758,1726,1728,1729],{"id":1727},"response-201","Response ",[718,1730,1731],{},"201",[768,1733,1734,1744],{},[771,1735,1736],{},[774,1737,1738,1740,1742],{},[777,1739,779],{},[777,1741,782],{},[777,1743,788],{},[790,1745,1746,1762,1773,1790,1801,1812,1824,1836,1857,1872,1884,1903,1915],{},[774,1747,1748,1753,1755],{},[795,1749,1750],{},[718,1751,1752],{},"id",[795,1754,802],{},[795,1756,1757,1758,1761],{},"Chat ID (the same as ",[718,1759,1760],{},"GET \u002Fv1\u002Fcalls\u002F{call_id}",").",[774,1763,1764,1768,1770],{},[795,1765,1766],{},[718,1767,799],{},[795,1769,802],{},[795,1771,1772],{},"The agent.",[774,1774,1775,1779,1781],{},[795,1776,1777],{},[718,1778,1508],{},[795,1780,802],{},[795,1782,1783,1786,1787,1298],{},[718,1784,1785],{},"active"," or ",[718,1788,1789],{},"ended",[774,1791,1792,1796,1798],{},[795,1793,1794],{},[718,1795,844],{},[795,1797,847],{},[795,1799,1800],{},"Who is chatting, as you stated it.",[774,1802,1803,1807,1809],{},[795,1804,1805],{},[718,1806,751],{},[795,1808,818],{},[795,1810,1811],{},"Your metadata, returned as sent.",[774,1813,1814,1819,1821],{},[795,1815,1816],{},[718,1817,1818],{},"created_at",[795,1820,802],{},[795,1822,1823],{},"Creation date (ISO 8601).",[774,1825,1826,1831,1833],{},[795,1827,1828],{},[718,1829,1830],{},"ended_at",[795,1832,847],{},[795,1834,1835],{},"When it ended.",[774,1837,1838,1843,1845],{},[795,1839,1840],{},[718,1841,1842],{},"end_reason",[795,1844,847],{},[795,1846,1847,1850,1851,1786,1854,1298],{},[718,1848,1849],{},"ended_by_api",", ",[718,1852,1853],{},"agent_ended",[718,1855,1856],{},"inactivity",[774,1858,1859,1864,1869],{},[795,1860,1861],{},[718,1862,1863],{},"messages",[795,1865,1866,1867],{},"array",[818,1868],{},[795,1870,1871],{},"The messages, in order.",[774,1873,1874,1879,1881],{},[795,1875,1876],{},[718,1877,1878],{},"messages[].id",[795,1880,802],{},[795,1882,1883],{},"Message ID.",[774,1885,1886,1891,1893],{},[795,1887,1888],{},[718,1889,1890],{},"messages[].role",[795,1892,802],{},[795,1894,1895,1898,1899,1902],{},[718,1896,1897],{},"user"," (the person) or ",[718,1900,1901],{},"assistant"," (the agent).",[774,1904,1905,1910,1912],{},[795,1906,1907],{},[718,1908,1909],{},"messages[].content",[795,1911,802],{},[795,1913,1914],{},"The text.",[774,1916,1917,1922,1924],{},[795,1918,1919],{},[718,1920,1921],{},"messages[].created_at",[795,1923,847],{},[795,1925,1926],{},"When it was written.",[711,1928,1930],{"className":855,"code":1929,"language":857,"meta":716,"style":716},"{\n  \"id\": \"5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93\",\n  \"agent_id\": \"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\n  \"status\": \"active\",\n  \"contact\": \"+244900000000\",\n  \"metadata\": {},\n  \"created_at\": \"2026-10-25T18:40:00Z\",\n  \"ended_at\": \"2026-10-25T18:41:35Z\",\n  \"end_reason\": \"caller_hangup\",\n  \"messages\": [\n    {\n      \"id\": \"5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93\",\n      \"role\": \"user\",\n      \"content\": \"Bom dia, queria marcar uma consulta.\",\n      \"created_at\": \"2026-10-25T18:40:00Z\"\n    }\n  ]\n}\n",[718,1931,1932,1936,1955,1973,1991,2010,2023,2042,2061,2080,2093,2098,2116,2135,2155,2171,2175,2180],{"__ignoreMap":716},[721,1933,1934],{"class":723,"line":724},[721,1935,865],{"class":864},[721,1937,1938,1940,1942,1944,1946,1948,1951,1953],{"class":723,"line":868},[721,1939,871],{"class":864},[721,1941,1752],{"class":874},[721,1943,877],{"class":864},[721,1945,880],{"class":864},[721,1947,883],{"class":864},[721,1949,1950],{"class":886},"5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",[721,1952,877],{"class":864},[721,1954,892],{"class":864},[721,1956,1957,1959,1961,1963,1965,1967,1969,1971],{"class":723,"line":895},[721,1958,871],{"class":864},[721,1960,799],{"class":874},[721,1962,877],{"class":864},[721,1964,880],{"class":864},[721,1966,883],{"class":864},[721,1968,887],{"class":886},[721,1970,877],{"class":864},[721,1972,892],{"class":864},[721,1974,1975,1977,1979,1981,1983,1985,1987,1989],{"class":723,"line":915},[721,1976,871],{"class":864},[721,1978,1508],{"class":874},[721,1980,877],{"class":864},[721,1982,880],{"class":864},[721,1984,883],{"class":864},[721,1986,1785],{"class":886},[721,1988,877],{"class":864},[721,1990,892],{"class":864},[721,1992,1993,1995,1997,1999,2001,2003,2006,2008],{"class":723,"line":929},[721,1994,871],{"class":864},[721,1996,844],{"class":874},[721,1998,877],{"class":864},[721,2000,880],{"class":864},[721,2002,883],{"class":864},[721,2004,2005],{"class":886},"+244900000000",[721,2007,877],{"class":864},[721,2009,892],{"class":864},[721,2011,2012,2014,2016,2018,2020],{"class":723,"line":951},[721,2013,871],{"class":864},[721,2015,751],{"class":874},[721,2017,877],{"class":864},[721,2019,880],{"class":864},[721,2021,2022],{"class":864}," {},\n",[721,2024,2025,2027,2029,2031,2033,2035,2038,2040],{"class":723,"line":957},[721,2026,871],{"class":864},[721,2028,1818],{"class":874},[721,2030,877],{"class":864},[721,2032,880],{"class":864},[721,2034,883],{"class":864},[721,2036,2037],{"class":886},"2026-10-25T18:40:00Z",[721,2039,877],{"class":864},[721,2041,892],{"class":864},[721,2043,2044,2046,2048,2050,2052,2054,2057,2059],{"class":723,"line":970},[721,2045,871],{"class":864},[721,2047,1830],{"class":874},[721,2049,877],{"class":864},[721,2051,880],{"class":864},[721,2053,883],{"class":864},[721,2055,2056],{"class":886},"2026-10-25T18:41:35Z",[721,2058,877],{"class":864},[721,2060,892],{"class":864},[721,2062,2063,2065,2067,2069,2071,2073,2076,2078],{"class":723,"line":989},[721,2064,871],{"class":864},[721,2066,1842],{"class":874},[721,2068,877],{"class":864},[721,2070,880],{"class":864},[721,2072,883],{"class":864},[721,2074,2075],{"class":886},"caller_hangup",[721,2077,877],{"class":864},[721,2079,892],{"class":864},[721,2081,2082,2084,2086,2088,2090],{"class":723,"line":995},[721,2083,871],{"class":864},[721,2085,1863],{"class":874},[721,2087,877],{"class":864},[721,2089,880],{"class":864},[721,2091,2092],{"class":864}," [\n",[721,2094,2095],{"class":723,"line":1140},[721,2096,2097],{"class":864},"    {\n",[721,2099,2100,2102,2104,2106,2108,2110,2112,2114],{"class":723,"line":1146},[721,2101,1405],{"class":864},[721,2103,1752],{"class":935},[721,2105,877],{"class":864},[721,2107,880],{"class":864},[721,2109,883],{"class":864},[721,2111,1950],{"class":886},[721,2113,877],{"class":864},[721,2115,892],{"class":864},[721,2117,2118,2120,2123,2125,2127,2129,2131,2133],{"class":723,"line":1152},[721,2119,1405],{"class":864},[721,2121,2122],{"class":935},"role",[721,2124,877],{"class":864},[721,2126,880],{"class":864},[721,2128,883],{"class":864},[721,2130,1897],{"class":886},[721,2132,877],{"class":864},[721,2134,892],{"class":864},[721,2136,2137,2139,2142,2144,2146,2148,2151,2153],{"class":723,"line":1158},[721,2138,1405],{"class":864},[721,2140,2141],{"class":935},"content",[721,2143,877],{"class":864},[721,2145,880],{"class":864},[721,2147,883],{"class":864},[721,2149,2150],{"class":886},"Bom dia, queria marcar uma consulta.",[721,2152,877],{"class":864},[721,2154,892],{"class":864},[721,2156,2157,2159,2161,2163,2165,2167,2169],{"class":723,"line":1164},[721,2158,1405],{"class":864},[721,2160,1818],{"class":935},[721,2162,877],{"class":864},[721,2164,880],{"class":864},[721,2166,883],{"class":864},[721,2168,2037],{"class":886},[721,2170,948],{"class":864},[721,2172,2173],{"class":723,"line":1170},[721,2174,1454],{"class":864},[721,2176,2177],{"class":723,"line":1175},[721,2178,2179],{"class":864},"  ]\n",[721,2181,2182],{"class":723,"line":1181},[721,2183,998],{"class":864},[758,2185,2187],{"id":2186},"errors","Errors",[768,2189,2190,2200],{},[771,2191,2192],{},[774,2193,2194,2197],{},[777,2195,2196],{},"Code",[777,2198,2199],{},"When",[790,2201,2202,2212,2225,2235],{},[774,2203,2204,2209],{},[795,2205,2206],{},[718,2207,2208],{},"403",[795,2210,2211],{},"API chat is not switched on for the organization.",[774,2213,2214,2219],{},[795,2215,2216],{},[718,2217,2218],{},"404",[795,2220,2221,2224],{},[718,2222,2223],{},"Agente não encontrado."," (agent not found).",[774,2226,2227,2232],{},[795,2228,2229],{},[718,2230,2231],{},"409",[795,2233,2234],{},"The agent is not published, is inactive or uses the Flow Builder.",[774,2236,2237,2242],{},[795,2238,2239],{},[718,2240,2241],{},"422",[795,2243,2244],{},"Variables refused or metadata over the limits.",[728,2246,2247,2248,1850,2251,1850,2253,1850,2255,2258,2259,2262,2263,1298],{},"Errors common to every endpoint (",[718,2249,2250],{},"401",[718,2252,2208],{},[718,2254,2241],{},[718,2256,2257],{},"429"," and ",[718,2260,2261],{},"5xx",") are in ",[2264,2265,2187],"a",{"href":2266},"\u002Fen\u002Fapi\u002Fapi-channel#errors",[2268,2269,2270],"style",{},"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 .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 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 .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 .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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":716,"searchDepth":868,"depth":868,"links":2272},[2273,2274,2275,2276,2278],{"id":760,"depth":868,"text":761},{"id":1001,"depth":868,"text":1002},{"id":1710,"depth":868,"text":1711},{"id":1727,"depth":868,"text":2277},"Response 201",{"id":2186,"depth":868,"text":2187},"Opens a chat with a published prompt-mode agent.","md",null,{},{"title":447,"description":2279},"MtXd2JN4ohsUuUSY7NjVhGoi8dzxyogeM3bW8Xm7w_E",[2286,2288],{"title":441,"path":442,"stem":443,"description":2287,"children":-1},"Chat by text with a published agent from your own app or site: create the chat, send messages and get the agent's reply in the same request.",{"title":451,"path":452,"stem":453,"description":2289,"children":-1},"Sends the person's message and returns the agent's reply (reply) in the same request, usually within a few seconds.",1795253386377]