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