[{"data":1,"prerenderedAt":3999},["ShallowReactive",2],{"navigation_docs_en":3,"-en-api-oauth":705,"-en-api-oauth-surround":3994},[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":559,"body":707,"description":3988,"extension":3989,"links":3990,"meta":3991,"navigation":2664,"path":560,"seo":3992,"stem":561,"__hash__":3993},"docs_en\u002Fen\u002F12.api\u002F10.oauth.md",{"type":708,"value":709,"toc":3973},"minimark",[710,719,793,802,813,817,894,898,905,977,999,1003,1006,1035,1038,1048,1127,1138,1142,1148,1154,1166,1175,1181,1194,1198,1209,1296,1304,1310,1511,1541,1545,1548,1574,1770,1776,1782,1786,1797,1842,1853,1871,1881,1885,1888,1925,1947,1957,1960,2094,2108,2112,2119,2259,2266,2317,2321,2335,2421,2424,2588,2613,2635,2639,3927,3931,3969],[711,712,713,714,718],"p",{},"If your platform (a sales system, a CRM, an ERP) wants to use DISKA ",[715,716,717],"strong",{},"on behalf of its customers",", use OAuth 2.0. The customer clicks \"Connect with DISKA\", picks the company and the permissions on a DISKA screen, and your platform receives a token that only works for that company.",[720,721,722,737],"table",{},[723,724,725],"thead",{},[726,727,728,731,734],"tr",{},[729,730],"th",{},[729,732,733],{},"API key",[729,735,736],{},"OAuth",[738,739,740,752,767,778],"tbody",{},[726,741,742,746,749],{},[743,744,745],"td",{},"For whom",[743,747,748],{},"A company integrating its own systems",[743,750,751],{},"A platform serving many companies",[726,753,754,757,764],{},[743,755,756],{},"How it is obtained",[743,758,759,760,763],{},"The customer copies it from ",[715,761,762],{},"Definições → Chaves API"," (Settings → API keys) and pastes it into your platform",[743,765,766],{},"The customer authorizes on a DISKA screen",[726,768,769,772,775],{},[743,770,771],{},"Scope",[743,773,774],{},"The key's scopes (no scopes = full access)",[743,776,777],{},"Only the permissions the customer left checked",[726,779,780,783,786],{},[743,781,782],{},"Revoking",[743,784,785],{},"The customer deletes the key",[743,787,788,789,792],{},"The customer disconnects the app in ",[715,790,791],{},"Definições → Aplicações ligadas"," (Settings → Connected apps), or the app revokes",[794,795,797,798,801],"callout",{"type":796},"info","OAuth apps are in ",[715,799,800],{},"pilot",". To register your platform, contact DISKA: we switch the feature on for your organization.",[711,803,804,805,808,809,812],{},"The flow is standard OAuth 2.1: ",[715,806,807],{},"authorization code with PKCE"," (S256, mandatory), one-hour access tokens and ",[715,810,811],{},"rotating"," refresh tokens.",[814,815,314],"h2",{"id":816},"endpoints",[720,818,819,828],{},[723,820,821],{},[726,822,823,825],{},[729,824],{},[729,826,827],{},"URL",[738,829,830,841,851,861,871,881],{},[726,831,832,835],{},[743,833,834],{},"Metadata (RFC 8414)",[743,836,837],{},[838,839,840],"code",{},"https:\u002F\u002Fapi.diska.ai\u002F.well-known\u002Foauth-authorization-server",[726,842,843,846],{},[743,844,845],{},"Authorization (browser)",[743,847,848],{},[838,849,850],{},"https:\u002F\u002Fapp.diska.ai\u002Foauth\u002Fauthorize",[726,852,853,856],{},[743,854,855],{},"Token",[743,857,858],{},[838,859,860],{},"POST https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken",[726,862,863,866],{},[743,864,865],{},"Revocation (RFC 7009)",[743,867,868],{},[838,869,870],{},"POST https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Frevoke",[726,872,873,876],{},[743,874,875],{},"Token information",[743,877,878],{},[838,879,880],{},"GET https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Foauth\u002Ftoken-info",[726,882,883,885],{},[743,884,292],{},[743,886,887,890,891],{},[838,888,889],{},"https:\u002F\u002Fapi.diska.ai\u002Fv1",", with the same endpoints as the ",[892,893,302],"a",{"href":303},[814,895,897],{"id":896},"_1-register-the-app","1. Register the app",[711,899,900,901,904],{},"In ",[715,902,903],{},"Definições → Apps OAuth"," (Settings → OAuth apps; owners and admins of your organization):",[906,907,908,919,947,967],"ul",{},[909,910,911,914,915,918],"li",{},[715,912,913],{},"Name",", description, website, privacy policy and logo, shown on the authorization screen. The website, privacy policy and logo must be ",[838,916,917],{},"https:\u002F\u002F"," addresses.",[909,920,921,924,925],{},[715,922,923],{},"Environment",":\n",[906,926,927,937],{},[909,928,929,932,933,936],{},[715,930,931],{},"Teste"," (test): only members of your organization can authorize it, and only for your organization; ",[838,934,935],{},"http:\u002F\u002Flocalhost"," is accepted in redirect URIs. Use it while developing.",[909,938,939,942,943,946],{},[715,940,941],{},"Produção"," (live): any DISKA company can authorize it. Until it is ",[715,944,945],{},"verified by DISKA",", the authorization screen shows a warning and the app is limited to 100 connected companies. Changing a verified app's name, description, logo, website, privacy policy or redirect URIs, or adding permissions, makes it unverified again until DISKA reviews it.",[909,948,949,952,953,955,956,958,959,962,963,966],{},[715,950,951],{},"Redirect URIs",": up to 10, ",[838,954,917],{}," (or ",[838,957,935],{}," for test apps). Each request's ",[838,960,961],{},"redirect_uri"," must match one of them ",[715,964,965],{},"exactly",".",[909,968,969,972,973,976],{},[715,970,971],{},"Permissions",": the ones the app may ask for (see ",[892,974,971],{"href":975},"#permissions",").",[711,978,979,980,983,984,987,988,983,991,994,995,998],{},"You receive the ",[838,981,982],{},"client_id"," (",[838,985,986],{},"dsk_app_…",") and the ",[838,989,990],{},"client_secret",[838,992,993],{},"dsk_cs_…","). The secret is ",[715,996,997],{},"shown only once",": keep it on your platform's server, never in a browser or a mobile app. You can generate a new one at any time; the old one stops working immediately, and tokens already issued keep working.",[814,1000,1002],{"id":1001},"_2-send-the-customer-to-diska","2. Send the customer to DISKA",[711,1004,1005],{},"For each connection, generate:",[906,1007,1008,1015],{},[909,1009,1010,1011,1014],{},"a random ",[838,1012,1013],{},"state",", stored in the user's session (CSRF protection);",[909,1016,1010,1017,1020,1021,1024,1025,1028,1029,1031,1032,966],{},[838,1018,1019],{},"code_verifier"," (43 to 128 characters from ",[838,1022,1023],{},"A-Z a-z 0-9 - . _ ~",") and its ",[838,1026,1027],{},"code_challenge"," = base64url(SHA-256(",[838,1030,1019],{},")), without trailing ",[838,1033,1034],{},"=",[711,1036,1037],{},"Then redirect the browser:",[1039,1040,1046],"pre",{"className":1041,"code":1043,"language":1044,"meta":1045},[1042],"language-text","https:\u002F\u002Fapp.diska.ai\u002Foauth\u002Fauthorize\n  ?response_type=code\n  &client_id=dsk_app_…\n  &redirect_uri=https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback\n  &scope=organization:read agents:read calls:read calls:write\n  &state=…\n  &code_challenge=…\n  &code_challenge_method=S256\n","text","",[838,1047,1043],{"__ignoreMap":1045},[720,1049,1050,1059],{},[723,1051,1052],{},[726,1053,1054,1057],{},[729,1055,1056],{},"Parameter",[729,1058],{},[738,1060,1061,1073,1082,1091,1101,1110],{},[726,1062,1063,1068],{},[743,1064,1065],{},[838,1066,1067],{},"response_type",[743,1069,1070,1071,966],{},"Always ",[838,1072,838],{},[726,1074,1075,1079],{},[743,1076,1077],{},[838,1078,982],{},[743,1080,1081],{},"Your app's.",[726,1083,1084,1088],{},[743,1085,1086],{},[838,1087,961],{},[743,1089,1090],{},"One of the registered ones, exactly.",[726,1092,1093,1098],{},[743,1094,1095],{},[838,1096,1097],{},"scope",[743,1099,1100],{},"Space-separated permissions. Omitted = every permission the app may ask for.",[726,1102,1103,1107],{},[743,1104,1105],{},[838,1106,1013],{},[743,1108,1109],{},"Required. Returned unchanged.",[726,1111,1112,1120],{},[743,1113,1114,1116,1117],{},[838,1115,1027],{},", ",[838,1118,1119],{},"code_challenge_method",[743,1121,1122,1123,1126],{},"PKCE; ",[838,1124,1125],{},"S256"," only.",[711,1128,1129,1130,1133,1134,1137],{},"On the DISKA screen the customer signs in (if needed), picks the company (only owners and admins can connect apps) and can ",[715,1131,1132],{},"uncheck permissions",". The screen also lists what the app can ",[715,1135,1136],{},"never"," do: see API keys, manage members, see billing and minutes, change numbers, telephony or WhatsApp, or delete the company.",[814,1139,1141],{"id":1140},"_3-receive-the-code","3. Receive the code",[711,1143,1144,1145,1147],{},"If the customer approves, the browser returns to your ",[838,1146,961],{},":",[1039,1149,1152],{"className":1150,"code":1151,"language":1044,"meta":1045},[1042],"https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback?code=dsk_ac_…&state=…\n",[838,1153,1151],{"__ignoreMap":1045},[711,1155,1156,1157,1159,1160,1116,1163,966],{},"Check that ",[838,1158,1013],{}," is the one you stored. The code is valid for ",[715,1161,1162],{},"60 seconds",[715,1164,1165],{},"once",[711,1167,1168,1169,1171,1172,1174],{},"If the customer declines, or the request is wrong once ",[838,1170,982],{}," and ",[838,1173,961],{}," have been validated, it returns with an error:",[1039,1176,1179],{"className":1177,"code":1178,"language":1044,"meta":1045},[1042],"…\u002Fcallback?error=access_denied&error_description=…&state=…\n",[838,1180,1178],{"__ignoreMap":1045},[711,1182,1183,1184,1186,1187,1189,1190,1193],{},"An unknown ",[838,1185,982],{}," or an unregistered ",[838,1188,961],{}," does ",[715,1191,1192],{},"not"," return to your app: the error is shown on the DISKA screen.",[814,1195,1197],{"id":1196},"_4-exchange-the-code-for-tokens","4. Exchange the code for tokens",[711,1199,1200,1201,1204,1205,1208],{},"From your server, with HTTP Basic authentication (",[838,1202,1203],{},"client_id:client_secret",") and an ",[838,1206,1207],{},"application\u002Fx-www-form-urlencoded"," body:",[1039,1210,1214],{"className":1211,"code":1212,"language":1213,"meta":1045,"style":1045},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken \\\n  -u \"dsk_app_…:dsk_cs_…\" \\\n  -d grant_type=authorization_code \\\n  -d code=dsk_ac_… \\\n  -d redirect_uri=https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback \\\n  -d code_verifier=…\n","bash",[838,1215,1216,1239,1257,1268,1278,1288],{"__ignoreMap":1045},[1217,1218,1221,1225,1229,1232,1235],"span",{"class":1219,"line":1220},"line",1,[1217,1222,1224],{"class":1223},"sBMFI","curl",[1217,1226,1228],{"class":1227},"sfazB"," -X",[1217,1230,1231],{"class":1227}," POST",[1217,1233,1234],{"class":1227}," https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken",[1217,1236,1238],{"class":1237},"sTEyZ"," \\\n",[1217,1240,1242,1245,1249,1252,1255],{"class":1219,"line":1241},2,[1217,1243,1244],{"class":1227},"  -u",[1217,1246,1248],{"class":1247},"sMK4o"," \"",[1217,1250,1251],{"class":1227},"dsk_app_…:dsk_cs_…",[1217,1253,1254],{"class":1247},"\"",[1217,1256,1238],{"class":1237},[1217,1258,1260,1263,1266],{"class":1219,"line":1259},3,[1217,1261,1262],{"class":1227},"  -d",[1217,1264,1265],{"class":1227}," grant_type=authorization_code",[1217,1267,1238],{"class":1237},[1217,1269,1271,1273,1276],{"class":1219,"line":1270},4,[1217,1272,1262],{"class":1227},[1217,1274,1275],{"class":1227}," code=dsk_ac_…",[1217,1277,1238],{"class":1237},[1217,1279,1281,1283,1286],{"class":1219,"line":1280},5,[1217,1282,1262],{"class":1227},[1217,1284,1285],{"class":1227}," redirect_uri=https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback",[1217,1287,1238],{"class":1237},[1217,1289,1291,1293],{"class":1219,"line":1290},6,[1217,1292,1262],{"class":1227},[1217,1294,1295],{"class":1227}," code_verifier=…\n",[711,1297,1298,1299,1171,1301,1303],{},"You may send ",[838,1300,982],{},[838,1302,990],{}," in the body instead of Basic, but not both.",[711,1305,1306,1307,1147],{},"Response ",[838,1308,1309],{},"200",[1039,1311,1315],{"className":1312,"code":1313,"language":1314,"meta":1045,"style":1045},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"access_token\": \"dsk_oat_…\",\n  \"token_type\": \"Bearer\",\n  \"expires_in\": 3600,\n  \"refresh_token\": \"dsk_ort_…\",\n  \"scope\": \"organization:read agents:read calls:read calls:write\",\n  \"organization\": {\n    \"id\": \"6f1c…\",\n    \"name\": \"Loja Kianda\",\n    \"nif\": \"5000000000\"\n  }\n}\n","json",[838,1316,1317,1322,1345,1365,1382,1402,1421,1436,1458,1479,1499,1505],{"__ignoreMap":1045},[1217,1318,1319],{"class":1219,"line":1220},[1217,1320,1321],{"class":1247},"{\n",[1217,1323,1324,1327,1331,1333,1335,1337,1340,1342],{"class":1219,"line":1241},[1217,1325,1326],{"class":1247},"  \"",[1217,1328,1330],{"class":1329},"spNyl","access_token",[1217,1332,1254],{"class":1247},[1217,1334,1147],{"class":1247},[1217,1336,1248],{"class":1247},[1217,1338,1339],{"class":1227},"dsk_oat_…",[1217,1341,1254],{"class":1247},[1217,1343,1344],{"class":1247},",\n",[1217,1346,1347,1349,1352,1354,1356,1358,1361,1363],{"class":1219,"line":1259},[1217,1348,1326],{"class":1247},[1217,1350,1351],{"class":1329},"token_type",[1217,1353,1254],{"class":1247},[1217,1355,1147],{"class":1247},[1217,1357,1248],{"class":1247},[1217,1359,1360],{"class":1227},"Bearer",[1217,1362,1254],{"class":1247},[1217,1364,1344],{"class":1247},[1217,1366,1367,1369,1372,1374,1376,1380],{"class":1219,"line":1270},[1217,1368,1326],{"class":1247},[1217,1370,1371],{"class":1329},"expires_in",[1217,1373,1254],{"class":1247},[1217,1375,1147],{"class":1247},[1217,1377,1379],{"class":1378},"sbssI"," 3600",[1217,1381,1344],{"class":1247},[1217,1383,1384,1386,1389,1391,1393,1395,1398,1400],{"class":1219,"line":1280},[1217,1385,1326],{"class":1247},[1217,1387,1388],{"class":1329},"refresh_token",[1217,1390,1254],{"class":1247},[1217,1392,1147],{"class":1247},[1217,1394,1248],{"class":1247},[1217,1396,1397],{"class":1227},"dsk_ort_…",[1217,1399,1254],{"class":1247},[1217,1401,1344],{"class":1247},[1217,1403,1404,1406,1408,1410,1412,1414,1417,1419],{"class":1219,"line":1290},[1217,1405,1326],{"class":1247},[1217,1407,1097],{"class":1329},[1217,1409,1254],{"class":1247},[1217,1411,1147],{"class":1247},[1217,1413,1248],{"class":1247},[1217,1415,1416],{"class":1227},"organization:read agents:read calls:read calls:write",[1217,1418,1254],{"class":1247},[1217,1420,1344],{"class":1247},[1217,1422,1424,1426,1429,1431,1433],{"class":1219,"line":1423},7,[1217,1425,1326],{"class":1247},[1217,1427,1428],{"class":1329},"organization",[1217,1430,1254],{"class":1247},[1217,1432,1147],{"class":1247},[1217,1434,1435],{"class":1247}," {\n",[1217,1437,1439,1442,1445,1447,1449,1451,1454,1456],{"class":1219,"line":1438},8,[1217,1440,1441],{"class":1247},"    \"",[1217,1443,1444],{"class":1223},"id",[1217,1446,1254],{"class":1247},[1217,1448,1147],{"class":1247},[1217,1450,1248],{"class":1247},[1217,1452,1453],{"class":1227},"6f1c…",[1217,1455,1254],{"class":1247},[1217,1457,1344],{"class":1247},[1217,1459,1461,1463,1466,1468,1470,1472,1475,1477],{"class":1219,"line":1460},9,[1217,1462,1441],{"class":1247},[1217,1464,1465],{"class":1223},"name",[1217,1467,1254],{"class":1247},[1217,1469,1147],{"class":1247},[1217,1471,1248],{"class":1247},[1217,1473,1474],{"class":1227},"Loja Kianda",[1217,1476,1254],{"class":1247},[1217,1478,1344],{"class":1247},[1217,1480,1482,1484,1487,1489,1491,1493,1496],{"class":1219,"line":1481},10,[1217,1483,1441],{"class":1247},[1217,1485,1486],{"class":1223},"nif",[1217,1488,1254],{"class":1247},[1217,1490,1147],{"class":1247},[1217,1492,1248],{"class":1247},[1217,1494,1495],{"class":1227},"5000000000",[1217,1497,1498],{"class":1247},"\"\n",[1217,1500,1502],{"class":1219,"line":1501},11,[1217,1503,1504],{"class":1247},"  }\n",[1217,1506,1508],{"class":1219,"line":1507},12,[1217,1509,1510],{"class":1247},"}\n",[906,1512,1513,1522,1538],{},[909,1514,1515,1517,1518,1521],{},[838,1516,1097],{}," is what the customer ",[715,1519,1520],{},"granted",", which may be less than you asked for.",[909,1523,1524,1526,1527,1529,1530,1533,1534,1537],{},[838,1525,1428],{}," identifies the company. ",[838,1528,1486],{}," is sent only with the ",[838,1531,1532],{},"organization:read"," permission; without it, it is ",[838,1535,1536],{},"null",". Store the tokens against it. One customer may connect several companies; each has its own tokens.",[909,1539,1540],{},"If the same company authorizes the app again, the permissions become the new ones and the previous tokens stop working.",[814,1542,1544],{"id":1543},"_5-call-the-api","5. Call the API",[711,1546,1547],{},"Use the access token like an API key, in the same header:",[1039,1549,1551],{"className":1211,"code":1550,"language":1213,"meta":1045,"style":1045},"curl https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fme \\\n  -H \"Authorization: Bearer dsk_oat_…\"\n",[838,1552,1553,1562],{"__ignoreMap":1045},[1217,1554,1555,1557,1560],{"class":1219,"line":1220},[1217,1556,1224],{"class":1223},[1217,1558,1559],{"class":1227}," https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fme",[1217,1561,1238],{"class":1237},[1217,1563,1564,1567,1569,1572],{"class":1219,"line":1241},[1217,1565,1566],{"class":1227},"  -H",[1217,1568,1248],{"class":1247},[1217,1570,1571],{"class":1227},"Authorization: Bearer dsk_oat_…",[1217,1573,1498],{"class":1247},[1039,1575,1577],{"className":1312,"code":1576,"language":1314,"meta":1045,"style":1045},"{\n  \"organization\": { \"id\": \"6f1c…\", \"name\": \"Loja Kianda\", \"slug\": \"loja-kianda\" },\n  \"key\": null,\n  \"app\": {\n    \"client_id\": \"dsk_app_…\",\n    \"name\": \"Vende\",\n    \"scopes\": [\"organization:read\", \"agents:read\", \"calls:read\", \"calls:write\"]\n  }\n}\n",[838,1578,1579,1583,1648,1662,1675,1693,1712,1762,1766],{"__ignoreMap":1045},[1217,1580,1581],{"class":1219,"line":1220},[1217,1582,1321],{"class":1247},[1217,1584,1585,1587,1589,1591,1593,1596,1598,1600,1602,1604,1606,1608,1610,1613,1615,1617,1619,1621,1623,1625,1627,1629,1631,1634,1636,1638,1640,1643,1645],{"class":1219,"line":1241},[1217,1586,1326],{"class":1247},[1217,1588,1428],{"class":1329},[1217,1590,1254],{"class":1247},[1217,1592,1147],{"class":1247},[1217,1594,1595],{"class":1247}," {",[1217,1597,1248],{"class":1247},[1217,1599,1444],{"class":1223},[1217,1601,1254],{"class":1247},[1217,1603,1147],{"class":1247},[1217,1605,1248],{"class":1247},[1217,1607,1453],{"class":1227},[1217,1609,1254],{"class":1247},[1217,1611,1612],{"class":1247},",",[1217,1614,1248],{"class":1247},[1217,1616,1465],{"class":1223},[1217,1618,1254],{"class":1247},[1217,1620,1147],{"class":1247},[1217,1622,1248],{"class":1247},[1217,1624,1474],{"class":1227},[1217,1626,1254],{"class":1247},[1217,1628,1612],{"class":1247},[1217,1630,1248],{"class":1247},[1217,1632,1633],{"class":1223},"slug",[1217,1635,1254],{"class":1247},[1217,1637,1147],{"class":1247},[1217,1639,1248],{"class":1247},[1217,1641,1642],{"class":1227},"loja-kianda",[1217,1644,1254],{"class":1247},[1217,1646,1647],{"class":1247}," },\n",[1217,1649,1650,1652,1655,1657,1659],{"class":1219,"line":1259},[1217,1651,1326],{"class":1247},[1217,1653,1654],{"class":1329},"key",[1217,1656,1254],{"class":1247},[1217,1658,1147],{"class":1247},[1217,1660,1661],{"class":1247}," null,\n",[1217,1663,1664,1666,1669,1671,1673],{"class":1219,"line":1270},[1217,1665,1326],{"class":1247},[1217,1667,1668],{"class":1329},"app",[1217,1670,1254],{"class":1247},[1217,1672,1147],{"class":1247},[1217,1674,1435],{"class":1247},[1217,1676,1677,1679,1681,1683,1685,1687,1689,1691],{"class":1219,"line":1280},[1217,1678,1441],{"class":1247},[1217,1680,982],{"class":1223},[1217,1682,1254],{"class":1247},[1217,1684,1147],{"class":1247},[1217,1686,1248],{"class":1247},[1217,1688,986],{"class":1227},[1217,1690,1254],{"class":1247},[1217,1692,1344],{"class":1247},[1217,1694,1695,1697,1699,1701,1703,1705,1708,1710],{"class":1219,"line":1290},[1217,1696,1441],{"class":1247},[1217,1698,1465],{"class":1223},[1217,1700,1254],{"class":1247},[1217,1702,1147],{"class":1247},[1217,1704,1248],{"class":1247},[1217,1706,1707],{"class":1227},"Vende",[1217,1709,1254],{"class":1247},[1217,1711,1344],{"class":1247},[1217,1713,1714,1716,1719,1721,1723,1726,1728,1730,1732,1734,1736,1739,1741,1743,1745,1748,1750,1752,1754,1757,1759],{"class":1219,"line":1423},[1217,1715,1441],{"class":1247},[1217,1717,1718],{"class":1223},"scopes",[1217,1720,1254],{"class":1247},[1217,1722,1147],{"class":1247},[1217,1724,1725],{"class":1247}," [",[1217,1727,1254],{"class":1247},[1217,1729,1532],{"class":1227},[1217,1731,1254],{"class":1247},[1217,1733,1612],{"class":1247},[1217,1735,1248],{"class":1247},[1217,1737,1738],{"class":1227},"agents:read",[1217,1740,1254],{"class":1247},[1217,1742,1612],{"class":1247},[1217,1744,1248],{"class":1247},[1217,1746,1747],{"class":1227},"calls:read",[1217,1749,1254],{"class":1247},[1217,1751,1612],{"class":1247},[1217,1753,1248],{"class":1247},[1217,1755,1756],{"class":1227},"calls:write",[1217,1758,1254],{"class":1247},[1217,1760,1761],{"class":1247},"]\n",[1217,1763,1764],{"class":1219,"line":1438},[1217,1765,1504],{"class":1247},[1217,1767,1768],{"class":1219,"line":1460},[1217,1769,1510],{"class":1247},[711,1771,1772,1773,1775],{},"Every ",[892,1774,302],{"href":323}," endpoint works, always in the token's company and only within the granted permissions. Voice minutes, limits and per-company switches (outbound calls, campaigns, chat) are that company's.",[711,1777,1778,1781],{},[838,1779,1780],{},"GET \u002Fv1\u002Foauth\u002Ftoken-info"," returns the app, company, permissions and expiry of the token in use.",[814,1783,1785],{"id":1784},"_6-refresh","6. Refresh",[711,1787,1788,1789,1792,1793,1796],{},"The access token lasts ",[715,1790,1791],{},"1 hour",". Before it expires (or on a ",[838,1794,1795],{},"401","), exchange the refresh token for a new pair:",[1039,1798,1800],{"className":1211,"code":1799,"language":1213,"meta":1045,"style":1045},"curl -X POST https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken \\\n  -u \"dsk_app_…:dsk_cs_…\" \\\n  -d grant_type=refresh_token \\\n  -d refresh_token=dsk_ort_…\n",[838,1801,1802,1814,1826,1835],{"__ignoreMap":1045},[1217,1803,1804,1806,1808,1810,1812],{"class":1219,"line":1220},[1217,1805,1224],{"class":1223},[1217,1807,1228],{"class":1227},[1217,1809,1231],{"class":1227},[1217,1811,1234],{"class":1227},[1217,1813,1238],{"class":1237},[1217,1815,1816,1818,1820,1822,1824],{"class":1219,"line":1241},[1217,1817,1244],{"class":1227},[1217,1819,1248],{"class":1247},[1217,1821,1251],{"class":1227},[1217,1823,1254],{"class":1247},[1217,1825,1238],{"class":1237},[1217,1827,1828,1830,1833],{"class":1219,"line":1259},[1217,1829,1262],{"class":1227},[1217,1831,1832],{"class":1227}," grant_type=refresh_token",[1217,1834,1238],{"class":1237},[1217,1836,1837,1839],{"class":1219,"line":1270},[1217,1838,1262],{"class":1227},[1217,1840,1841],{"class":1227}," refresh_token=dsk_ort_…\n",[711,1843,1844,1845,1848,1849,1852],{},"The response has the same shape as step 4. Store ",[715,1846,1847],{},"both"," new tokens: the refresh token also changes on every refresh (",[715,1850,1851],{},"rotation","), and the previous access token stops working.",[794,1854,1856,1857,1859,1860,1863,1864,1867,1868,1870],{"type":1855},"warning","A refresh token works ",[715,1858,1165],{},". If an already-used refresh token shows up again, DISKA assumes it was stolen: it ",[715,1861,1862],{},"disconnects the company"," and the app has to ask for authorization again. Refresh from a single process at a time (for example, with a lock per company) and store the new pair before using it. If the same refresh token arrives twice within 10 seconds (two processes refreshing at once), the second request gets ",[838,1865,1866],{},"invalid_grant"," and the company is ",[715,1869,1192],{}," disconnected: use the pair the first request received.",[711,1872,1873,1874,1877,1878,1880],{},"An unused refresh token expires after ",[715,1875,1876],{},"90 days",". Each refresh starts 90 days again. On refresh, ",[838,1879,1097],{}," may be omitted; if you send it, it must equal what was granted.",[814,1882,1884],{"id":1883},"_7-revoke","7. Revoke",[711,1886,1887],{},"When the customer disconnects DISKA in your platform:",[1039,1889,1891],{"className":1211,"code":1890,"language":1213,"meta":1045,"style":1045},"curl -X POST https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Frevoke \\\n  -u \"dsk_app_…:dsk_cs_…\" \\\n  -d token=dsk_ort_…\n",[838,1892,1893,1906,1918],{"__ignoreMap":1045},[1217,1894,1895,1897,1899,1901,1904],{"class":1219,"line":1220},[1217,1896,1224],{"class":1223},[1217,1898,1228],{"class":1227},[1217,1900,1231],{"class":1227},[1217,1902,1903],{"class":1227}," https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Frevoke",[1217,1905,1238],{"class":1237},[1217,1907,1908,1910,1912,1914,1916],{"class":1219,"line":1241},[1217,1909,1244],{"class":1227},[1217,1911,1248],{"class":1247},[1217,1913,1251],{"class":1227},[1217,1915,1254],{"class":1247},[1217,1917,1238],{"class":1237},[1217,1919,1920,1922],{"class":1219,"line":1259},[1217,1921,1262],{"class":1227},[1217,1923,1924],{"class":1227}," token=dsk_ort_…\n",[906,1926,1927,1934,1941],{},[909,1928,1929,1930,1933],{},"Revoking the ",[715,1931,1932],{},"refresh token"," disconnects the company: every token stops working.",[909,1935,1936,1937,1940],{},"Revoking an ",[715,1938,1939],{},"access token"," ends only that token.",[909,1942,1943,1944,1946],{},"The response is always ",[838,1945,1309],{},", even for an unknown token.",[711,1948,1949,1950,1952,1953,966],{},"The customer can also disconnect the app, or take permissions away, in ",[715,1951,791],{},": it takes effect on the next request. Your app is told by ",[892,1954,1956],{"href":1955},"#app-webhooks","webhook",[814,1958,971],{"id":1959},"permissions",[720,1961,1962,1972],{},[723,1963,1964],{},[726,1965,1966,1969],{},[729,1967,1968],{},"Permission",[729,1970,1971],{},"Grants",[738,1973,1974,1983,1992,2002,2015,2025,2035,2045,2058,2068,2082],{},[726,1975,1976,1980],{},[743,1977,1978],{},[838,1979,1532],{},[743,1981,1982],{},"The company's tax number (NIF). The company's id and name always come in the token response.",[726,1984,1985,1989],{},[743,1986,1987],{},[838,1988,1738],{},[743,1990,1991],{},"List and view agents.",[726,1993,1994,1999],{},[743,1995,1996],{},[838,1997,1998],{},"agents:write",[743,2000,2001],{},"Create, edit and publish agents.",[726,2003,2004,2008],{},[743,2005,2006],{},[838,2007,1747],{},[743,2009,2010,2011,2014],{},"Calls, transcripts, post-call results and the ",[838,2012,2013],{},"call.completed"," webhook.",[726,2016,2017,2021],{},[743,2018,2019],{},[838,2020,1756],{},[743,2022,2023,966],{},[892,2024,381],{"href":382},[726,2026,2027,2032],{},[743,2028,2029],{},[838,2030,2031],{},"analytics:read",[743,2033,2034],{},"Analytics.",[726,2036,2037,2042],{},[743,2038,2039],{},[838,2040,2041],{},"phone-numbers:read",[743,2043,2044],{},"Numbers.",[726,2046,2047,2055],{},[743,2048,2049,1116,2052],{},[838,2050,2051],{},"knowledge:read",[838,2053,2054],{},"knowledge:write",[743,2056,2057],{},"Knowledge bases.",[726,2059,2060,2065],{},[743,2061,2062],{},[838,2063,2064],{},"recordings:read",[743,2066,2067],{},"Recordings.",[726,2069,2070,2078],{},[743,2071,2072,1116,2075],{},[838,2073,2074],{},"campaigns:read",[838,2076,2077],{},"campaigns:write",[743,2079,2080,966],{},[892,2081,399],{"href":400},[726,2083,2084,2089],{},[743,2085,2086],{},[838,2087,2088],{},"chats:write",[743,2090,2091,2093],{},[892,2092,441],{"href":442}," with agents.",[711,2095,2096,2097,2100,2101,2103,2104,2107],{},"There is no permission to manage the company's own webhooks (",[838,2098,2099],{},"\u002Fv1\u002Fwebhook-endpoints","): the app receives events on its own ",[892,2102,1956],{"href":1955},". A token without a permission gets ",[838,2105,2106],{},"403"," on that endpoint, even if the company has it on other keys.",[814,2109,2111],{"id":2110},"errors","Errors",[711,2113,2114,2115,2118],{},"On the token and revocation endpoints, errors follow OAuth (",[838,2116,2117],{},"{\"error\", \"error_description\"}","):",[720,2120,2121,2136],{},[723,2122,2123],{},[726,2124,2125,2128,2133],{},[729,2126,2127],{},"HTTP",[729,2129,2130],{},[838,2131,2132],{},"error",[729,2134,2135],{},"When",[738,2137,2138,2156,2171,2188,2203,2223,2235,2247],{},[726,2139,2140,2142,2147],{},[743,2141,1795],{},[743,2143,2144],{},[838,2145,2146],{},"invalid_client",[743,2148,2149,2150,2152,2153,2155],{},"Wrong ",[838,2151,982],{}," or ",[838,2154,990],{},", or missing authentication.",[726,2157,2158,2161,2166],{},[743,2159,2160],{},"400",[743,2162,2163],{},[838,2164,2165],{},"invalid_request",[743,2167,2168,2169,966],{},"A missing parameter, or an invalid ",[838,2170,1019],{},[726,2172,2173,2175,2179],{},[743,2174,2160],{},[743,2176,2177],{},[838,2178,1866],{},[743,2180,2181,2182,2184,2185,2187],{},"Code or refresh token invalid, expired, already used, issued to another app, or a ",[838,2183,961],{},"\u002F",[838,2186,1019],{}," that does not match.",[726,2189,2190,2192,2197],{},[743,2191,2160],{},[743,2193,2194],{},[838,2195,2196],{},"invalid_scope",[743,2198,2199,2200,2202],{},"A ",[838,2201,1097],{}," different from the grant on refresh.",[726,2204,2205,2207,2212],{},[743,2206,2160],{},[743,2208,2209],{},[838,2210,2211],{},"unsupported_grant_type",[743,2213,2199,2214,2217,2218,2152,2221,966],{},[838,2215,2216],{},"grant_type"," other than ",[838,2219,2220],{},"authorization_code",[838,2222,1388],{},[726,2224,2225,2227,2232],{},[743,2226,2160],{},[743,2228,2229],{},[838,2230,2231],{},"unauthorized_client",[743,2233,2234],{},"The app is suspended by DISKA.",[726,2236,2237,2239,2244],{},[743,2238,2106],{},[743,2240,2241],{},[838,2242,2243],{},"app_connection_limit",[743,2245,2246],{},"The (unverified) app reached its limit of connected companies.",[726,2248,2249,2251,2256],{},[743,2250,2106],{},[743,2252,2253],{},[838,2254,2255],{},"organization_suspended",[743,2257,2258],{},"The company is suspended. The connection stays: refresh once it is reactivated.",[711,2260,2261,2262,2265],{},"On the API (",[838,2263,2264],{},"\u002Fv1","), with a token:",[720,2267,2268,2276],{},[723,2269,2270],{},[726,2271,2272,2274],{},[729,2273,2127],{},[729,2275,2135],{},[738,2277,2278,2289,2299,2309],{},[726,2279,2280,2282],{},[743,2281,1795],{},[743,2283,2284,2285,2288],{},"Invalid, expired or revoked token (",[838,2286,2287],{},"WWW-Authenticate: Bearer error=\"invalid_token\"","). Refresh, or ask for authorization again.",[726,2290,2291,2293],{},[743,2292,2106],{},[743,2294,2295,2296,976],{},"Missing permission (",[838,2297,2298],{},"WWW-Authenticate: Bearer error=\"insufficient_scope\", scope=\"…\"",[726,2300,2301,2303],{},[743,2302,2106],{},[743,2304,2305,2308],{},[838,2306,2307],{},"Organização suspensa."," (company suspended)",[726,2310,2311,2314],{},[743,2312,2313],{},"402",[743,2315,2316],{},"The company ran out of voice minutes (only on requests that use voice).",[814,2318,2320],{"id":2319},"app-webhooks","App webhooks",[711,2322,2323,2324,2327,2328,2330,2331,2334],{},"Each app has ",[715,2325,2326],{},"one"," webhook URL, set in ",[715,2329,903],{},", which receives events from every connected company. Setting the URL generates a signing secret (",[838,2332,2333],{},"dskw_…","), shown once.",[720,2336,2337,2346],{},[723,2338,2339],{},[726,2340,2341,2344],{},[729,2342,2343],{},"Event",[729,2345,2135],{},[738,2347,2348,2358,2372,2382,2407],{},[726,2349,2350,2355],{},[743,2351,2352],{},[838,2353,2354],{},"app.authorization.created",[743,2356,2357],{},"A company connected the app (or connected it again).",[726,2359,2360,2365],{},[743,2361,2362],{},[838,2363,2364],{},"app.authorization.updated",[743,2366,2367,2368,2371],{},"The company took permissions away. ",[838,2369,2370],{},"data.scopes"," has those left.",[726,2373,2374,2379],{},[743,2375,2376],{},[838,2377,2378],{},"app.authorization.revoked",[743,2380,2381],{},"The connection ended: by the company, by DISKA, or because a refresh token was reused. Not sent when the app itself revoked.",[726,2383,2384,2388],{},[743,2385,2386],{},[838,2387,2013],{},[743,2389,2390,2391,2393,2394,2397,2398,2403,2404,2406],{},"A call ended, in companies that granted ",[838,2392,1747],{},". ",[838,2395,2396],{},"data"," is the same content as the ",[892,2399,2400,2402],{"href":311},[838,2401,2013],{}," webhook",". If the company disconnects the app or removes ",[838,2405,1747],{},", pending deliveries are cancelled.",[726,2408,2409,2414],{},[743,2410,2411],{},[838,2412,2413],{},"ping",[743,2415,2416,2417,2420],{},"Sent by the ",[715,2418,2419],{},"Enviar ping"," (send ping) button.",[711,2422,2423],{},"Body:",[1039,2425,2427],{"className":1312,"code":2426,"language":1314,"meta":1045,"style":1045},"{\n  \"id\": \"0b6f…\",\n  \"event\": \"app.authorization.revoked\",\n  \"created_at\": \"2026-11-19T10:15:02.123456+00:00\",\n  \"organization_id\": \"6f1c…\",\n  \"data\": {\n    \"connection_id\": \"a1b2…\",\n    \"reason\": \"member\",\n    \"revoked_at\": \"2026-11-19T10:15:02.120000+00:00\"\n  }\n}\n",[838,2428,2429,2433,2452,2471,2491,2510,2522,2542,2562,2580,2584],{"__ignoreMap":1045},[1217,2430,2431],{"class":1219,"line":1220},[1217,2432,1321],{"class":1247},[1217,2434,2435,2437,2439,2441,2443,2445,2448,2450],{"class":1219,"line":1241},[1217,2436,1326],{"class":1247},[1217,2438,1444],{"class":1329},[1217,2440,1254],{"class":1247},[1217,2442,1147],{"class":1247},[1217,2444,1248],{"class":1247},[1217,2446,2447],{"class":1227},"0b6f…",[1217,2449,1254],{"class":1247},[1217,2451,1344],{"class":1247},[1217,2453,2454,2456,2459,2461,2463,2465,2467,2469],{"class":1219,"line":1259},[1217,2455,1326],{"class":1247},[1217,2457,2458],{"class":1329},"event",[1217,2460,1254],{"class":1247},[1217,2462,1147],{"class":1247},[1217,2464,1248],{"class":1247},[1217,2466,2378],{"class":1227},[1217,2468,1254],{"class":1247},[1217,2470,1344],{"class":1247},[1217,2472,2473,2475,2478,2480,2482,2484,2487,2489],{"class":1219,"line":1270},[1217,2474,1326],{"class":1247},[1217,2476,2477],{"class":1329},"created_at",[1217,2479,1254],{"class":1247},[1217,2481,1147],{"class":1247},[1217,2483,1248],{"class":1247},[1217,2485,2486],{"class":1227},"2026-11-19T10:15:02.123456+00:00",[1217,2488,1254],{"class":1247},[1217,2490,1344],{"class":1247},[1217,2492,2493,2495,2498,2500,2502,2504,2506,2508],{"class":1219,"line":1280},[1217,2494,1326],{"class":1247},[1217,2496,2497],{"class":1329},"organization_id",[1217,2499,1254],{"class":1247},[1217,2501,1147],{"class":1247},[1217,2503,1248],{"class":1247},[1217,2505,1453],{"class":1227},[1217,2507,1254],{"class":1247},[1217,2509,1344],{"class":1247},[1217,2511,2512,2514,2516,2518,2520],{"class":1219,"line":1290},[1217,2513,1326],{"class":1247},[1217,2515,2396],{"class":1329},[1217,2517,1254],{"class":1247},[1217,2519,1147],{"class":1247},[1217,2521,1435],{"class":1247},[1217,2523,2524,2526,2529,2531,2533,2535,2538,2540],{"class":1219,"line":1423},[1217,2525,1441],{"class":1247},[1217,2527,2528],{"class":1223},"connection_id",[1217,2530,1254],{"class":1247},[1217,2532,1147],{"class":1247},[1217,2534,1248],{"class":1247},[1217,2536,2537],{"class":1227},"a1b2…",[1217,2539,1254],{"class":1247},[1217,2541,1344],{"class":1247},[1217,2543,2544,2546,2549,2551,2553,2555,2558,2560],{"class":1219,"line":1438},[1217,2545,1441],{"class":1247},[1217,2547,2548],{"class":1223},"reason",[1217,2550,1254],{"class":1247},[1217,2552,1147],{"class":1247},[1217,2554,1248],{"class":1247},[1217,2556,2557],{"class":1227},"member",[1217,2559,1254],{"class":1247},[1217,2561,1344],{"class":1247},[1217,2563,2564,2566,2569,2571,2573,2575,2578],{"class":1219,"line":1460},[1217,2565,1441],{"class":1247},[1217,2567,2568],{"class":1223},"revoked_at",[1217,2570,1254],{"class":1247},[1217,2572,1147],{"class":1247},[1217,2574,1248],{"class":1247},[1217,2576,2577],{"class":1227},"2026-11-19T10:15:02.120000+00:00",[1217,2579,1498],{"class":1247},[1217,2581,2582],{"class":1219,"line":1481},[1217,2583,1504],{"class":1247},[1217,2585,2586],{"class":1219,"line":1501},[1217,2587,1510],{"class":1247},[711,2589,2590,2591,2595,2596,1116,2599,2602,2603,2605,2606,1171,2609,2612],{},"Headers and signature are the same as the ",[892,2592,2594],{"href":2593},"\u002Fen\u002Fapi\u002Fwebhooks#verify-the-signature","DISKA API webhooks",": ",[838,2597,2598],{},"X-Diska-Event",[838,2600,2601],{},"X-Diska-Delivery"," (equal to ",[838,2604,1444],{},"), ",[838,2607,2608],{},"X-Diska-Timestamp",[838,2610,2611],{},"X-Diska-Signature = sha256=\u003CHMAC-SHA256(\"{timestamp}.{body}\")>",", with the app's webhook secret.",[711,2614,2615,2616,2619,2620,2623,2624,2627,2628,2630,2631,2634],{},"Answer ",[838,2617,2618],{},"2xx"," within 10 seconds. A failed delivery is retried after ",[715,2621,2622],{},"1 min, 5 min, 30 min, 2 h and 8 h"," (6 attempts). A ",[838,2625,2626],{},"410"," response stops the retries. Use ",[838,2629,1444],{}," to ignore repeats. ",[715,2632,2633],{},"Ver entregas"," (view deliveries) shows the last 25 deliveries with their status and error.",[814,2636,2638],{"id":2637},"full-example","Full example",[2640,2641,2642,2963],"code-group",{},[1039,2643,2648],{"className":2644,"code":2645,"filename":2646,"language":2647,"meta":1045,"style":1045},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import base64, hashlib, os, secrets\nimport requests\n\nCLIENT_ID = os.environ[\"DISKA_CLIENT_ID\"]\nCLIENT_SECRET = os.environ[\"DISKA_CLIENT_SECRET\"]\nREDIRECT_URI = \"https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback\"\n\n\ndef start(session: dict) -> str:\n    \"\"\"Return the URL to redirect the browser to.\"\"\"\n    verifier = secrets.token_urlsafe(48)\n    challenge = base64.urlsafe_b64encode(hashlib.sha256(verifier.encode()).digest()).rstrip(b\"=\").decode()\n    session[\"diska_state\"] = secrets.token_urlsafe(24)\n    session[\"diska_verifier\"] = verifier\n    params = {\n        \"response_type\": \"code\",\n        \"client_id\": CLIENT_ID,\n        \"redirect_uri\": REDIRECT_URI,\n        \"scope\": \"organization:read agents:read calls:read\",\n        \"state\": session[\"diska_state\"],\n        \"code_challenge\": challenge,\n        \"code_challenge_method\": \"S256\",\n    }\n    return requests.Request(\"GET\", \"https:\u002F\u002Fapp.diska.ai\u002Foauth\u002Fauthorize\", params=params).prepare().url\n\n\ndef callback(session: dict, query: dict) -> dict:\n    \"\"\"Exchange the code for tokens; store them against tokens['organization']['id'].\"\"\"\n    if query.get(\"error\"):\n        raise RuntimeError(query.get(\"error_description\") or query[\"error\"])\n    if query.get(\"state\") != session.pop(\"diska_state\", None):\n        raise RuntimeError(\"invalid state\")\n    response = requests.post(\n        \"https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken\",\n        auth=(CLIENT_ID, CLIENT_SECRET),\n        data={\n            \"grant_type\": \"authorization_code\",\n            \"code\": query[\"code\"],\n            \"redirect_uri\": REDIRECT_URI,\n            \"code_verifier\": session.pop(\"diska_verifier\"),\n        },\n        timeout=15,\n    )\n    response.raise_for_status()\n    return response.json()\n\n\ndef refresh(refresh_token: str) -> dict:\n    response = requests.post(\n        \"https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken\",\n        auth=(CLIENT_ID, CLIENT_SECRET),\n        data={\"grant_type\": \"refresh_token\", \"refresh_token\": refresh_token},\n        timeout=15,\n    )\n    response.raise_for_status()\n    return response.json()  # store the new pair before using it\n","Python","python",[838,2649,2650,2655,2660,2666,2671,2676,2681,2685,2689,2694,2699,2704,2709,2715,2721,2727,2733,2739,2745,2751,2757,2763,2769,2775,2781,2786,2791,2797,2803,2809,2815,2821,2827,2833,2839,2845,2851,2857,2863,2869,2875,2881,2887,2893,2899,2905,2910,2915,2921,2926,2931,2936,2942,2947,2952,2957],{"__ignoreMap":1045},[1217,2651,2652],{"class":1219,"line":1220},[1217,2653,2654],{},"import base64, hashlib, os, secrets\n",[1217,2656,2657],{"class":1219,"line":1241},[1217,2658,2659],{},"import requests\n",[1217,2661,2662],{"class":1219,"line":1259},[1217,2663,2665],{"emptyLinePlaceholder":2664},true,"\n",[1217,2667,2668],{"class":1219,"line":1270},[1217,2669,2670],{},"CLIENT_ID = os.environ[\"DISKA_CLIENT_ID\"]\n",[1217,2672,2673],{"class":1219,"line":1280},[1217,2674,2675],{},"CLIENT_SECRET = os.environ[\"DISKA_CLIENT_SECRET\"]\n",[1217,2677,2678],{"class":1219,"line":1290},[1217,2679,2680],{},"REDIRECT_URI = \"https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback\"\n",[1217,2682,2683],{"class":1219,"line":1423},[1217,2684,2665],{"emptyLinePlaceholder":2664},[1217,2686,2687],{"class":1219,"line":1438},[1217,2688,2665],{"emptyLinePlaceholder":2664},[1217,2690,2691],{"class":1219,"line":1460},[1217,2692,2693],{},"def start(session: dict) -> str:\n",[1217,2695,2696],{"class":1219,"line":1481},[1217,2697,2698],{},"    \"\"\"Return the URL to redirect the browser to.\"\"\"\n",[1217,2700,2701],{"class":1219,"line":1501},[1217,2702,2703],{},"    verifier = secrets.token_urlsafe(48)\n",[1217,2705,2706],{"class":1219,"line":1507},[1217,2707,2708],{},"    challenge = base64.urlsafe_b64encode(hashlib.sha256(verifier.encode()).digest()).rstrip(b\"=\").decode()\n",[1217,2710,2712],{"class":1219,"line":2711},13,[1217,2713,2714],{},"    session[\"diska_state\"] = secrets.token_urlsafe(24)\n",[1217,2716,2718],{"class":1219,"line":2717},14,[1217,2719,2720],{},"    session[\"diska_verifier\"] = verifier\n",[1217,2722,2724],{"class":1219,"line":2723},15,[1217,2725,2726],{},"    params = {\n",[1217,2728,2730],{"class":1219,"line":2729},16,[1217,2731,2732],{},"        \"response_type\": \"code\",\n",[1217,2734,2736],{"class":1219,"line":2735},17,[1217,2737,2738],{},"        \"client_id\": CLIENT_ID,\n",[1217,2740,2742],{"class":1219,"line":2741},18,[1217,2743,2744],{},"        \"redirect_uri\": REDIRECT_URI,\n",[1217,2746,2748],{"class":1219,"line":2747},19,[1217,2749,2750],{},"        \"scope\": \"organization:read agents:read calls:read\",\n",[1217,2752,2754],{"class":1219,"line":2753},20,[1217,2755,2756],{},"        \"state\": session[\"diska_state\"],\n",[1217,2758,2760],{"class":1219,"line":2759},21,[1217,2761,2762],{},"        \"code_challenge\": challenge,\n",[1217,2764,2766],{"class":1219,"line":2765},22,[1217,2767,2768],{},"        \"code_challenge_method\": \"S256\",\n",[1217,2770,2772],{"class":1219,"line":2771},23,[1217,2773,2774],{},"    }\n",[1217,2776,2778],{"class":1219,"line":2777},24,[1217,2779,2780],{},"    return requests.Request(\"GET\", \"https:\u002F\u002Fapp.diska.ai\u002Foauth\u002Fauthorize\", params=params).prepare().url\n",[1217,2782,2784],{"class":1219,"line":2783},25,[1217,2785,2665],{"emptyLinePlaceholder":2664},[1217,2787,2789],{"class":1219,"line":2788},26,[1217,2790,2665],{"emptyLinePlaceholder":2664},[1217,2792,2794],{"class":1219,"line":2793},27,[1217,2795,2796],{},"def callback(session: dict, query: dict) -> dict:\n",[1217,2798,2800],{"class":1219,"line":2799},28,[1217,2801,2802],{},"    \"\"\"Exchange the code for tokens; store them against tokens['organization']['id'].\"\"\"\n",[1217,2804,2806],{"class":1219,"line":2805},29,[1217,2807,2808],{},"    if query.get(\"error\"):\n",[1217,2810,2812],{"class":1219,"line":2811},30,[1217,2813,2814],{},"        raise RuntimeError(query.get(\"error_description\") or query[\"error\"])\n",[1217,2816,2818],{"class":1219,"line":2817},31,[1217,2819,2820],{},"    if query.get(\"state\") != session.pop(\"diska_state\", None):\n",[1217,2822,2824],{"class":1219,"line":2823},32,[1217,2825,2826],{},"        raise RuntimeError(\"invalid state\")\n",[1217,2828,2830],{"class":1219,"line":2829},33,[1217,2831,2832],{},"    response = requests.post(\n",[1217,2834,2836],{"class":1219,"line":2835},34,[1217,2837,2838],{},"        \"https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken\",\n",[1217,2840,2842],{"class":1219,"line":2841},35,[1217,2843,2844],{},"        auth=(CLIENT_ID, CLIENT_SECRET),\n",[1217,2846,2848],{"class":1219,"line":2847},36,[1217,2849,2850],{},"        data={\n",[1217,2852,2854],{"class":1219,"line":2853},37,[1217,2855,2856],{},"            \"grant_type\": \"authorization_code\",\n",[1217,2858,2860],{"class":1219,"line":2859},38,[1217,2861,2862],{},"            \"code\": query[\"code\"],\n",[1217,2864,2866],{"class":1219,"line":2865},39,[1217,2867,2868],{},"            \"redirect_uri\": REDIRECT_URI,\n",[1217,2870,2872],{"class":1219,"line":2871},40,[1217,2873,2874],{},"            \"code_verifier\": session.pop(\"diska_verifier\"),\n",[1217,2876,2878],{"class":1219,"line":2877},41,[1217,2879,2880],{},"        },\n",[1217,2882,2884],{"class":1219,"line":2883},42,[1217,2885,2886],{},"        timeout=15,\n",[1217,2888,2890],{"class":1219,"line":2889},43,[1217,2891,2892],{},"    )\n",[1217,2894,2896],{"class":1219,"line":2895},44,[1217,2897,2898],{},"    response.raise_for_status()\n",[1217,2900,2902],{"class":1219,"line":2901},45,[1217,2903,2904],{},"    return response.json()\n",[1217,2906,2908],{"class":1219,"line":2907},46,[1217,2909,2665],{"emptyLinePlaceholder":2664},[1217,2911,2913],{"class":1219,"line":2912},47,[1217,2914,2665],{"emptyLinePlaceholder":2664},[1217,2916,2918],{"class":1219,"line":2917},48,[1217,2919,2920],{},"def refresh(refresh_token: str) -> dict:\n",[1217,2922,2924],{"class":1219,"line":2923},49,[1217,2925,2832],{},[1217,2927,2929],{"class":1219,"line":2928},50,[1217,2930,2838],{},[1217,2932,2934],{"class":1219,"line":2933},51,[1217,2935,2844],{},[1217,2937,2939],{"class":1219,"line":2938},52,[1217,2940,2941],{},"        data={\"grant_type\": \"refresh_token\", \"refresh_token\": refresh_token},\n",[1217,2943,2945],{"class":1219,"line":2944},53,[1217,2946,2886],{},[1217,2948,2950],{"class":1219,"line":2949},54,[1217,2951,2892],{},[1217,2953,2955],{"class":1219,"line":2954},55,[1217,2956,2898],{},[1217,2958,2960],{"class":1219,"line":2959},56,[1217,2961,2962],{},"    return response.json()  # store the new pair before using it\n",[1039,2964,2969],{"className":2965,"code":2966,"filename":2967,"language":2968,"meta":1045,"style":1045},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import crypto from 'node:crypto'\n\nconst CLIENT_ID = process.env.DISKA_CLIENT_ID\nconst CLIENT_SECRET = process.env.DISKA_CLIENT_SECRET\nconst REDIRECT_URI = 'https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback'\nconst basic = 'Basic ' + Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString('base64')\n\nexport function start(session) {\n  const verifier = crypto.randomBytes(48).toString('base64url')\n  const challenge = crypto.createHash('sha256').update(verifier).digest('base64url')\n  session.diskaState = crypto.randomBytes(24).toString('base64url')\n  session.diskaVerifier = verifier\n  const url = new URL('https:\u002F\u002Fapp.diska.ai\u002Foauth\u002Fauthorize')\n  url.search = new URLSearchParams({\n    response_type: 'code',\n    client_id: CLIENT_ID,\n    redirect_uri: REDIRECT_URI,\n    scope: 'organization:read agents:read calls:read',\n    state: session.diskaState,\n    code_challenge: challenge,\n    code_challenge_method: 'S256'\n  })\n  return url.toString()\n}\n\nasync function token(body) {\n  const response = await fetch('https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken', {\n    method: 'POST',\n    headers: { 'Authorization': basic, 'Content-Type': 'application\u002Fx-www-form-urlencoded' },\n    body: new URLSearchParams(body)\n  })\n  const json = await response.json()\n  if (!response.ok) throw new Error(json.error_description || json.error)\n  return json\n}\n\nexport async function callback(session, query) {\n  if (query.error) throw new Error(query.error_description || query.error)\n  if (query.state !== session.diskaState) throw new Error('invalid state')\n  delete session.diskaState\n  return token({\n    grant_type: 'authorization_code',\n    code: query.code,\n    redirect_uri: REDIRECT_URI,\n    code_verifier: session.diskaVerifier\n  }) \u002F\u002F store the tokens against organization.id\n}\n\nexport const refresh = refreshToken => token({ grant_type: 'refresh_token', refresh_token: refreshToken })\n","Node.js","js",[838,2970,2971,2992,2996,3019,3039,3055,3126,3130,3151,3193,3247,3286,3300,3325,3346,3361,3373,3385,3401,3417,3428,3441,3448,3462,3466,3470,3489,3517,3533,3573,3590,3596,3615,3664,3671,3675,3679,3704,3743,3783,3795,3805,3820,3835,3845,3859,3869,3873,3877],{"__ignoreMap":1045},[1217,2972,2973,2977,2980,2983,2986,2989],{"class":1219,"line":1220},[1217,2974,2976],{"class":2975},"s7zQu","import",[1217,2978,2979],{"class":1237}," crypto ",[1217,2981,2982],{"class":2975},"from",[1217,2984,2985],{"class":1247}," '",[1217,2987,2988],{"class":1227},"node:crypto",[1217,2990,2991],{"class":1247},"'\n",[1217,2993,2994],{"class":1219,"line":1241},[1217,2995,2665],{"emptyLinePlaceholder":2664},[1217,2997,2998,3001,3004,3006,3009,3011,3014,3016],{"class":1219,"line":1259},[1217,2999,3000],{"class":1329},"const",[1217,3002,3003],{"class":1237}," CLIENT_ID ",[1217,3005,1034],{"class":1247},[1217,3007,3008],{"class":1237}," process",[1217,3010,966],{"class":1247},[1217,3012,3013],{"class":1237},"env",[1217,3015,966],{"class":1247},[1217,3017,3018],{"class":1237},"DISKA_CLIENT_ID\n",[1217,3020,3021,3023,3026,3028,3030,3032,3034,3036],{"class":1219,"line":1270},[1217,3022,3000],{"class":1329},[1217,3024,3025],{"class":1237}," CLIENT_SECRET ",[1217,3027,1034],{"class":1247},[1217,3029,3008],{"class":1237},[1217,3031,966],{"class":1247},[1217,3033,3013],{"class":1237},[1217,3035,966],{"class":1247},[1217,3037,3038],{"class":1237},"DISKA_CLIENT_SECRET\n",[1217,3040,3041,3043,3046,3048,3050,3053],{"class":1219,"line":1280},[1217,3042,3000],{"class":1329},[1217,3044,3045],{"class":1237}," REDIRECT_URI ",[1217,3047,1034],{"class":1247},[1217,3049,2985],{"class":1247},[1217,3051,3052],{"class":1227},"https:\u002F\u002Fapp.example.com\u002Fintegrations\u002Fdiska\u002Fcallback",[1217,3054,2991],{"class":1247},[1217,3056,3057,3059,3062,3064,3066,3069,3072,3075,3078,3080,3083,3086,3089,3092,3095,3097,3100,3103,3106,3109,3111,3114,3116,3118,3121,3123],{"class":1219,"line":1290},[1217,3058,3000],{"class":1329},[1217,3060,3061],{"class":1237}," basic ",[1217,3063,1034],{"class":1247},[1217,3065,2985],{"class":1247},[1217,3067,3068],{"class":1227},"Basic ",[1217,3070,3071],{"class":1247},"'",[1217,3073,3074],{"class":1247}," +",[1217,3076,3077],{"class":1237}," Buffer",[1217,3079,966],{"class":1247},[1217,3081,2982],{"class":3082},"s2Zo4",[1217,3084,3085],{"class":1237},"(",[1217,3087,3088],{"class":1247},"`${",[1217,3090,3091],{"class":1237},"CLIENT_ID",[1217,3093,3094],{"class":1247},"}",[1217,3096,1147],{"class":1227},[1217,3098,3099],{"class":1247},"${",[1217,3101,3102],{"class":1237},"CLIENT_SECRET",[1217,3104,3105],{"class":1247},"}`",[1217,3107,3108],{"class":1237},")",[1217,3110,966],{"class":1247},[1217,3112,3113],{"class":3082},"toString",[1217,3115,3085],{"class":1237},[1217,3117,3071],{"class":1247},[1217,3119,3120],{"class":1227},"base64",[1217,3122,3071],{"class":1247},[1217,3124,3125],{"class":1237},")\n",[1217,3127,3128],{"class":1219,"line":1423},[1217,3129,2665],{"emptyLinePlaceholder":2664},[1217,3131,3132,3135,3138,3141,3143,3147,3149],{"class":1219,"line":1438},[1217,3133,3134],{"class":2975},"export",[1217,3136,3137],{"class":1329}," function",[1217,3139,3140],{"class":3082}," start",[1217,3142,3085],{"class":1247},[1217,3144,3146],{"class":3145},"sHdIc","session",[1217,3148,3108],{"class":1247},[1217,3150,1435],{"class":1247},[1217,3152,3153,3156,3159,3162,3165,3167,3170,3173,3176,3178,3180,3182,3184,3186,3189,3191],{"class":1219,"line":1460},[1217,3154,3155],{"class":1329},"  const",[1217,3157,3158],{"class":1237}," verifier",[1217,3160,3161],{"class":1247}," =",[1217,3163,3164],{"class":1237}," crypto",[1217,3166,966],{"class":1247},[1217,3168,3169],{"class":3082},"randomBytes",[1217,3171,3085],{"class":3172},"swJcz",[1217,3174,3175],{"class":1378},"48",[1217,3177,3108],{"class":3172},[1217,3179,966],{"class":1247},[1217,3181,3113],{"class":3082},[1217,3183,3085],{"class":3172},[1217,3185,3071],{"class":1247},[1217,3187,3188],{"class":1227},"base64url",[1217,3190,3071],{"class":1247},[1217,3192,3125],{"class":3172},[1217,3194,3195,3197,3200,3202,3204,3206,3209,3211,3213,3216,3218,3220,3222,3225,3227,3230,3232,3234,3237,3239,3241,3243,3245],{"class":1219,"line":1481},[1217,3196,3155],{"class":1329},[1217,3198,3199],{"class":1237}," challenge",[1217,3201,3161],{"class":1247},[1217,3203,3164],{"class":1237},[1217,3205,966],{"class":1247},[1217,3207,3208],{"class":3082},"createHash",[1217,3210,3085],{"class":3172},[1217,3212,3071],{"class":1247},[1217,3214,3215],{"class":1227},"sha256",[1217,3217,3071],{"class":1247},[1217,3219,3108],{"class":3172},[1217,3221,966],{"class":1247},[1217,3223,3224],{"class":3082},"update",[1217,3226,3085],{"class":3172},[1217,3228,3229],{"class":1237},"verifier",[1217,3231,3108],{"class":3172},[1217,3233,966],{"class":1247},[1217,3235,3236],{"class":3082},"digest",[1217,3238,3085],{"class":3172},[1217,3240,3071],{"class":1247},[1217,3242,3188],{"class":1227},[1217,3244,3071],{"class":1247},[1217,3246,3125],{"class":3172},[1217,3248,3249,3252,3254,3257,3259,3261,3263,3265,3267,3270,3272,3274,3276,3278,3280,3282,3284],{"class":1219,"line":1501},[1217,3250,3251],{"class":1237},"  session",[1217,3253,966],{"class":1247},[1217,3255,3256],{"class":1237},"diskaState",[1217,3258,3161],{"class":1247},[1217,3260,3164],{"class":1237},[1217,3262,966],{"class":1247},[1217,3264,3169],{"class":3082},[1217,3266,3085],{"class":3172},[1217,3268,3269],{"class":1378},"24",[1217,3271,3108],{"class":3172},[1217,3273,966],{"class":1247},[1217,3275,3113],{"class":3082},[1217,3277,3085],{"class":3172},[1217,3279,3071],{"class":1247},[1217,3281,3188],{"class":1227},[1217,3283,3071],{"class":1247},[1217,3285,3125],{"class":3172},[1217,3287,3288,3290,3292,3295,3297],{"class":1219,"line":1507},[1217,3289,3251],{"class":1237},[1217,3291,966],{"class":1247},[1217,3293,3294],{"class":1237},"diskaVerifier",[1217,3296,3161],{"class":1247},[1217,3298,3299],{"class":1237}," verifier\n",[1217,3301,3302,3304,3307,3309,3312,3315,3317,3319,3321,3323],{"class":1219,"line":2711},[1217,3303,3155],{"class":1329},[1217,3305,3306],{"class":1237}," url",[1217,3308,3161],{"class":1247},[1217,3310,3311],{"class":1247}," new",[1217,3313,3314],{"class":3082}," URL",[1217,3316,3085],{"class":3172},[1217,3318,3071],{"class":1247},[1217,3320,850],{"class":1227},[1217,3322,3071],{"class":1247},[1217,3324,3125],{"class":3172},[1217,3326,3327,3330,3332,3335,3337,3339,3342,3344],{"class":1219,"line":2717},[1217,3328,3329],{"class":1237},"  url",[1217,3331,966],{"class":1247},[1217,3333,3334],{"class":1237},"search",[1217,3336,3161],{"class":1247},[1217,3338,3311],{"class":1247},[1217,3340,3341],{"class":3082}," URLSearchParams",[1217,3343,3085],{"class":3172},[1217,3345,1321],{"class":1247},[1217,3347,3348,3351,3353,3355,3357,3359],{"class":1219,"line":2723},[1217,3349,3350],{"class":3172},"    response_type",[1217,3352,1147],{"class":1247},[1217,3354,2985],{"class":1247},[1217,3356,838],{"class":1227},[1217,3358,3071],{"class":1247},[1217,3360,1344],{"class":1247},[1217,3362,3363,3366,3368,3371],{"class":1219,"line":2729},[1217,3364,3365],{"class":3172},"    client_id",[1217,3367,1147],{"class":1247},[1217,3369,3370],{"class":1237}," CLIENT_ID",[1217,3372,1344],{"class":1247},[1217,3374,3375,3378,3380,3383],{"class":1219,"line":2735},[1217,3376,3377],{"class":3172},"    redirect_uri",[1217,3379,1147],{"class":1247},[1217,3381,3382],{"class":1237}," REDIRECT_URI",[1217,3384,1344],{"class":1247},[1217,3386,3387,3390,3392,3394,3397,3399],{"class":1219,"line":2741},[1217,3388,3389],{"class":3172},"    scope",[1217,3391,1147],{"class":1247},[1217,3393,2985],{"class":1247},[1217,3395,3396],{"class":1227},"organization:read agents:read calls:read",[1217,3398,3071],{"class":1247},[1217,3400,1344],{"class":1247},[1217,3402,3403,3406,3408,3411,3413,3415],{"class":1219,"line":2747},[1217,3404,3405],{"class":3172},"    state",[1217,3407,1147],{"class":1247},[1217,3409,3410],{"class":1237}," session",[1217,3412,966],{"class":1247},[1217,3414,3256],{"class":1237},[1217,3416,1344],{"class":1247},[1217,3418,3419,3422,3424,3426],{"class":1219,"line":2753},[1217,3420,3421],{"class":3172},"    code_challenge",[1217,3423,1147],{"class":1247},[1217,3425,3199],{"class":1237},[1217,3427,1344],{"class":1247},[1217,3429,3430,3433,3435,3437,3439],{"class":1219,"line":2759},[1217,3431,3432],{"class":3172},"    code_challenge_method",[1217,3434,1147],{"class":1247},[1217,3436,2985],{"class":1247},[1217,3438,1125],{"class":1227},[1217,3440,2991],{"class":1247},[1217,3442,3443,3446],{"class":1219,"line":2765},[1217,3444,3445],{"class":1247},"  }",[1217,3447,3125],{"class":3172},[1217,3449,3450,3453,3455,3457,3459],{"class":1219,"line":2771},[1217,3451,3452],{"class":2975},"  return",[1217,3454,3306],{"class":1237},[1217,3456,966],{"class":1247},[1217,3458,3113],{"class":3082},[1217,3460,3461],{"class":3172},"()\n",[1217,3463,3464],{"class":1219,"line":2777},[1217,3465,1510],{"class":1247},[1217,3467,3468],{"class":1219,"line":2783},[1217,3469,2665],{"emptyLinePlaceholder":2664},[1217,3471,3472,3475,3477,3480,3482,3485,3487],{"class":1219,"line":2788},[1217,3473,3474],{"class":1329},"async",[1217,3476,3137],{"class":1329},[1217,3478,3479],{"class":3082}," token",[1217,3481,3085],{"class":1247},[1217,3483,3484],{"class":3145},"body",[1217,3486,3108],{"class":1247},[1217,3488,1435],{"class":1247},[1217,3490,3491,3493,3496,3498,3501,3504,3506,3508,3511,3513,3515],{"class":1219,"line":2793},[1217,3492,3155],{"class":1329},[1217,3494,3495],{"class":1237}," response",[1217,3497,3161],{"class":1247},[1217,3499,3500],{"class":2975}," await",[1217,3502,3503],{"class":3082}," fetch",[1217,3505,3085],{"class":3172},[1217,3507,3071],{"class":1247},[1217,3509,3510],{"class":1227},"https:\u002F\u002Fapi.diska.ai\u002Foauth\u002Ftoken",[1217,3512,3071],{"class":1247},[1217,3514,1612],{"class":1247},[1217,3516,1435],{"class":1247},[1217,3518,3519,3522,3524,3526,3529,3531],{"class":1219,"line":2799},[1217,3520,3521],{"class":3172},"    method",[1217,3523,1147],{"class":1247},[1217,3525,2985],{"class":1247},[1217,3527,3528],{"class":1227},"POST",[1217,3530,3071],{"class":1247},[1217,3532,1344],{"class":1247},[1217,3534,3535,3538,3540,3542,3544,3547,3549,3551,3554,3556,3558,3561,3563,3565,3567,3569,3571],{"class":1219,"line":2805},[1217,3536,3537],{"class":3172},"    headers",[1217,3539,1147],{"class":1247},[1217,3541,1595],{"class":1247},[1217,3543,2985],{"class":1247},[1217,3545,3546],{"class":3172},"Authorization",[1217,3548,3071],{"class":1247},[1217,3550,1147],{"class":1247},[1217,3552,3553],{"class":1237}," basic",[1217,3555,1612],{"class":1247},[1217,3557,2985],{"class":1247},[1217,3559,3560],{"class":3172},"Content-Type",[1217,3562,3071],{"class":1247},[1217,3564,1147],{"class":1247},[1217,3566,2985],{"class":1247},[1217,3568,1207],{"class":1227},[1217,3570,3071],{"class":1247},[1217,3572,1647],{"class":1247},[1217,3574,3575,3578,3580,3582,3584,3586,3588],{"class":1219,"line":2811},[1217,3576,3577],{"class":3172},"    body",[1217,3579,1147],{"class":1247},[1217,3581,3311],{"class":1247},[1217,3583,3341],{"class":3082},[1217,3585,3085],{"class":3172},[1217,3587,3484],{"class":1237},[1217,3589,3125],{"class":3172},[1217,3591,3592,3594],{"class":1219,"line":2817},[1217,3593,3445],{"class":1247},[1217,3595,3125],{"class":3172},[1217,3597,3598,3600,3603,3605,3607,3609,3611,3613],{"class":1219,"line":2823},[1217,3599,3155],{"class":1329},[1217,3601,3602],{"class":1237}," json",[1217,3604,3161],{"class":1247},[1217,3606,3500],{"class":2975},[1217,3608,3495],{"class":1237},[1217,3610,966],{"class":1247},[1217,3612,1314],{"class":3082},[1217,3614,3461],{"class":3172},[1217,3616,3617,3620,3622,3625,3628,3630,3633,3636,3639,3641,3644,3646,3648,3650,3653,3656,3658,3660,3662],{"class":1219,"line":2829},[1217,3618,3619],{"class":2975},"  if",[1217,3621,983],{"class":3172},[1217,3623,3624],{"class":1247},"!",[1217,3626,3627],{"class":1237},"response",[1217,3629,966],{"class":1247},[1217,3631,3632],{"class":1237},"ok",[1217,3634,3635],{"class":3172},") ",[1217,3637,3638],{"class":2975},"throw",[1217,3640,3311],{"class":1247},[1217,3642,3643],{"class":3082}," Error",[1217,3645,3085],{"class":3172},[1217,3647,1314],{"class":1237},[1217,3649,966],{"class":1247},[1217,3651,3652],{"class":1237},"error_description",[1217,3654,3655],{"class":1247}," ||",[1217,3657,3602],{"class":1237},[1217,3659,966],{"class":1247},[1217,3661,2132],{"class":1237},[1217,3663,3125],{"class":3172},[1217,3665,3666,3668],{"class":1219,"line":2835},[1217,3667,3452],{"class":2975},[1217,3669,3670],{"class":1237}," json\n",[1217,3672,3673],{"class":1219,"line":2841},[1217,3674,1510],{"class":1247},[1217,3676,3677],{"class":1219,"line":2847},[1217,3678,2665],{"emptyLinePlaceholder":2664},[1217,3680,3681,3683,3686,3688,3691,3693,3695,3697,3700,3702],{"class":1219,"line":2853},[1217,3682,3134],{"class":2975},[1217,3684,3685],{"class":1329}," async",[1217,3687,3137],{"class":1329},[1217,3689,3690],{"class":3082}," callback",[1217,3692,3085],{"class":1247},[1217,3694,3146],{"class":3145},[1217,3696,1612],{"class":1247},[1217,3698,3699],{"class":3145}," query",[1217,3701,3108],{"class":1247},[1217,3703,1435],{"class":1247},[1217,3705,3706,3708,3710,3713,3715,3717,3719,3721,3723,3725,3727,3729,3731,3733,3735,3737,3739,3741],{"class":1219,"line":2859},[1217,3707,3619],{"class":2975},[1217,3709,983],{"class":3172},[1217,3711,3712],{"class":1237},"query",[1217,3714,966],{"class":1247},[1217,3716,2132],{"class":1237},[1217,3718,3635],{"class":3172},[1217,3720,3638],{"class":2975},[1217,3722,3311],{"class":1247},[1217,3724,3643],{"class":3082},[1217,3726,3085],{"class":3172},[1217,3728,3712],{"class":1237},[1217,3730,966],{"class":1247},[1217,3732,3652],{"class":1237},[1217,3734,3655],{"class":1247},[1217,3736,3699],{"class":1237},[1217,3738,966],{"class":1247},[1217,3740,2132],{"class":1237},[1217,3742,3125],{"class":3172},[1217,3744,3745,3747,3749,3751,3753,3755,3758,3760,3762,3764,3766,3768,3770,3772,3774,3776,3779,3781],{"class":1219,"line":2865},[1217,3746,3619],{"class":2975},[1217,3748,983],{"class":3172},[1217,3750,3712],{"class":1237},[1217,3752,966],{"class":1247},[1217,3754,1013],{"class":1237},[1217,3756,3757],{"class":1247}," !==",[1217,3759,3410],{"class":1237},[1217,3761,966],{"class":1247},[1217,3763,3256],{"class":1237},[1217,3765,3635],{"class":3172},[1217,3767,3638],{"class":2975},[1217,3769,3311],{"class":1247},[1217,3771,3643],{"class":3082},[1217,3773,3085],{"class":3172},[1217,3775,3071],{"class":1247},[1217,3777,3778],{"class":1227},"invalid state",[1217,3780,3071],{"class":1247},[1217,3782,3125],{"class":3172},[1217,3784,3785,3788,3790,3792],{"class":1219,"line":2871},[1217,3786,3787],{"class":1247},"  delete",[1217,3789,3410],{"class":1237},[1217,3791,966],{"class":1247},[1217,3793,3794],{"class":1237},"diskaState\n",[1217,3796,3797,3799,3801,3803],{"class":1219,"line":2877},[1217,3798,3452],{"class":2975},[1217,3800,3479],{"class":3082},[1217,3802,3085],{"class":3172},[1217,3804,1321],{"class":1247},[1217,3806,3807,3810,3812,3814,3816,3818],{"class":1219,"line":2883},[1217,3808,3809],{"class":3172},"    grant_type",[1217,3811,1147],{"class":1247},[1217,3813,2985],{"class":1247},[1217,3815,2220],{"class":1227},[1217,3817,3071],{"class":1247},[1217,3819,1344],{"class":1247},[1217,3821,3822,3825,3827,3829,3831,3833],{"class":1219,"line":2889},[1217,3823,3824],{"class":3172},"    code",[1217,3826,1147],{"class":1247},[1217,3828,3699],{"class":1237},[1217,3830,966],{"class":1247},[1217,3832,838],{"class":1237},[1217,3834,1344],{"class":1247},[1217,3836,3837,3839,3841,3843],{"class":1219,"line":2895},[1217,3838,3377],{"class":3172},[1217,3840,1147],{"class":1247},[1217,3842,3382],{"class":1237},[1217,3844,1344],{"class":1247},[1217,3846,3847,3850,3852,3854,3856],{"class":1219,"line":2901},[1217,3848,3849],{"class":3172},"    code_verifier",[1217,3851,1147],{"class":1247},[1217,3853,3410],{"class":1237},[1217,3855,966],{"class":1247},[1217,3857,3858],{"class":1237},"diskaVerifier\n",[1217,3860,3861,3863,3865],{"class":1219,"line":2907},[1217,3862,3445],{"class":1247},[1217,3864,3635],{"class":3172},[1217,3866,3868],{"class":3867},"sHwdD","\u002F\u002F store the tokens against organization.id\n",[1217,3870,3871],{"class":1219,"line":2912},[1217,3872,1510],{"class":1247},[1217,3874,3875],{"class":1219,"line":2917},[1217,3876,2665],{"emptyLinePlaceholder":2664},[1217,3878,3879,3881,3884,3887,3889,3892,3895,3897,3899,3902,3905,3907,3909,3911,3913,3915,3918,3920,3923,3925],{"class":1219,"line":2923},[1217,3880,3134],{"class":2975},[1217,3882,3883],{"class":1329}," const",[1217,3885,3886],{"class":1237}," refresh ",[1217,3888,1034],{"class":1247},[1217,3890,3891],{"class":3145}," refreshToken",[1217,3893,3894],{"class":1329}," =>",[1217,3896,3479],{"class":3082},[1217,3898,3085],{"class":1237},[1217,3900,3901],{"class":1247},"{",[1217,3903,3904],{"class":3172}," grant_type",[1217,3906,1147],{"class":1247},[1217,3908,2985],{"class":1247},[1217,3910,1388],{"class":1227},[1217,3912,3071],{"class":1247},[1217,3914,1612],{"class":1247},[1217,3916,3917],{"class":3172}," refresh_token",[1217,3919,1147],{"class":1247},[1217,3921,3922],{"class":1237}," refreshToken ",[1217,3924,3094],{"class":1247},[1217,3926,3125],{"class":1237},[814,3928,3930],{"id":3929},"limits","Limits",[906,3932,3933,3942,3951],{},[909,3934,3935,1171,3938,3941],{},[838,3936,3937],{},"POST \u002Foauth\u002Ftoken",[838,3939,3940],{},"\u002Foauth\u002Frevoke",": 60 requests per minute per app and IP address.",[909,3943,3944,3946,3947,3950],{},[838,3945,2264],{}," with a token: 120 requests per minute ",[715,3948,3949],{},"per connected company",", so one company never uses up another's limit.",[909,3952,3953,3954,3957,3958,3960,3961,3964,3965,3968],{},"Outbound calls (",[838,3955,3956],{},"POST \u002Fv1\u002Foutbound-calls","): up to 200 per day (UTC) ",[715,3959,3949],{},". Campaign recipients (",[838,3962,3963],{},"POST \u002Fv1\u002Fcampaigns\u002F{id}\u002Frecipients","): up to 2000 per day per connected company. These come on top of the company's own limits; above them the API answers ",[838,3966,3967],{},"429"," and the company sees it in its audit log. Talk to DISKA if you need more.",[3970,3971,3972],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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 .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":1045,"searchDepth":1241,"depth":1241,"links":3974},[3975,3976,3977,3978,3979,3980,3981,3982,3983,3984,3985,3986,3987],{"id":816,"depth":1241,"text":314},{"id":896,"depth":1241,"text":897},{"id":1001,"depth":1241,"text":1002},{"id":1140,"depth":1241,"text":1141},{"id":1196,"depth":1241,"text":1197},{"id":1543,"depth":1241,"text":1544},{"id":1784,"depth":1241,"text":1785},{"id":1883,"depth":1241,"text":1884},{"id":1959,"depth":1241,"text":971},{"id":2110,"depth":1241,"text":2111},{"id":2319,"depth":1241,"text":2320},{"id":2637,"depth":1241,"text":2638},{"id":3929,"depth":1241,"text":3930},"Let your platform's customers connect their DISKA account in one click, without copying API keys.","md",null,{},{"title":559,"description":3988},"20jUl5v0OLMffIGDRoMIQi8B43S2HPkz8Y_gLx23e_I",[3995,3997],{"title":555,"path":556,"stem":557,"description":3996,"children":-1},"How the DISKA API evolves, what can change without notice and the change history.",{"title":563,"path":564,"stem":565,"description":3998,"children":-1},"The external services Diska agents use today — calendar, SMS, WhatsApp and your own systems.",1795253317677]