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