[{"data":1,"prerenderedAt":2009},["ShallowReactive",2],{"navigation_docs_en":3,"-en-api-reference-agents-publish-agent":705,"-en-api-reference-agents-publish-agent-surround":2004},[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":360,"body":707,"description":1998,"extension":1999,"links":2000,"meta":2001,"navigation":984,"path":361,"seo":2002,"stem":362,"__hash__":2003},"docs_en\u002Fen\u002F12.api\u002F07.reference\u002F02.agents\u002F05.publish-agent.md",{"type":708,"value":709,"toc":1987},"minimark",[710,727,738,741,746,751,793,797,803,840,884,888,1444,1448,1455,1461,1468,1676,1902,1906,1960,1983],[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\u002Fagents\u002F{agent_id}\u002Fpublish\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],{},"agents:write",[728,739,740],{},"For flow agents it also publishes the main flow and the subflows it uses. If nothing changed since the last publish, no new version is created. The body is optional.",[742,743,745],"h2",{"id":744},"parameters","Parameters",[747,748,750],"h3",{"id":749},"path","Path",[752,753,754,773],"table",{},[755,756,757],"thead",{},[758,759,760,764,767,770],"tr",{},[761,762,763],"th",{},"Name",[761,765,766],{},"Type",[761,768,769],{},"Required",[761,771,772],{},"Description",[774,775,776],"tbody",{},[758,777,778,784,787,790],{},[779,780,781],"td",{},[718,782,783],{},"agent_id",[779,785,786],{},"string",[779,788,789],{},"Yes",[779,791,792],{},"The agent's ID.",[742,794,796],{"id":795},"request-body","Request body",[728,798,799,802],{},[718,800,801],{},"application\u002Fjson"," — The body is optional.",[752,804,805,818],{},[755,806,807],{},[758,808,809,812,814,816],{},[761,810,811],{},"Field",[761,813,766],{},[761,815,769],{},[761,817,772],{},[774,819,820],{},[758,821,822,827,830,833],{},[779,823,824],{},[718,825,826],{},"label",[779,828,829],{},"string | null",[779,831,832],{},"No",[779,834,835,836,839],{},"Version name. Default: ",[718,837,838],{},"Versão N",". Up to 120 characters.",[711,841,845],{"className":842,"code":843,"language":844,"meta":716,"style":716},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"label\": \"Horário de Dezembro\"\n}\n","json",[718,846,847,853,878],{"__ignoreMap":716},[721,848,849],{"class":723,"line":724},[721,850,852],{"class":851},"sMK4o","{\n",[721,854,856,859,862,865,868,871,875],{"class":723,"line":855},2,[721,857,858],{"class":851},"  \"",[721,860,826],{"class":861},"spNyl",[721,863,864],{"class":851},"\"",[721,866,867],{"class":851},":",[721,869,870],{"class":851}," \"",[721,872,874],{"class":873},"sfazB","Horário de Dezembro",[721,876,877],{"class":851},"\"\n",[721,879,881],{"class":723,"line":880},3,[721,882,883],{"class":851},"}\n",[742,885,887],{"id":886},"examples","Examples",[889,890,891,967,1055,1325],"code-group",{},[711,892,897],{"className":893,"code":894,"filename":895,"language":896,"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\u002Fagents\u002F\u003Cagent_id>\u002Fpublish\" \\\n  -H \"Authorization: Bearer $DISKA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"label\":\"Horário de Dezembro\"}'\n","cURL","bash",[718,898,899,922,939,952],{"__ignoreMap":716},[721,900,901,905,908,911,913,916,918],{"class":723,"line":724},[721,902,904],{"class":903},"sBMFI","curl",[721,906,907],{"class":873}," -X",[721,909,910],{"class":873}," POST",[721,912,870],{"class":851},[721,914,915],{"class":873},"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents\u002F\u003Cagent_id>\u002Fpublish",[721,917,864],{"class":851},[721,919,921],{"class":920},"sTEyZ"," \\\n",[721,923,924,927,929,932,935,937],{"class":723,"line":855},[721,925,926],{"class":873},"  -H",[721,928,870],{"class":851},[721,930,931],{"class":873},"Authorization: Bearer ",[721,933,934],{"class":920},"$DISKA_API_KEY",[721,936,864],{"class":851},[721,938,921],{"class":920},[721,940,941,943,945,948,950],{"class":723,"line":880},[721,942,926],{"class":873},[721,944,870],{"class":851},[721,946,947],{"class":873},"Content-Type: application\u002Fjson",[721,949,864],{"class":851},[721,951,921],{"class":920},[721,953,955,958,961,964],{"class":723,"line":954},4,[721,956,957],{"class":873},"  -d",[721,959,960],{"class":851}," '",[721,962,963],{"class":873},"{\"label\":\"Horário de Dezembro\"}",[721,965,966],{"class":851},"'\n",[711,968,973],{"className":969,"code":970,"filename":971,"language":972,"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\u002Fagents\u002F\u003Cagent_id>\u002Fpublish\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n    json={\n        \"label\": \"Horário de Dezembro\",\n    },\n    timeout=30,\n)\nresponse.raise_for_status()\nprint(response.json())\n","Python","python",[718,974,975,980,986,991,995,1001,1007,1013,1019,1025,1031,1037,1043,1049],{"__ignoreMap":716},[721,976,977],{"class":723,"line":724},[721,978,979],{},"import os\n",[721,981,982],{"class":723,"line":855},[721,983,985],{"emptyLinePlaceholder":984},true,"\n",[721,987,988],{"class":723,"line":880},[721,989,990],{},"import requests\n",[721,992,993],{"class":723,"line":954},[721,994,985],{"emptyLinePlaceholder":984},[721,996,998],{"class":723,"line":997},5,[721,999,1000],{},"response = requests.post(\n",[721,1002,1004],{"class":723,"line":1003},6,[721,1005,1006],{},"    \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents\u002F\u003Cagent_id>\u002Fpublish\",\n",[721,1008,1010],{"class":723,"line":1009},7,[721,1011,1012],{},"    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n",[721,1014,1016],{"class":723,"line":1015},8,[721,1017,1018],{},"    json={\n",[721,1020,1022],{"class":723,"line":1021},9,[721,1023,1024],{},"        \"label\": \"Horário de Dezembro\",\n",[721,1026,1028],{"class":723,"line":1027},10,[721,1029,1030],{},"    },\n",[721,1032,1034],{"class":723,"line":1033},11,[721,1035,1036],{},"    timeout=30,\n",[721,1038,1040],{"class":723,"line":1039},12,[721,1041,1042],{},")\n",[721,1044,1046],{"class":723,"line":1045},13,[721,1047,1048],{},"response.raise_for_status()\n",[721,1050,1052],{"class":723,"line":1051},14,[721,1053,1054],{},"print(response.json())\n",[711,1056,1061],{"className":1057,"code":1058,"filename":1059,"language":1060,"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\u002Fagents\u002F\u003Cagent_id>\u002Fpublish', {\n  method: 'POST',\n  headers: {\n    Authorization: `Bearer ${process.env.DISKA_API_KEY}`,\n    'Content-Type': 'application\u002Fjson'\n  },\n  body: JSON.stringify({\n    \"label\": \"Horário de Dezembro\"\n  })\n})\nif (!response.ok) throw new Error(`${response.status} ${await response.text()}`)\nconsole.log(await response.json())\n","JavaScript","js",[718,1062,1063,1069,1104,1122,1131,1166,1184,1189,1208,1225,1232,1239,1302],{"__ignoreMap":716},[721,1064,1065],{"class":723,"line":724},[721,1066,1068],{"class":1067},"sHwdD","\u002F\u002F Node.js 18 or later, in a .mjs file\n",[721,1070,1071,1074,1077,1080,1084,1088,1091,1094,1096,1098,1101],{"class":723,"line":855},[721,1072,1073],{"class":861},"const",[721,1075,1076],{"class":920}," response ",[721,1078,1079],{"class":851},"=",[721,1081,1083],{"class":1082},"s7zQu"," await",[721,1085,1087],{"class":1086},"s2Zo4"," fetch",[721,1089,1090],{"class":920},"(",[721,1092,1093],{"class":851},"'",[721,1095,915],{"class":873},[721,1097,1093],{"class":851},[721,1099,1100],{"class":851},",",[721,1102,1103],{"class":851}," {\n",[721,1105,1106,1110,1112,1114,1117,1119],{"class":723,"line":880},[721,1107,1109],{"class":1108},"swJcz","  method",[721,1111,867],{"class":851},[721,1113,960],{"class":851},[721,1115,1116],{"class":873},"POST",[721,1118,1093],{"class":851},[721,1120,1121],{"class":851},",\n",[721,1123,1124,1127,1129],{"class":723,"line":954},[721,1125,1126],{"class":1108},"  headers",[721,1128,867],{"class":851},[721,1130,1103],{"class":851},[721,1132,1133,1136,1138,1141,1144,1147,1150,1153,1156,1158,1161,1164],{"class":723,"line":997},[721,1134,1135],{"class":1108},"    Authorization",[721,1137,867],{"class":851},[721,1139,1140],{"class":851}," `",[721,1142,1143],{"class":873},"Bearer ",[721,1145,1146],{"class":851},"${",[721,1148,1149],{"class":920},"process",[721,1151,1152],{"class":851},".",[721,1154,1155],{"class":920},"env",[721,1157,1152],{"class":851},[721,1159,1160],{"class":920},"DISKA_API_KEY",[721,1162,1163],{"class":851},"}`",[721,1165,1121],{"class":851},[721,1167,1168,1171,1174,1176,1178,1180,1182],{"class":723,"line":1003},[721,1169,1170],{"class":851},"    '",[721,1172,1173],{"class":1108},"Content-Type",[721,1175,1093],{"class":851},[721,1177,867],{"class":851},[721,1179,960],{"class":851},[721,1181,801],{"class":873},[721,1183,966],{"class":851},[721,1185,1186],{"class":723,"line":1009},[721,1187,1188],{"class":851},"  },\n",[721,1190,1191,1194,1196,1199,1201,1204,1206],{"class":723,"line":1015},[721,1192,1193],{"class":1108},"  body",[721,1195,867],{"class":851},[721,1197,1198],{"class":920}," JSON",[721,1200,1152],{"class":851},[721,1202,1203],{"class":1086},"stringify",[721,1205,1090],{"class":920},[721,1207,852],{"class":851},[721,1209,1210,1213,1215,1217,1219,1221,1223],{"class":723,"line":1021},[721,1211,1212],{"class":851},"    \"",[721,1214,826],{"class":1108},[721,1216,864],{"class":851},[721,1218,867],{"class":851},[721,1220,870],{"class":851},[721,1222,874],{"class":873},[721,1224,877],{"class":851},[721,1226,1227,1230],{"class":723,"line":1027},[721,1228,1229],{"class":851},"  }",[721,1231,1042],{"class":920},[721,1233,1234,1237],{"class":723,"line":1033},[721,1235,1236],{"class":851},"}",[721,1238,1042],{"class":920},[721,1240,1241,1244,1247,1250,1253,1255,1258,1261,1264,1267,1269,1272,1274,1276,1279,1281,1284,1287,1290,1292,1295,1298,1300],{"class":723,"line":1039},[721,1242,1243],{"class":1082},"if",[721,1245,1246],{"class":920}," (",[721,1248,1249],{"class":851},"!",[721,1251,1252],{"class":920},"response",[721,1254,1152],{"class":851},[721,1256,1257],{"class":920},"ok) ",[721,1259,1260],{"class":1082},"throw",[721,1262,1263],{"class":851}," new",[721,1265,1266],{"class":1086}," Error",[721,1268,1090],{"class":920},[721,1270,1271],{"class":851},"`${",[721,1273,1252],{"class":920},[721,1275,1152],{"class":851},[721,1277,1278],{"class":920},"status",[721,1280,1236],{"class":851},[721,1282,1283],{"class":851}," ${",[721,1285,1286],{"class":1082},"await",[721,1288,1289],{"class":920}," response",[721,1291,1152],{"class":851},[721,1293,1294],{"class":1086},"text",[721,1296,1297],{"class":920},"()",[721,1299,1163],{"class":851},[721,1301,1042],{"class":920},[721,1303,1304,1307,1309,1312,1314,1316,1318,1320,1322],{"class":723,"line":1045},[721,1305,1306],{"class":920},"console",[721,1308,1152],{"class":851},[721,1310,1311],{"class":1086},"log",[721,1313,1090],{"class":920},[721,1315,1286],{"class":1082},[721,1317,1289],{"class":920},[721,1319,1152],{"class":851},[721,1321,844],{"class":1086},[721,1323,1324],{"class":920},"())\n",[711,1326,1331],{"className":1327,"code":1328,"filename":1329,"language":1330,"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\u002Fagents\u002F\u003Cagent_id>\u002Fpublish');\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        'label' => 'Horário de Dezembro',\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,1332,1333,1338,1343,1348,1353,1358,1363,1368,1373,1378,1383,1388,1393,1398,1403,1409,1415,1421,1427,1433,1438],{"__ignoreMap":716},[721,1334,1335],{"class":723,"line":724},[721,1336,1337],{},"\u003C?php\n",[721,1339,1340],{"class":723,"line":855},[721,1341,1342],{},"$ch = curl_init('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fagents\u002F\u003Cagent_id>\u002Fpublish');\n",[721,1344,1345],{"class":723,"line":880},[721,1346,1347],{},"curl_setopt_array($ch, [\n",[721,1349,1350],{"class":723,"line":954},[721,1351,1352],{},"    CURLOPT_CUSTOMREQUEST => 'POST',\n",[721,1354,1355],{"class":723,"line":997},[721,1356,1357],{},"    CURLOPT_HTTPHEADER => [\n",[721,1359,1360],{"class":723,"line":1003},[721,1361,1362],{},"        'Authorization: Bearer ' . getenv('DISKA_API_KEY'),\n",[721,1364,1365],{"class":723,"line":1009},[721,1366,1367],{},"        'Content-Type: application\u002Fjson',\n",[721,1369,1370],{"class":723,"line":1015},[721,1371,1372],{},"    ],\n",[721,1374,1375],{"class":723,"line":1021},[721,1376,1377],{},"    CURLOPT_POSTFIELDS => json_encode([\n",[721,1379,1380],{"class":723,"line":1027},[721,1381,1382],{},"        'label' => 'Horário de Dezembro',\n",[721,1384,1385],{"class":723,"line":1033},[721,1386,1387],{},"    ]),\n",[721,1389,1390],{"class":723,"line":1039},[721,1391,1392],{},"    CURLOPT_RETURNTRANSFER => true,\n",[721,1394,1395],{"class":723,"line":1045},[721,1396,1397],{},"    CURLOPT_TIMEOUT => 30,\n",[721,1399,1400],{"class":723,"line":1051},[721,1401,1402],{},"]);\n",[721,1404,1406],{"class":723,"line":1405},15,[721,1407,1408],{},"$body = curl_exec($ch);\n",[721,1410,1412],{"class":723,"line":1411},16,[721,1413,1414],{},"$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\n",[721,1416,1418],{"class":723,"line":1417},17,[721,1419,1420],{},"curl_close($ch);\n",[721,1422,1424],{"class":723,"line":1423},18,[721,1425,1426],{},"if ($status >= 400) {\n",[721,1428,1430],{"class":723,"line":1429},19,[721,1431,1432],{},"    throw new RuntimeException(\"HTTP $status: $body\");\n",[721,1434,1436],{"class":723,"line":1435},20,[721,1437,883],{},[721,1439,1441],{"class":723,"line":1440},21,[721,1442,1443],{},"print_r(json_decode($body, true));\n",[742,1445,1447],{"id":1446},"try-it","Try it",[728,1449,1450,1451,1454],{},"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,1452,1453],{},"api.diska.ai",". Use a test key with the fewest scopes you need.",[1456,1457],"api-playground",{":params":1458,"body":843,"body-type":844,"locale":1459,"method":1116,"path":1460},"[{\"name\":\"agent_id\",\"in\":\"path\",\"required\":true}]","en","\u002Fv1\u002Fagents\u002F{agent_id}\u002Fpublish",[742,1462,1464,1465],{"id":1463},"response-200","Response ",[718,1466,1467],{},"200",[752,1469,1470,1480],{},[755,1471,1472],{},[758,1473,1474,1476,1478],{},[761,1475,811],{},[761,1477,766],{},[761,1479,772],{},[774,1481,1482,1494,1506,1518,1533,1560,1583,1603,1619,1633,1652,1664],{},[758,1483,1484,1489,1491],{},[779,1485,1486],{},[718,1487,1488],{},"id",[779,1490,786],{},[779,1492,1493],{},"Agent ID.",[758,1495,1496,1501,1503],{},[779,1497,1498],{},[718,1499,1500],{},"name",[779,1502,786],{},[779,1504,1505],{},"Agent name.",[758,1507,1508,1513,1515],{},[779,1509,1510],{},[718,1511,1512],{},"slug",[779,1514,786],{},[779,1516,1517],{},"Readable agent identifier.",[758,1519,1520,1525,1527],{},[779,1521,1522],{},[718,1523,1524],{},"description",[779,1526,829],{},[779,1528,1529,1530,1152],{},"Description, or ",[718,1531,1532],{},"null",[758,1534,1535,1539,1541],{},[779,1536,1537],{},[718,1538,1278],{},[779,1540,786],{},[779,1542,1543,1546,1547,1546,1550,1553,1554,1557,1558,1152],{},[718,1544,1545],{},"draft",", ",[718,1548,1549],{},"active",[718,1551,1552],{},"inactive"," or ",[718,1555,1556],{},"archived",". A published agent is ",[718,1559,1549],{},[758,1561,1562,1567,1569],{},[779,1563,1564],{},[718,1565,1566],{},"agent_type",[779,1568,786],{},[779,1570,1571,1546,1574,1546,1577,1553,1580,1152],{},[718,1572,1573],{},"inbound",[718,1575,1576],{},"outbound",[718,1578,1579],{},"voice_widget",[718,1581,1582],{},"chat",[758,1584,1585,1590,1592],{},[779,1586,1587],{},[718,1588,1589],{},"editing_mode",[779,1591,786],{},[779,1593,1594,1553,1597,1600,1601,1152],{},[718,1595,1596],{},"prompt",[718,1598,1599],{},"flow"," (Flow Builder). It does not change after creation. Default: ",[718,1602,1596],{},[758,1604,1605,1610,1613],{},[779,1606,1607],{},[718,1608,1609],{},"version",[779,1611,1612],{},"integer",[779,1614,1615,1616,1152],{},"Agent version number. Default: ",[718,1617,1618],{},"1",[758,1620,1621,1626,1628],{},[779,1622,1623],{},[718,1624,1625],{},"phone_number",[779,1627,829],{},[779,1629,1630,1631,1152],{},"Number assigned to the agent, or ",[718,1632,1532],{},[758,1634,1635,1640,1643],{},[779,1636,1637],{},[718,1638,1639],{},"public_channel_enabled",[779,1641,1642],{},"boolean",[779,1644,1645,1648,1649,1152],{},[718,1646,1647],{},"true"," when the agent's public link is on. Default: ",[718,1650,1651],{},"false",[758,1653,1654,1659,1661],{},[779,1655,1656],{},[718,1657,1658],{},"created_at",[779,1660,786],{},[779,1662,1663],{},"Creation date (ISO 8601).",[758,1665,1666,1671,1673],{},[779,1667,1668],{},[718,1669,1670],{},"updated_at",[779,1672,786],{},[779,1674,1675],{},"Last change date (ISO 8601).",[711,1677,1679],{"className":842,"code":1678,"language":844,"meta":716,"style":716},"{\n  \"id\": \"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40\",\n  \"name\": \"Recepção\",\n  \"slug\": \"recepcao\",\n  \"description\": \"Atende as chamadas da recepção.\",\n  \"status\": \"active\",\n  \"agent_type\": \"inbound\",\n  \"editing_mode\": \"prompt\",\n  \"version\": 3,\n  \"phone_number\": \"+244900000000\",\n  \"public_channel_enabled\": false,\n  \"created_at\": \"2026-10-25T18:40:00Z\",\n  \"updated_at\": \"2026-10-25T18:40:00Z\"\n}\n",[718,1680,1681,1685,1704,1723,1742,1761,1779,1797,1815,1831,1850,1863,1882,1898],{"__ignoreMap":716},[721,1682,1683],{"class":723,"line":724},[721,1684,852],{"class":851},[721,1686,1687,1689,1691,1693,1695,1697,1700,1702],{"class":723,"line":855},[721,1688,858],{"class":851},[721,1690,1488],{"class":861},[721,1692,864],{"class":851},[721,1694,867],{"class":851},[721,1696,870],{"class":851},[721,1698,1699],{"class":873},"3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",[721,1701,864],{"class":851},[721,1703,1121],{"class":851},[721,1705,1706,1708,1710,1712,1714,1716,1719,1721],{"class":723,"line":880},[721,1707,858],{"class":851},[721,1709,1500],{"class":861},[721,1711,864],{"class":851},[721,1713,867],{"class":851},[721,1715,870],{"class":851},[721,1717,1718],{"class":873},"Recepção",[721,1720,864],{"class":851},[721,1722,1121],{"class":851},[721,1724,1725,1727,1729,1731,1733,1735,1738,1740],{"class":723,"line":954},[721,1726,858],{"class":851},[721,1728,1512],{"class":861},[721,1730,864],{"class":851},[721,1732,867],{"class":851},[721,1734,870],{"class":851},[721,1736,1737],{"class":873},"recepcao",[721,1739,864],{"class":851},[721,1741,1121],{"class":851},[721,1743,1744,1746,1748,1750,1752,1754,1757,1759],{"class":723,"line":997},[721,1745,858],{"class":851},[721,1747,1524],{"class":861},[721,1749,864],{"class":851},[721,1751,867],{"class":851},[721,1753,870],{"class":851},[721,1755,1756],{"class":873},"Atende as chamadas da recepção.",[721,1758,864],{"class":851},[721,1760,1121],{"class":851},[721,1762,1763,1765,1767,1769,1771,1773,1775,1777],{"class":723,"line":1003},[721,1764,858],{"class":851},[721,1766,1278],{"class":861},[721,1768,864],{"class":851},[721,1770,867],{"class":851},[721,1772,870],{"class":851},[721,1774,1549],{"class":873},[721,1776,864],{"class":851},[721,1778,1121],{"class":851},[721,1780,1781,1783,1785,1787,1789,1791,1793,1795],{"class":723,"line":1009},[721,1782,858],{"class":851},[721,1784,1566],{"class":861},[721,1786,864],{"class":851},[721,1788,867],{"class":851},[721,1790,870],{"class":851},[721,1792,1573],{"class":873},[721,1794,864],{"class":851},[721,1796,1121],{"class":851},[721,1798,1799,1801,1803,1805,1807,1809,1811,1813],{"class":723,"line":1015},[721,1800,858],{"class":851},[721,1802,1589],{"class":861},[721,1804,864],{"class":851},[721,1806,867],{"class":851},[721,1808,870],{"class":851},[721,1810,1596],{"class":873},[721,1812,864],{"class":851},[721,1814,1121],{"class":851},[721,1816,1817,1819,1821,1823,1825,1829],{"class":723,"line":1021},[721,1818,858],{"class":851},[721,1820,1609],{"class":861},[721,1822,864],{"class":851},[721,1824,867],{"class":851},[721,1826,1828],{"class":1827},"sbssI"," 3",[721,1830,1121],{"class":851},[721,1832,1833,1835,1837,1839,1841,1843,1846,1848],{"class":723,"line":1027},[721,1834,858],{"class":851},[721,1836,1625],{"class":861},[721,1838,864],{"class":851},[721,1840,867],{"class":851},[721,1842,870],{"class":851},[721,1844,1845],{"class":873},"+244900000000",[721,1847,864],{"class":851},[721,1849,1121],{"class":851},[721,1851,1852,1854,1856,1858,1860],{"class":723,"line":1033},[721,1853,858],{"class":851},[721,1855,1639],{"class":861},[721,1857,864],{"class":851},[721,1859,867],{"class":851},[721,1861,1862],{"class":851}," false,\n",[721,1864,1865,1867,1869,1871,1873,1875,1878,1880],{"class":723,"line":1039},[721,1866,858],{"class":851},[721,1868,1658],{"class":861},[721,1870,864],{"class":851},[721,1872,867],{"class":851},[721,1874,870],{"class":851},[721,1876,1877],{"class":873},"2026-10-25T18:40:00Z",[721,1879,864],{"class":851},[721,1881,1121],{"class":851},[721,1883,1884,1886,1888,1890,1892,1894,1896],{"class":723,"line":1045},[721,1885,858],{"class":851},[721,1887,1670],{"class":861},[721,1889,864],{"class":851},[721,1891,867],{"class":851},[721,1893,870],{"class":851},[721,1895,1877],{"class":873},[721,1897,877],{"class":851},[721,1899,1900],{"class":723,"line":1051},[721,1901,883],{"class":851},[742,1903,1905],{"id":1904},"errors","Errors",[752,1907,1908,1918],{},[755,1909,1910],{},[758,1911,1912,1915],{},[761,1913,1914],{},"Code",[761,1916,1917],{},"When",[774,1919,1920,1933,1946],{},[758,1921,1922,1927],{},[779,1923,1924],{},[718,1925,1926],{},"404",[779,1928,1929,1932],{},[718,1930,1931],{},"Agente não encontrado."," — the agent does not exist in this organization.",[758,1934,1935,1940],{},[779,1936,1937],{},[718,1938,1939],{},"409",[779,1941,1942,1945],{},[718,1943,1944],{},"O agente está arquivado. Restaure-o antes de publicar."," (archived: restore it first).",[758,1947,1948,1953],{},[779,1949,1950],{},[718,1951,1952],{},"422",[779,1954,1955,1956,1959],{},"The agent cannot be published — for example ",[718,1957,1958],{},"O agente precisa de instruções (prompt) antes de ser publicado."," (needs a prompt) or a flow validation error.",[728,1961,1962,1963,1546,1966,1546,1969,1546,1971,1974,1975,1978,1979,1152],{},"Errors common to every endpoint (",[718,1964,1965],{},"401",[718,1967,1968],{},"403",[718,1970,1952],{},[718,1972,1973],{},"429"," and ",[718,1976,1977],{},"5xx",") are in ",[1980,1981,1905],"a",{"href":1982},"\u002Fen\u002Fapi\u002Fapi-channel#errors",[1984,1985,1986],"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}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":716,"searchDepth":855,"depth":855,"links":1988},[1989,1992,1993,1994,1995,1997],{"id":744,"depth":855,"text":745,"children":1990},[1991],{"id":749,"depth":880,"text":750},{"id":795,"depth":855,"text":796},{"id":886,"depth":855,"text":887},{"id":1446,"depth":855,"text":1447},{"id":1463,"depth":855,"text":1996},"Response 200",{"id":1904,"depth":855,"text":1905},"Publishes the agent's draft as a new version and leaves the agent active.","md",null,{},{"title":360,"description":1998},"5CFL4guXNMImDZUxAvZpiYT9S8YQt2NdPR6NpaV_ac8",[2005,2007],{"title":356,"path":357,"stem":358,"description":2006,"children":-1},"Creates an agent, blank or from a Diska template (template_id).",{"title":258,"path":364,"stem":365,"description":2008,"children":-1},"The organization's call history and each call's detail: transcript, executed actions and post-call result.",1795253343310]