[{"data":1,"prerenderedAt":2168},["ShallowReactive",2],{"navigation_docs_pt":3,"-pt-api-reference-knowledge-upload-pdf":706,"-pt-api-reference-knowledge-upload-pdf-surround":2163},[4,8,26,52,101,131,181,219,237,247,269,291,562,572,613,662,692],{"title":5,"path":6,"stem":7},"Introdução","\u002Fpt\u002Fintroduction","pt\u002F01.introduction",{"title":9,"path":10,"stem":11,"children":12},"Começar","\u002Fpt\u002Fgetting-started","pt\u002F02.getting-started\u002Findex",[13,14,18,22],{"title":9,"path":10,"stem":11},{"title":15,"path":16,"stem":17},"Configuração inicial","\u002Fpt\u002Fgetting-started\u002Finitial-setup","pt\u002F02.getting-started\u002F01.initial-setup",{"title":19,"path":20,"stem":21},"Criar o primeiro agente","\u002Fpt\u002Fgetting-started\u002Ffirst-agent","pt\u002F02.getting-started\u002F02.first-agent",{"title":23,"path":24,"stem":25},"Fazer uma chamada de teste","\u002Fpt\u002Fgetting-started\u002Ftest-call","pt\u002F02.getting-started\u002F03.test-call",{"title":27,"path":28,"stem":29,"children":30},"Conceitos","\u002Fpt\u002Fconcepts","pt\u002F03.concepts\u002Findex",[31,32,36,40,44,48],{"title":27,"path":28,"stem":29},{"title":33,"path":34,"stem":35},"Agente de voz","\u002Fpt\u002Fconcepts\u002Fagent","pt\u002F03.concepts\u002F01.agent",{"title":37,"path":38,"stem":39},"Fluxo","\u002Fpt\u002Fconcepts\u002Fflow","pt\u002F03.concepts\u002F02.flow",{"title":41,"path":42,"stem":43},"Runtime","\u002Fpt\u002Fconcepts\u002Fruntime","pt\u002F03.concepts\u002F03.runtime",{"title":45,"path":46,"stem":47},"Organização e permissões","\u002Fpt\u002Fconcepts\u002Forganization","pt\u002F03.concepts\u002F04.organization",{"title":49,"path":50,"stem":51},"Prompt Builder","\u002Fpt\u002Fconcepts\u002Fprompt-builder","pt\u002F03.concepts\u002F05.prompt-builder",{"title":53,"path":54,"stem":55,"children":56},"Guias","\u002Fpt\u002Fguides","pt\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},"\u002Fpt\u002Fguides\u002Fcreate-first-agent","pt\u002F04.guides\u002F01.create-first-agent",{"title":62,"path":63,"stem":64},"Usar o Flow Builder","\u002Fpt\u002Fguides\u002Fuse-flow-builder","pt\u002F04.guides\u002F02.use-flow-builder",{"title":66,"path":67,"stem":68},"Publicar e receber chamadas","\u002Fpt\u002Fguides\u002Fpublish-agent","pt\u002F04.guides\u002F03.publish-agent",{"title":70,"path":71,"stem":72},"Testar um agente","\u002Fpt\u002Fguides\u002Ftest-agent","pt\u002F04.guides\u002F04.test-agent",{"title":74,"path":75,"stem":76},"Transferir para humano","\u002Fpt\u002Fguides\u002Ftransfer-to-human","pt\u002F04.guides\u002F05.transfer-to-human",{"title":78,"path":79,"stem":80},"Marcar reuniões com Cal.com","\u002Fpt\u002Fguides\u002Fbook-meetings","pt\u002F04.guides\u002F06.book-meetings",{"title":82,"path":83,"stem":84},"Enviar SMS","\u002Fpt\u002Fguides\u002Fsend-sms","pt\u002F04.guides\u002F07.send-sms",{"title":86,"path":87,"stem":88},"Configurar uma lista telefónica","\u002Fpt\u002Fguides\u002Fconfigure-phone-book","pt\u002F04.guides\u002F08.configure-phone-book",{"title":90,"path":91,"stem":92},"Incorporar o widget de voz","\u002Fpt\u002Fguides\u002Fembed-widget","pt\u002F04.guides\u002F09.embed-widget",{"title":94,"path":95,"stem":96},"Gravar chamadas","\u002Fpt\u002Fguides\u002Frecord-calls","pt\u002F04.guides\u002F10.record-calls",{"title":98,"path":99,"stem":100},"Ocultar dados pessoais","\u002Fpt\u002Fguides\u002Fredact-personal-data","pt\u002F04.guides\u002F11.redact-personal-data",{"title":102,"path":103,"stem":104,"children":105},"Flow Builder","\u002Fpt\u002Fflow-builder","pt\u002F05.flow-builder\u002Findex",[106,107,111,115,119,123,127],{"title":102,"path":103,"stem":104},{"title":108,"path":109,"stem":110},"Interface do builder","\u002Fpt\u002Fflow-builder\u002Finterface","pt\u002F05.flow-builder\u002F01.interface",{"title":112,"path":113,"stem":114},"Estrutura de um fluxo","\u002Fpt\u002Fflow-builder\u002Fstructure","pt\u002F05.flow-builder\u002F02.structure",{"title":116,"path":117,"stem":118},"Variáveis do fluxo","\u002Fpt\u002Fflow-builder\u002Fvariables","pt\u002F05.flow-builder\u002F03.variables",{"title":120,"path":121,"stem":122},"Condições e caminhos","\u002Fpt\u002Fflow-builder\u002Fbranches","pt\u002F05.flow-builder\u002F04.branches",{"title":124,"path":125,"stem":126},"Testar um fluxo","\u002Fpt\u002Fflow-builder\u002Ftesting","pt\u002F05.flow-builder\u002F05.testing",{"title":128,"path":129,"stem":130},"Validação e publicação","\u002Fpt\u002Fflow-builder\u002Fvalidation-publishing","pt\u002F05.flow-builder\u002F06.validation-publishing",{"title":132,"path":133,"stem":134,"children":135},"Nós","\u002Fpt\u002Fnodes","pt\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},"Conversação","\u002Fpt\u002Fnodes\u002Fconversation","pt\u002F06.nodes\u002F01.conversation",{"title":142,"path":143,"stem":144},"Mensagem","\u002Fpt\u002Fnodes\u002Fmessage","pt\u002F06.nodes\u002F02.message",{"title":146,"path":147,"stem":148},"Dividir o caminho","\u002Fpt\u002Fnodes\u002Fsplit-path","pt\u002F06.nodes\u002F03.split-path",{"title":150,"path":151,"stem":152},"Saltar para","\u002Fpt\u002Fnodes\u002Fjump-to","pt\u002F06.nodes\u002F04.jump-to",{"title":154,"path":155,"stem":156},"Disparar subfluxo","\u002Fpt\u002Fnodes\u002Ftrigger-subflow","pt\u002F06.nodes\u002F05.trigger-subflow",{"title":158,"path":159,"stem":160},"Acção personalizada","\u002Fpt\u002Fnodes\u002Fcustom-action","pt\u002F06.nodes\u002F06.custom-action",{"title":162,"path":163,"stem":164},"Enviar SMS durante a chamada","\u002Fpt\u002Fnodes\u002Fsend-sms-during-call","pt\u002F06.nodes\u002F07.send-sms-during-call",{"title":166,"path":167,"stem":168},"Transferência","\u002Fpt\u002Fnodes\u002Ftransfer","pt\u002F06.nodes\u002F08.transfer",{"title":170,"path":171,"stem":172},"Agendamento","\u002Fpt\u002Fnodes\u002Fbooking","pt\u002F06.nodes\u002F09.booking",{"title":174,"path":175,"stem":176},"Terminar chamada","\u002Fpt\u002Fnodes\u002Fend-call","pt\u002F06.nodes\u002F10.end-call",{"title":178,"path":179,"stem":180},"Nós em breve","\u002Fpt\u002Fnodes\u002Fcoming-soon","pt\u002F06.nodes\u002F11.coming-soon",{"title":182,"path":183,"stem":184,"children":185},"Acções","\u002Fpt\u002Factions","pt\u002F07.actions\u002Findex",[186,187,191,195,199,203,207,211,215],{"title":182,"path":183,"stem":184},{"title":188,"path":189,"stem":190},"Transferências de chamada","\u002Fpt\u002Factions\u002Fcall-transfers","pt\u002F07.actions\u002F01.call-transfers",{"title":192,"path":193,"stem":194},"IVR","\u002Fpt\u002Factions\u002Fivr","pt\u002F07.actions\u002F02.ivr",{"title":196,"path":197,"stem":198},"SMS durante a chamada","\u002Fpt\u002Factions\u002Fduring-call-sms","pt\u002F07.actions\u002F03.during-call-sms",{"title":200,"path":201,"stem":202},"SMS pós-chamada","\u002Fpt\u002Factions\u002Fpost-call-sms","pt\u002F07.actions\u002F04.post-call-sms",{"title":204,"path":205,"stem":206},"Acções personalizadas","\u002Fpt\u002Factions\u002Fcustom-actions","pt\u002F07.actions\u002F05.custom-actions",{"title":208,"path":209,"stem":210},"Extratores de Informação","\u002Fpt\u002Factions\u002Finformation-extractors","pt\u002F07.actions\u002F06.information-extractors",{"title":212,"path":213,"stem":214},"Avaliações Personalizadas","\u002Fpt\u002Factions\u002Fcustom-evaluations","pt\u002F07.actions\u002F07.custom-evaluations",{"title":216,"path":217,"stem":218},"Agendamento em tempo real","\u002Fpt\u002Factions\u002Freal-time-booking","pt\u002F07.actions\u002F08.real-time-booking",{"title":220,"path":221,"stem":222,"children":223},"Base de conhecimento","\u002Fpt\u002Fknowledge-base","pt\u002F08.knowledge-base\u002Findex",[224,225,229,233],{"title":220,"path":221,"stem":222},{"title":226,"path":227,"stem":228},"Fontes","\u002Fpt\u002Fknowledge-base\u002Fsources","pt\u002F08.knowledge-base\u002F01.sources",{"title":230,"path":231,"stem":232},"Citações","\u002Fpt\u002Fknowledge-base\u002Fcitations","pt\u002F08.knowledge-base\u002F02.citations",{"title":234,"path":235,"stem":236},"Memória partilhada","\u002Fpt\u002Fknowledge-base\u002Fshared-memory","pt\u002F08.knowledge-base\u002F03.shared-memory",{"title":238,"path":239,"stem":240,"children":241},"Centro de Testes","\u002Fpt\u002Ftest-center","pt\u002F09.test-center\u002Findex",[242,243],{"title":238,"path":239,"stem":240},{"title":244,"path":245,"stem":246},"Avaliações","\u002Fpt\u002Ftest-center\u002Fevaluations","pt\u002F09.test-center\u002F01.evaluations",{"title":248,"path":249,"stem":250,"children":251},"Históricos e análises","\u002Fpt\u002Fhistory","pt\u002F10.history\u002Findex",[252,253,257,261,265],{"title":248,"path":249,"stem":250},{"title":254,"path":255,"stem":256},"Visão geral","\u002Fpt\u002Fhistory\u002Fdashboard","pt\u002F10.history\u002F01.dashboard",{"title":258,"path":259,"stem":260},"Chamadas","\u002Fpt\u002Fhistory\u002Fcalls","pt\u002F10.history\u002F02.calls",{"title":262,"path":263,"stem":264},"Gravações","\u002Fpt\u002Fhistory\u002Frecordings","pt\u002F10.history\u002F03.recordings",{"title":266,"path":267,"stem":268},"Análises","\u002Fpt\u002Fhistory\u002Fanalytics","pt\u002F10.history\u002F04.analytics",{"title":270,"path":271,"stem":272,"children":273},"WhatsApp","\u002Fpt\u002Fwhatsapp","pt\u002F11.whatsapp\u002Findex",[274,275,279,283,287],{"title":270,"path":271,"stem":272},{"title":276,"path":277,"stem":278},"Ligar o número","\u002Fpt\u002Fwhatsapp\u002Fconnect","pt\u002F11.whatsapp\u002F01.connect",{"title":280,"path":281,"stem":282},"Templates","\u002Fpt\u002Fwhatsapp\u002Ftemplates","pt\u002F11.whatsapp\u002F02.templates",{"title":284,"path":285,"stem":286},"Conversas","\u002Fpt\u002Fwhatsapp\u002Fconversations","pt\u002F11.whatsapp\u002F03.conversations",{"title":288,"path":289,"stem":290},"Chamadas de voz","\u002Fpt\u002Fwhatsapp\u002Fcalls","pt\u002F11.whatsapp\u002F04.calls",{"title":292,"path":293,"stem":294,"children":295},"API","\u002Fpt\u002Fapi","pt\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},"Começar com a API","\u002Fpt\u002Fapi\u002Fgetting-started","pt\u002F12.api\u002F01.getting-started",{"title":302,"path":303,"stem":304},"API da DISKA","\u002Fpt\u002Fapi\u002Fapi-channel","pt\u002F12.api\u002F02.api-channel",{"title":306,"path":307,"stem":308},"Autenticação","\u002Fpt\u002Fapi\u002Fauthentication","pt\u002F12.api\u002F03.authentication",{"title":310,"path":311,"stem":312},"Webhooks","\u002Fpt\u002Fapi\u002Fwebhooks","pt\u002F12.api\u002F04.webhooks",{"title":314,"path":315,"stem":316},"Endpoints","\u002Fpt\u002Fapi\u002Fendpoints","pt\u002F12.api\u002F05.endpoints",{"title":318,"path":319,"stem":320},"Tempo real","\u002Fpt\u002Fapi\u002Frealtime","pt\u002F12.api\u002F06.realtime",{"title":322,"path":323,"stem":324,"children":325},"Referência da API","\u002Fpt\u002Fapi\u002Freference","pt\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},"Identidade","\u002Fpt\u002Fapi\u002Freference\u002Fidentity","pt\u002F12.api\u002F07.reference\u002F01.identity\u002Findex",[332,333],{"title":328,"path":329,"stem":330},{"title":334,"path":335,"stem":336},"Ver a chave e a organização","\u002Fpt\u002Fapi\u002Freference\u002Fidentity\u002Fget-identity","pt\u002F12.api\u002F07.reference\u002F01.identity\u002F01.get-identity",{"title":338,"path":339,"stem":340,"children":341},"Agentes","\u002Fpt\u002Fapi\u002Freference\u002Fagents","pt\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},"Listar agentes","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Flist-agents","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F01.list-agents",{"title":348,"path":349,"stem":350},"Ver um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fget-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F02.get-agent",{"title":352,"path":353,"stem":354},"Editar um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fupdate-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F03.update-agent",{"title":356,"path":357,"stem":358},"Criar um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fcreate-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F04.create-agent",{"title":360,"path":361,"stem":362},"Publicar um agente","\u002Fpt\u002Fapi\u002Freference\u002Fagents\u002Fpublish-agent","pt\u002F12.api\u002F07.reference\u002F02.agents\u002F05.publish-agent",{"title":258,"path":364,"stem":365,"children":366},"\u002Fpt\u002Fapi\u002Freference\u002Fcalls","pt\u002F12.api\u002F07.reference\u002F03.calls\u002Findex",[367,368,372,376],{"title":258,"path":364,"stem":365},{"title":369,"path":370,"stem":371},"Listar chamadas","\u002Fpt\u002Fapi\u002Freference\u002Fcalls\u002Flist-calls","pt\u002F12.api\u002F07.reference\u002F03.calls\u002F01.list-calls",{"title":373,"path":374,"stem":375},"Ver uma chamada","\u002Fpt\u002Fapi\u002Freference\u002Fcalls\u002Fget-call","pt\u002F12.api\u002F07.reference\u002F03.calls\u002F02.get-call",{"title":377,"path":378,"stem":379},"Descarregar a gravação","\u002Fpt\u002Fapi\u002Freference\u002Fcalls\u002Fget-call-recording","pt\u002F12.api\u002F07.reference\u002F03.calls\u002F03.get-call-recording",{"title":381,"path":382,"stem":383,"children":384},"Chamadas de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002Findex",[385,386,390,394],{"title":381,"path":382,"stem":383},{"title":387,"path":388,"stem":389},"Fazer uma chamada de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls\u002Fcreate-outbound-call","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F01.create-outbound-call",{"title":391,"path":392,"stem":393},"Ver uma chamada de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls\u002Fget-outbound-call","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F02.get-outbound-call",{"title":395,"path":396,"stem":397},"Desligar uma chamada de saída","\u002Fpt\u002Fapi\u002Freference\u002Foutbound-calls\u002Fhang-up-outbound-call","pt\u002F12.api\u002F07.reference\u002F04.outbound-calls\u002F03.hang-up-outbound-call",{"title":399,"path":400,"stem":401,"children":402},"Campanhas","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns","pt\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},"Listar campanhas","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaigns","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F01.list-campaigns",{"title":409,"path":410,"stem":411},"Criar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fcreate-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F02.create-campaign",{"title":413,"path":414,"stem":415},"Ver uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fget-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F03.get-campaign",{"title":417,"path":418,"stem":419},"Acrescentar destinatários","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fadd-campaign-recipients","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F04.add-campaign-recipients",{"title":421,"path":422,"stem":423},"Listar destinatários","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Flist-campaign-recipients","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F05.list-campaign-recipients",{"title":425,"path":426,"stem":427},"Iniciar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fstart-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F06.start-campaign",{"title":429,"path":430,"stem":431},"Pausar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fpause-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F07.pause-campaign",{"title":433,"path":434,"stem":435},"Retomar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fresume-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F08.resume-campaign",{"title":437,"path":438,"stem":439},"Cancelar uma campanha","\u002Fpt\u002Fapi\u002Freference\u002Fcampaigns\u002Fcancel-campaign","pt\u002F12.api\u002F07.reference\u002F05.campaigns\u002F09.cancel-campaign",{"title":441,"path":442,"stem":443,"children":444},"Chat","\u002Fpt\u002Fapi\u002Freference\u002Fchats","pt\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},"Criar uma conversa","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fcreate-chat","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F01.create-chat",{"title":451,"path":452,"stem":453},"Enviar uma mensagem","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fsend-chat-message","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F02.send-chat-message",{"title":455,"path":456,"stem":457},"Ver uma conversa","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fget-chat","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F03.get-chat",{"title":459,"path":460,"stem":461},"Listar conversas","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Flist-chats","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F04.list-chats",{"title":463,"path":464,"stem":465},"Terminar uma conversa","\u002Fpt\u002Fapi\u002Freference\u002Fchats\u002Fend-chat","pt\u002F12.api\u002F07.reference\u002F06.chats\u002F05.end-chat",{"title":266,"path":467,"stem":468,"children":469},"\u002Fpt\u002Fapi\u002Freference\u002Fanalytics","pt\u002F12.api\u002F07.reference\u002F07.analytics\u002Findex",[470,471],{"title":266,"path":467,"stem":468},{"title":472,"path":473,"stem":474},"Resumo das análises","\u002Fpt\u002Fapi\u002Freference\u002Fanalytics\u002Fget-overview","pt\u002F12.api\u002F07.reference\u002F07.analytics\u002F01.get-overview",{"title":476,"path":477,"stem":478,"children":479},"Números","\u002Fpt\u002Fapi\u002Freference\u002Fphone-numbers","pt\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002Findex",[480,481],{"title":476,"path":477,"stem":478},{"title":482,"path":483,"stem":484},"Listar números","\u002Fpt\u002Fapi\u002Freference\u002Fphone-numbers\u002Flist-phone-numbers","pt\u002F12.api\u002F07.reference\u002F08.phone-numbers\u002F01.list-phone-numbers",{"title":486,"path":487,"stem":488,"children":489},"Conhecimento","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge","pt\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},"Listar bases de conhecimento","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Flist-knowledge-bases","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F01.list-knowledge-bases",{"title":496,"path":497,"stem":498},"Criar uma base de conhecimento","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fcreate-knowledge-base","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F02.create-knowledge-base",{"title":500,"path":501,"stem":502},"Adicionar um documento de texto","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fadd-text-document","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F03.add-text-document",{"title":504,"path":505,"stem":506},"Importar uma página web","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fimport-url","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F04.import-url",{"title":508,"path":509,"stem":510},"Carregar um PDF","\u002Fpt\u002Fapi\u002Freference\u002Fknowledge\u002Fupload-pdf","pt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F05.upload-pdf",{"title":310,"path":512,"stem":513,"children":514},"\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks","pt\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},"Listar endpoints de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Flist-webhook-endpoints","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F01.list-webhook-endpoints",{"title":521,"path":522,"stem":523},"Registar um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Fcreate-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F02.create-webhook-endpoint",{"title":525,"path":526,"stem":527},"Alterar um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Fupdate-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F03.update-webhook-endpoint",{"title":529,"path":530,"stem":531},"Remover um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Fdelete-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F04.delete-webhook-endpoint",{"title":533,"path":534,"stem":535},"Testar um endpoint de webhook","\u002Fpt\u002Fapi\u002Freference\u002Fwebhooks\u002Ftest-webhook-endpoint","pt\u002F12.api\u002F07.reference\u002F10.webhooks\u002F05.test-webhook-endpoint",{"title":537,"path":538,"stem":539,"children":540},"Guias da API","\u002Fpt\u002Fapi\u002Fguides","pt\u002F12.api\u002F08.guides\u002Findex",[541,542,546,550],{"title":537,"path":538,"stem":539},{"title":543,"path":544,"stem":545},"Sincronizar chamadas com o CRM","\u002Fpt\u002Fapi\u002Fguides\u002Fsync-calls-crm","pt\u002F12.api\u002F08.guides\u002F01.sync-calls-crm",{"title":547,"path":548,"stem":549},"Exportar o histórico de chamadas","\u002Fpt\u002Fapi\u002Fguides\u002Fexport-call-history","pt\u002F12.api\u002F08.guides\u002F02.export-call-history",{"title":551,"path":552,"stem":553},"Alimentar o conhecimento a partir do site","\u002Fpt\u002Fapi\u002Fguides\u002Fknowledge-from-website","pt\u002F12.api\u002F08.guides\u002F03.knowledge-from-website",{"title":555,"path":556,"stem":557},"Versões e alterações","\u002Fpt\u002Fapi\u002Fchangelog","pt\u002F12.api\u002F09.changelog",{"title":559,"path":560,"stem":561},"OAuth para plataformas parceiras","\u002Fpt\u002Fapi\u002Foauth","pt\u002F12.api\u002F10.oauth",{"title":563,"path":564,"stem":565,"children":566},"Integrações","\u002Fpt\u002Fintegrations","pt\u002F13.integrations\u002Findex",[567,568],{"title":563,"path":564,"stem":565},{"title":569,"path":570,"stem":571},"Cal.com","\u002Fpt\u002Fintegrations\u002Fcalcom","pt\u002F13.integrations\u002F01.calcom",{"title":573,"path":574,"stem":575,"children":576},"Telefonia","\u002Fpt\u002Ftelephony","pt\u002F14.telephony\u002Findex",[577,578,582,586,590,594,597,601,605,609],{"title":573,"path":574,"stem":575},{"title":579,"path":580,"stem":581},"Números de telefone","\u002Fpt\u002Ftelephony\u002Fnumbers","pt\u002F14.telephony\u002F01.numbers",{"title":583,"path":584,"stem":585},"Ligar por SIP","\u002Fpt\u002Ftelephony\u002Fsip-trunk","pt\u002F14.telephony\u002F02.sip-trunk",{"title":587,"path":588,"stem":589},"Chamadas telefónicas","\u002Fpt\u002Ftelephony\u002Fphone-calls","pt\u002F14.telephony\u002F03.phone-calls",{"title":591,"path":592,"stem":593},"Configuração de chamada","\u002Fpt\u002Ftelephony\u002Fcall-settings","pt\u002F14.telephony\u002F04.call-settings",{"title":399,"path":595,"stem":596},"\u002Fpt\u002Ftelephony\u002Fcampaigns","pt\u002F14.telephony\u002F05.campaigns",{"title":598,"path":599,"stem":600},"Chamadas em simultâneo","\u002Fpt\u002Ftelephony\u002Fconcurrency","pt\u002F14.telephony\u002F06.concurrency",{"title":602,"path":603,"stem":604},"Transferências","\u002Fpt\u002Ftelephony\u002Ftransfers","pt\u002F14.telephony\u002F07.transfers",{"title":606,"path":607,"stem":608},"Webhooks do agente","\u002Fpt\u002Ftelephony\u002Fwebhooks","pt\u002F14.telephony\u002F08.webhooks",{"title":610,"path":611,"stem":612},"Erros e motivos de fim","\u002Fpt\u002Ftelephony\u002Ferrors","pt\u002F14.telephony\u002F09.errors",{"title":614,"path":615,"stem":616,"children":617},"Definições","\u002Fpt\u002Fsettings","pt\u002F15.settings\u002Findex",[618,619,623,627,631,635,639,643,647,651,654,658],{"title":614,"path":615,"stem":616},{"title":620,"path":621,"stem":622},"Perfil","\u002Fpt\u002Fsettings\u002Fpersonal-profile","pt\u002F15.settings\u002F01.personal-profile",{"title":624,"path":625,"stem":626},"Credenciais","\u002Fpt\u002Fsettings\u002Fcredentials","pt\u002F15.settings\u002F02.credentials",{"title":628,"path":629,"stem":630},"Password","\u002Fpt\u002Fsettings\u002Fpassword","pt\u002F15.settings\u002F03.password",{"title":632,"path":633,"stem":634},"Autenticação de dois fatores","\u002Fpt\u002Fsettings\u002Ftwo-factor","pt\u002F15.settings\u002F04.two-factor",{"title":636,"path":637,"stem":638},"Sessões ativas","\u002Fpt\u002Fsettings\u002Fsessions","pt\u002F15.settings\u002F05.sessions",{"title":640,"path":641,"stem":642},"Empresa","\u002Fpt\u002Fsettings\u002Fcompany","pt\u002F15.settings\u002F06.company",{"title":644,"path":645,"stem":646},"Organização","\u002Fpt\u002Fsettings\u002Forganization","pt\u002F15.settings\u002F07.organization",{"title":648,"path":649,"stem":650},"Membros","\u002Fpt\u002Fsettings\u002Fmembers","pt\u002F15.settings\u002F08.members",{"title":563,"path":652,"stem":653},"\u002Fpt\u002Fsettings\u002Fintegrations","pt\u002F15.settings\u002F09.integrations",{"title":655,"path":656,"stem":657},"Chaves API","\u002Fpt\u002Fsettings\u002Fapi-keys","pt\u002F15.settings\u002F10.api-keys",{"title":659,"path":660,"stem":661},"Aplicações ligadas e Apps OAuth","\u002Fpt\u002Fsettings\u002Fconnected-apps","pt\u002F15.settings\u002F11.connected-apps",{"title":663,"path":664,"stem":665,"children":666},"Problemas frequentes","\u002Fpt\u002Ftroubleshooting","pt\u002F16.troubleshooting\u002Findex",[667,668,672,676,680,684,688],{"title":663,"path":664,"stem":665},{"title":669,"path":670,"stem":671},"Agente não atende","\u002Fpt\u002Ftroubleshooting\u002Fagent-not-answering","pt\u002F16.troubleshooting\u002F01.agent-not-answering",{"title":673,"path":674,"stem":675},"Chamadas caem","\u002Fpt\u002Ftroubleshooting\u002Fcalls-drop","pt\u002F16.troubleshooting\u002F02.calls-drop",{"title":677,"path":678,"stem":679},"Fluxo não publica","\u002Fpt\u002Ftroubleshooting\u002Fflow-not-publishing","pt\u002F16.troubleshooting\u002F03.flow-not-publishing",{"title":681,"path":682,"stem":683},"Conhecimento não responde","\u002Fpt\u002Ftroubleshooting\u002Fkb-not-answering","pt\u002F16.troubleshooting\u002F04.kb-not-answering",{"title":685,"path":686,"stem":687},"Integração não liga","\u002Fpt\u002Ftroubleshooting\u002Fintegration-not-connecting","pt\u002F16.troubleshooting\u002F05.integration-not-connecting",{"title":689,"path":690,"stem":691},"Testes falham","\u002Fpt\u002Ftroubleshooting\u002Ftests-failing","pt\u002F16.troubleshooting\u002F06.tests-failing",{"title":693,"path":694,"stem":695,"children":696,"page":705},"Legal","\u002Fpt\u002Flegal","pt\u002F17.legal",[697,701],{"title":698,"path":699,"stem":700},"Política de Privacidade","\u002Fpt\u002Flegal\u002Fprivacy","pt\u002F17.legal\u002F01.privacy",{"title":702,"path":703,"stem":704},"Termos e Condições","\u002Fpt\u002Flegal\u002Fterms","pt\u002F17.legal\u002F02.terms",false,{"id":707,"title":508,"body":708,"description":2157,"extension":2158,"links":2159,"meta":2160,"navigation":922,"path":509,"seo":2161,"stem":510,"__hash__":2162},"docs_pt\u002Fpt\u002F12.api\u002F07.reference\u002F09.knowledge\u002F05.upload-pdf.md",{"type":709,"value":710,"toc":2146},"minimark",[711,728,739,744,749,791,795,800,831,835,1405,1409,1416,1423,1430,1731,2059,2063,2118,2142],[712,713,718],"pre",{"className":714,"code":715,"language":716,"meta":717,"style":717},"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\u002Fpdf\n","http","",[719,720,721],"code",{"__ignoreMap":717},[722,723,726],"span",{"class":724,"line":725},"line",1,[722,727,715],{},[729,730,731,735,736],"p",{},[732,733,734],"strong",{},"Âmbito:"," ",[719,737,738],{},"knowledge:write",[740,741,743],"h2",{"id":742},"parâmetros","Parâmetros",[745,746,748],"h3",{"id":747},"no-caminho","No caminho",[750,751,752,771],"table",{},[753,754,755],"thead",{},[756,757,758,762,765,768],"tr",{},[759,760,761],"th",{},"Nome",[759,763,764],{},"Tipo",[759,766,767],{},"Obrigatório",[759,769,770],{},"Descrição",[772,773,774],"tbody",{},[756,775,776,782,785,788],{},[777,778,779],"td",{},[719,780,781],{},"knowledge_base_id",[777,783,784],{},"string",[777,786,787],{},"Sim",[777,789,790],{},"Identificador da base de conhecimento.",[740,792,794],{"id":793},"corpo-do-pedido","Corpo do pedido",[729,796,797],{},[719,798,799],{},"multipart\u002Fform-data",[750,801,802,815],{},[753,803,804],{},[756,805,806,809,811,813],{},[759,807,808],{},"Campo",[759,810,764],{},[759,812,767],{},[759,814,770],{},[772,816,817],{},[756,818,819,824,826,828],{},[777,820,821],{},[719,822,823],{},"file",[777,825,823],{},[777,827,787],{},[777,829,830],{},"O PDF (até 25 MB).",[740,832,834],{"id":833},"exemplos","Exemplos",[836,837,838,905,982,1314],"code-group",{},[712,839,844],{"className":840,"code":841,"filename":842,"language":843,"meta":717,"style":717},"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\u002Fpdf\" \\\n  -H \"Authorization: Bearer $DISKA_API_KEY\" \\\n  -F \"file=@tabela-de-precos.pdf;type=application\u002Fpdf\"\n","cURL","bash",[719,845,846,873,891],{"__ignoreMap":717},[722,847,848,852,856,859,863,866,869],{"class":724,"line":725},[722,849,851],{"class":850},"sBMFI","curl",[722,853,855],{"class":854},"sfazB"," -X",[722,857,858],{"class":854}," POST",[722,860,862],{"class":861},"sMK4o"," \"",[722,864,865],{"class":854},"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fknowledge-bases\u002F\u003Cknowledge_base_id>\u002Fdocuments\u002Fpdf",[722,867,868],{"class":861},"\"",[722,870,872],{"class":871},"sTEyZ"," \\\n",[722,874,876,879,881,884,887,889],{"class":724,"line":875},2,[722,877,878],{"class":854},"  -H",[722,880,862],{"class":861},[722,882,883],{"class":854},"Authorization: Bearer ",[722,885,886],{"class":871},"$DISKA_API_KEY",[722,888,868],{"class":861},[722,890,872],{"class":871},[722,892,894,897,899,902],{"class":724,"line":893},3,[722,895,896],{"class":854},"  -F",[722,898,862],{"class":861},[722,900,901],{"class":854},"file=@tabela-de-precos.pdf;type=application\u002Fpdf",[722,903,904],{"class":861},"\"\n",[712,906,911],{"className":907,"code":908,"filename":909,"language":910,"meta":717,"style":717},"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\u002Fpdf\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n    files={\"file\": (\"tabela-de-precos.pdf\", open(\"tabela-de-precos.pdf\", \"rb\"), \"application\u002Fpdf\")},\n    timeout=30,\n)\nresponse.raise_for_status()\nprint(response.json())\n","Python","python",[719,912,913,918,924,929,934,940,946,952,958,964,970,976],{"__ignoreMap":717},[722,914,915],{"class":724,"line":725},[722,916,917],{},"import os\n",[722,919,920],{"class":724,"line":875},[722,921,923],{"emptyLinePlaceholder":922},true,"\n",[722,925,926],{"class":724,"line":893},[722,927,928],{},"import requests\n",[722,930,932],{"class":724,"line":931},4,[722,933,923],{"emptyLinePlaceholder":922},[722,935,937],{"class":724,"line":936},5,[722,938,939],{},"response = requests.post(\n",[722,941,943],{"class":724,"line":942},6,[722,944,945],{},"    \"https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fknowledge-bases\u002F\u003Cknowledge_base_id>\u002Fdocuments\u002Fpdf\",\n",[722,947,949],{"class":724,"line":948},7,[722,950,951],{},"    headers={\"Authorization\": f\"Bearer {os.environ['DISKA_API_KEY']}\"},\n",[722,953,955],{"class":724,"line":954},8,[722,956,957],{},"    files={\"file\": (\"tabela-de-precos.pdf\", open(\"tabela-de-precos.pdf\", \"rb\"), \"application\u002Fpdf\")},\n",[722,959,961],{"class":724,"line":960},9,[722,962,963],{},"    timeout=30,\n",[722,965,967],{"class":724,"line":966},10,[722,968,969],{},")\n",[722,971,973],{"class":724,"line":972},11,[722,974,975],{},"response.raise_for_status()\n",[722,977,979],{"class":724,"line":978},12,[722,980,981],{},"print(response.json())\n",[712,983,988],{"className":984,"code":985,"filename":986,"language":987,"meta":717,"style":717},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Node.js 20 ou superior, num ficheiro .mjs\nimport { openAsBlob } from 'node:fs'\n\nconst form = new FormData()\nform.append('file', await openAsBlob('tabela-de-precos.pdf', { type: 'application\u002Fpdf' }), 'tabela-de-precos.pdf')\n\nconst response = await fetch('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fknowledge-bases\u002F\u003Cknowledge_base_id>\u002Fdocuments\u002Fpdf', {\n  method: 'POST',\n  headers: { Authorization: `Bearer ${process.env.DISKA_API_KEY}` },\n  body: form\n})\nif (!response.ok) throw new Error(`${response.status} ${await response.text()}`)\nconsole.log(await response.json())\n","JavaScript","js",[719,989,990,996,1023,1027,1049,1120,1124,1151,1168,1210,1220,1227,1289],{"__ignoreMap":717},[722,991,992],{"class":724,"line":725},[722,993,995],{"class":994},"sHwdD","\u002F\u002F Node.js 20 ou superior, num ficheiro .mjs\n",[722,997,998,1002,1005,1008,1011,1014,1017,1020],{"class":724,"line":875},[722,999,1001],{"class":1000},"s7zQu","import",[722,1003,1004],{"class":861}," {",[722,1006,1007],{"class":871}," openAsBlob",[722,1009,1010],{"class":861}," }",[722,1012,1013],{"class":1000}," from",[722,1015,1016],{"class":861}," '",[722,1018,1019],{"class":854},"node:fs",[722,1021,1022],{"class":861},"'\n",[722,1024,1025],{"class":724,"line":893},[722,1026,923],{"emptyLinePlaceholder":922},[722,1028,1029,1033,1036,1039,1042,1046],{"class":724,"line":931},[722,1030,1032],{"class":1031},"spNyl","const",[722,1034,1035],{"class":871}," form ",[722,1037,1038],{"class":861},"=",[722,1040,1041],{"class":861}," new",[722,1043,1045],{"class":1044},"s2Zo4"," FormData",[722,1047,1048],{"class":871},"()\n",[722,1050,1051,1054,1057,1060,1063,1066,1068,1070,1073,1076,1078,1080,1082,1085,1087,1089,1091,1095,1098,1100,1103,1105,1107,1110,1112,1114,1116,1118],{"class":724,"line":936},[722,1052,1053],{"class":871},"form",[722,1055,1056],{"class":861},".",[722,1058,1059],{"class":1044},"append",[722,1061,1062],{"class":871},"(",[722,1064,1065],{"class":861},"'",[722,1067,823],{"class":854},[722,1069,1065],{"class":861},[722,1071,1072],{"class":861},",",[722,1074,1075],{"class":1000}," await",[722,1077,1007],{"class":1044},[722,1079,1062],{"class":871},[722,1081,1065],{"class":861},[722,1083,1084],{"class":854},"tabela-de-precos.pdf",[722,1086,1065],{"class":861},[722,1088,1072],{"class":861},[722,1090,1004],{"class":861},[722,1092,1094],{"class":1093},"swJcz"," type",[722,1096,1097],{"class":861},":",[722,1099,1016],{"class":861},[722,1101,1102],{"class":854},"application\u002Fpdf",[722,1104,1065],{"class":861},[722,1106,1010],{"class":861},[722,1108,1109],{"class":871},")",[722,1111,1072],{"class":861},[722,1113,1016],{"class":861},[722,1115,1084],{"class":854},[722,1117,1065],{"class":861},[722,1119,969],{"class":871},[722,1121,1122],{"class":724,"line":942},[722,1123,923],{"emptyLinePlaceholder":922},[722,1125,1126,1128,1131,1133,1135,1138,1140,1142,1144,1146,1148],{"class":724,"line":948},[722,1127,1032],{"class":1031},[722,1129,1130],{"class":871}," response ",[722,1132,1038],{"class":861},[722,1134,1075],{"class":1000},[722,1136,1137],{"class":1044}," fetch",[722,1139,1062],{"class":871},[722,1141,1065],{"class":861},[722,1143,865],{"class":854},[722,1145,1065],{"class":861},[722,1147,1072],{"class":861},[722,1149,1150],{"class":861}," {\n",[722,1152,1153,1156,1158,1160,1163,1165],{"class":724,"line":954},[722,1154,1155],{"class":1093},"  method",[722,1157,1097],{"class":861},[722,1159,1016],{"class":861},[722,1161,1162],{"class":854},"POST",[722,1164,1065],{"class":861},[722,1166,1167],{"class":861},",\n",[722,1169,1170,1173,1175,1177,1180,1182,1185,1188,1191,1194,1196,1199,1201,1204,1207],{"class":724,"line":960},[722,1171,1172],{"class":1093},"  headers",[722,1174,1097],{"class":861},[722,1176,1004],{"class":861},[722,1178,1179],{"class":1093}," Authorization",[722,1181,1097],{"class":861},[722,1183,1184],{"class":861}," `",[722,1186,1187],{"class":854},"Bearer ",[722,1189,1190],{"class":861},"${",[722,1192,1193],{"class":871},"process",[722,1195,1056],{"class":861},[722,1197,1198],{"class":871},"env",[722,1200,1056],{"class":861},[722,1202,1203],{"class":871},"DISKA_API_KEY",[722,1205,1206],{"class":861},"}`",[722,1208,1209],{"class":861}," },\n",[722,1211,1212,1215,1217],{"class":724,"line":966},[722,1213,1214],{"class":1093},"  body",[722,1216,1097],{"class":861},[722,1218,1219],{"class":871}," form\n",[722,1221,1222,1225],{"class":724,"line":972},[722,1223,1224],{"class":861},"}",[722,1226,969],{"class":871},[722,1228,1229,1232,1235,1238,1241,1243,1246,1249,1251,1254,1256,1259,1261,1263,1266,1268,1271,1274,1277,1279,1282,1285,1287],{"class":724,"line":978},[722,1230,1231],{"class":1000},"if",[722,1233,1234],{"class":871}," (",[722,1236,1237],{"class":861},"!",[722,1239,1240],{"class":871},"response",[722,1242,1056],{"class":861},[722,1244,1245],{"class":871},"ok) ",[722,1247,1248],{"class":1000},"throw",[722,1250,1041],{"class":861},[722,1252,1253],{"class":1044}," Error",[722,1255,1062],{"class":871},[722,1257,1258],{"class":861},"`${",[722,1260,1240],{"class":871},[722,1262,1056],{"class":861},[722,1264,1265],{"class":871},"status",[722,1267,1224],{"class":861},[722,1269,1270],{"class":861}," ${",[722,1272,1273],{"class":1000},"await",[722,1275,1276],{"class":871}," response",[722,1278,1056],{"class":861},[722,1280,1281],{"class":1044},"text",[722,1283,1284],{"class":871},"()",[722,1286,1206],{"class":861},[722,1288,969],{"class":871},[722,1290,1292,1295,1297,1300,1302,1304,1306,1308,1311],{"class":724,"line":1291},13,[722,1293,1294],{"class":871},"console",[722,1296,1056],{"class":861},[722,1298,1299],{"class":1044},"log",[722,1301,1062],{"class":871},[722,1303,1273],{"class":1000},[722,1305,1276],{"class":871},[722,1307,1056],{"class":861},[722,1309,1310],{"class":1044},"json",[722,1312,1313],{"class":871},"())\n",[712,1315,1320],{"className":1316,"code":1317,"filename":1318,"language":1319,"meta":717,"style":717},"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\u002Fpdf');\ncurl_setopt_array($ch, [\n    CURLOPT_CUSTOMREQUEST => 'POST',\n    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('DISKA_API_KEY')],\n    CURLOPT_POSTFIELDS => ['file' => new CURLFile('tabela-de-precos.pdf', 'application\u002Fpdf')],\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",[719,1321,1322,1327,1332,1337,1342,1347,1352,1357,1362,1367,1372,1377,1382,1387,1393,1399],{"__ignoreMap":717},[722,1323,1324],{"class":724,"line":725},[722,1325,1326],{},"\u003C?php\n",[722,1328,1329],{"class":724,"line":875},[722,1330,1331],{},"$ch = curl_init('https:\u002F\u002Fapi.diska.ai\u002Fv1\u002Fknowledge-bases\u002F\u003Cknowledge_base_id>\u002Fdocuments\u002Fpdf');\n",[722,1333,1334],{"class":724,"line":893},[722,1335,1336],{},"curl_setopt_array($ch, [\n",[722,1338,1339],{"class":724,"line":931},[722,1340,1341],{},"    CURLOPT_CUSTOMREQUEST => 'POST',\n",[722,1343,1344],{"class":724,"line":936},[722,1345,1346],{},"    CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('DISKA_API_KEY')],\n",[722,1348,1349],{"class":724,"line":942},[722,1350,1351],{},"    CURLOPT_POSTFIELDS => ['file' => new CURLFile('tabela-de-precos.pdf', 'application\u002Fpdf')],\n",[722,1353,1354],{"class":724,"line":948},[722,1355,1356],{},"    CURLOPT_RETURNTRANSFER => true,\n",[722,1358,1359],{"class":724,"line":954},[722,1360,1361],{},"    CURLOPT_TIMEOUT => 30,\n",[722,1363,1364],{"class":724,"line":960},[722,1365,1366],{},"]);\n",[722,1368,1369],{"class":724,"line":966},[722,1370,1371],{},"$body = curl_exec($ch);\n",[722,1373,1374],{"class":724,"line":972},[722,1375,1376],{},"$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\n",[722,1378,1379],{"class":724,"line":978},[722,1380,1381],{},"curl_close($ch);\n",[722,1383,1384],{"class":724,"line":1291},[722,1385,1386],{},"if ($status >= 400) {\n",[722,1388,1390],{"class":724,"line":1389},14,[722,1391,1392],{},"    throw new RuntimeException(\"HTTP $status: $body\");\n",[722,1394,1396],{"class":724,"line":1395},15,[722,1397,1398],{},"}\n",[722,1400,1402],{"class":724,"line":1401},16,[722,1403,1404],{},"print_r(json_decode($body, true));\n",[740,1406,1408],{"id":1407},"experimentar","Experimentar",[729,1410,1411,1412,1415],{},"Envie o pedido a partir desta página, com a sua chave. A chave fica só nesta página: não é guardada e só é enviada para ",[719,1413,1414],{},"api.diska.ai",". Use uma chave de teste com os âmbitos mínimos. No Experimentar escolha um PDF do seu computador.",[1417,1418],"api-playground",{":params":1419,"body-type":1420,"locale":1421,"method":1162,"path":1422},"[{\"name\":\"knowledge_base_id\",\"in\":\"path\",\"required\":true}]","multipart","pt","\u002Fv1\u002Fknowledge-bases\u002F{knowledge_base_id}\u002Fdocuments\u002Fpdf",[740,1424,1426,1427],{"id":1425},"resposta-201","Resposta ",[719,1428,1429],{},"201",[750,1431,1432,1442],{},[753,1433,1434],{},[756,1435,1436,1438,1440],{},[759,1437,808],{},[759,1439,764],{},[759,1441,770],{},[772,1443,1444,1456,1468,1479,1491,1513,1546,1570,1598,1611,1626,1638,1650,1663,1675,1688,1700,1712],{},[756,1445,1446,1451,1453],{},[777,1447,1448],{},[719,1449,1450],{},"id",[777,1452,784],{},[777,1454,1455],{},"Identificador.",[756,1457,1458,1463,1465],{},[777,1459,1460],{},[719,1461,1462],{},"organization_id",[777,1464,784],{},[777,1466,1467],{},"Organização a que pertence.",[756,1469,1470,1474,1476],{},[777,1471,1472],{},[719,1473,781],{},[777,1475,784],{},[777,1477,1478],{},"Base a que o documento pertence.",[756,1480,1481,1486,1488],{},[777,1482,1483],{},[719,1484,1485],{},"name",[777,1487,784],{},[777,1489,1490],{},"Nome do documento.",[756,1492,1493,1498,1500],{},[777,1494,1495],{},[719,1496,1497],{},"source_type",[777,1499,784],{},[777,1501,1502,1505,1506,1509,1510,1056],{},[719,1503,1504],{},"manual"," (texto), ",[719,1507,1508],{},"pdf"," ou ",[719,1511,1512],{},"url",[756,1514,1515,1519,1521],{},[777,1516,1517],{},[719,1518,1265],{},[777,1520,784],{},[777,1522,1523,1524,1527,1528,1527,1531,1527,1534,1527,1537,1527,1540,1543,1544,1056],{},"Estado geral do documento. Um de: ",[719,1525,1526],{},"pending",", ",[719,1529,1530],{},"uploading",[719,1532,1533],{},"processing",[719,1535,1536],{},"ready",[719,1538,1539],{},"failed",[719,1541,1542],{},"indexing_pending",". Padrão: ",[719,1545,1526],{},[756,1547,1548,1553,1555],{},[777,1549,1550],{},[719,1551,1552],{},"extraction_status",[777,1554,784],{},[777,1556,1557,1558,1527,1560,1527,1563,1527,1566,1543,1568,1056],{},"Estado da extracção do texto. Um de: ",[719,1559,1526],{},[719,1561,1562],{},"extracted",[719,1564,1565],{},"skipped",[719,1567,1539],{},[719,1569,1526],{},[756,1571,1572,1577,1579],{},[777,1573,1574],{},[719,1575,1576],{},"indexing_status",[777,1578,784],{},[777,1580,1581,1582,1585,1586,1527,1588,1527,1590,1527,1592,1527,1594,1543,1596,1056],{},"Estado da indexação: ",[719,1583,1584],{},"indexed"," quando o agente já o pode usar. Um de: ",[719,1587,1526],{},[719,1589,1542],{},[719,1591,1584],{},[719,1593,1565],{},[719,1595,1539],{},[719,1597,1542],{},[756,1599,1600,1605,1608],{},[777,1601,1602],{},[719,1603,1604],{},"content_text",[777,1606,1607],{},"string | null",[777,1609,1610],{},"O texto extraído.",[756,1612,1613,1618,1620],{},[777,1614,1615],{},[719,1616,1617],{},"original_url",[777,1619,1607],{},[777,1621,1622,1623,1625],{},"Endereço importado (documentos ",[719,1624,1512],{},").",[756,1627,1628,1633,1635],{},[777,1629,1630],{},[719,1631,1632],{},"storage_path",[777,1634,1607],{},[777,1636,1637],{},"Localização interna do ficheiro.",[756,1639,1640,1645,1647],{},[777,1641,1642],{},[719,1643,1644],{},"mime_type",[777,1646,1607],{},[777,1648,1649],{},"Tipo do ficheiro.",[756,1651,1652,1657,1660],{},[777,1653,1654],{},[719,1655,1656],{},"size_bytes",[777,1658,1659],{},"integer | null",[777,1661,1662],{},"Tamanho em bytes.",[756,1664,1665,1670,1672],{},[777,1666,1667],{},[719,1668,1669],{},"error_message",[777,1671,1607],{},[777,1673,1674],{},"Erro, quando falhou.",[756,1676,1677,1682,1685],{},[777,1678,1679],{},[719,1680,1681],{},"metadata",[777,1683,1684],{},"object",[777,1686,1687],{},"Metadados técnicos.",[756,1689,1690,1695,1697],{},[777,1691,1692],{},[719,1693,1694],{},"created_at",[777,1696,1607],{},[777,1698,1699],{},"Data de criação (ISO 8601).",[756,1701,1702,1707,1709],{},[777,1703,1704],{},[719,1705,1706],{},"updated_at",[777,1708,1607],{},[777,1710,1711],{},"Data da última alteração (ISO 8601).",[756,1713,1714,1719,1722],{},[777,1715,1716],{},[719,1717,1718],{},"has_file",[777,1720,1721],{},"boolean",[777,1723,1724,1727,1728,1056],{},[719,1725,1726],{},"true"," quando há um ficheiro guardado. Padrão: ",[719,1729,1730],{},"false",[712,1732,1735],{"className":1733,"code":1734,"language":1310,"meta":717,"style":717},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\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",[719,1736,1737,1742,1762,1780,1799,1818,1836,1854,1872,1890,1909,1922,1934,1953,1969,1988,2001,2021,2040,2054],{"__ignoreMap":717},[722,1738,1739],{"class":724,"line":725},[722,1740,1741],{"class":861},"{\n",[722,1743,1744,1747,1749,1751,1753,1755,1758,1760],{"class":724,"line":875},[722,1745,1746],{"class":861},"  \"",[722,1748,1450],{"class":1031},[722,1750,868],{"class":861},[722,1752,1097],{"class":861},[722,1754,862],{"class":861},[722,1756,1757],{"class":854},"5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",[722,1759,868],{"class":861},[722,1761,1167],{"class":861},[722,1763,1764,1766,1768,1770,1772,1774,1776,1778],{"class":724,"line":893},[722,1765,1746],{"class":861},[722,1767,1462],{"class":1031},[722,1769,868],{"class":861},[722,1771,1097],{"class":861},[722,1773,862],{"class":861},[722,1775,1757],{"class":854},[722,1777,868],{"class":861},[722,1779,1167],{"class":861},[722,1781,1782,1784,1786,1788,1790,1792,1795,1797],{"class":724,"line":931},[722,1783,1746],{"class":861},[722,1785,781],{"class":1031},[722,1787,868],{"class":861},[722,1789,1097],{"class":861},[722,1791,862],{"class":861},[722,1793,1794],{"class":854},"b2e4c6d8-1a3f-4e5b-9c7d-0f2a4b6c8e10",[722,1796,868],{"class":861},[722,1798,1167],{"class":861},[722,1800,1801,1803,1805,1807,1809,1811,1814,1816],{"class":724,"line":936},[722,1802,1746],{"class":861},[722,1804,1485],{"class":1031},[722,1806,868],{"class":861},[722,1808,1097],{"class":861},[722,1810,862],{"class":861},[722,1812,1813],{"class":854},"Horários",[722,1815,868],{"class":861},[722,1817,1167],{"class":861},[722,1819,1820,1822,1824,1826,1828,1830,1832,1834],{"class":724,"line":942},[722,1821,1746],{"class":861},[722,1823,1497],{"class":1031},[722,1825,868],{"class":861},[722,1827,1097],{"class":861},[722,1829,862],{"class":861},[722,1831,1504],{"class":854},[722,1833,868],{"class":861},[722,1835,1167],{"class":861},[722,1837,1838,1840,1842,1844,1846,1848,1850,1852],{"class":724,"line":948},[722,1839,1746],{"class":861},[722,1841,1265],{"class":1031},[722,1843,868],{"class":861},[722,1845,1097],{"class":861},[722,1847,862],{"class":861},[722,1849,1536],{"class":854},[722,1851,868],{"class":861},[722,1853,1167],{"class":861},[722,1855,1856,1858,1860,1862,1864,1866,1868,1870],{"class":724,"line":954},[722,1857,1746],{"class":861},[722,1859,1552],{"class":1031},[722,1861,868],{"class":861},[722,1863,1097],{"class":861},[722,1865,862],{"class":861},[722,1867,1562],{"class":854},[722,1869,868],{"class":861},[722,1871,1167],{"class":861},[722,1873,1874,1876,1878,1880,1882,1884,1886,1888],{"class":724,"line":960},[722,1875,1746],{"class":861},[722,1877,1576],{"class":1031},[722,1879,868],{"class":861},[722,1881,1097],{"class":861},[722,1883,862],{"class":861},[722,1885,1584],{"class":854},[722,1887,868],{"class":861},[722,1889,1167],{"class":861},[722,1891,1892,1894,1896,1898,1900,1902,1905,1907],{"class":724,"line":966},[722,1893,1746],{"class":861},[722,1895,1604],{"class":1031},[722,1897,868],{"class":861},[722,1899,1097],{"class":861},[722,1901,862],{"class":861},[722,1903,1904],{"class":854},"Abrimos de segunda a sexta, das 8h às 17h.",[722,1906,868],{"class":861},[722,1908,1167],{"class":861},[722,1910,1911,1913,1915,1917,1919],{"class":724,"line":972},[722,1912,1746],{"class":861},[722,1914,1617],{"class":1031},[722,1916,868],{"class":861},[722,1918,1097],{"class":861},[722,1920,1921],{"class":861}," null,\n",[722,1923,1924,1926,1928,1930,1932],{"class":724,"line":978},[722,1925,1746],{"class":861},[722,1927,1632],{"class":1031},[722,1929,868],{"class":861},[722,1931,1097],{"class":861},[722,1933,1921],{"class":861},[722,1935,1936,1938,1940,1942,1944,1946,1949,1951],{"class":724,"line":1291},[722,1937,1746],{"class":861},[722,1939,1644],{"class":1031},[722,1941,868],{"class":861},[722,1943,1097],{"class":861},[722,1945,862],{"class":861},[722,1947,1948],{"class":854},"text\u002Fplain",[722,1950,868],{"class":861},[722,1952,1167],{"class":861},[722,1954,1955,1957,1959,1961,1963,1967],{"class":724,"line":1389},[722,1956,1746],{"class":861},[722,1958,1656],{"class":1031},[722,1960,868],{"class":861},[722,1962,1097],{"class":861},[722,1964,1966],{"class":1965},"sbssI"," 48213",[722,1968,1167],{"class":861},[722,1970,1971,1973,1975,1977,1979,1981,1984,1986],{"class":724,"line":1395},[722,1972,1746],{"class":861},[722,1974,1669],{"class":1031},[722,1976,868],{"class":861},[722,1978,1097],{"class":861},[722,1980,862],{"class":861},[722,1982,1983],{"class":854},"…",[722,1985,868],{"class":861},[722,1987,1167],{"class":861},[722,1989,1990,1992,1994,1996,1998],{"class":724,"line":1401},[722,1991,1746],{"class":861},[722,1993,1681],{"class":1031},[722,1995,868],{"class":861},[722,1997,1097],{"class":861},[722,1999,2000],{"class":861}," {},\n",[722,2002,2004,2006,2008,2010,2012,2014,2017,2019],{"class":724,"line":2003},17,[722,2005,1746],{"class":861},[722,2007,1694],{"class":1031},[722,2009,868],{"class":861},[722,2011,1097],{"class":861},[722,2013,862],{"class":861},[722,2015,2016],{"class":854},"2026-10-25T18:40:00Z",[722,2018,868],{"class":861},[722,2020,1167],{"class":861},[722,2022,2024,2026,2028,2030,2032,2034,2036,2038],{"class":724,"line":2023},18,[722,2025,1746],{"class":861},[722,2027,1706],{"class":1031},[722,2029,868],{"class":861},[722,2031,1097],{"class":861},[722,2033,862],{"class":861},[722,2035,2016],{"class":854},[722,2037,868],{"class":861},[722,2039,1167],{"class":861},[722,2041,2043,2045,2047,2049,2051],{"class":724,"line":2042},19,[722,2044,1746],{"class":861},[722,2046,1718],{"class":1031},[722,2048,868],{"class":861},[722,2050,1097],{"class":861},[722,2052,2053],{"class":861}," false\n",[722,2055,2057],{"class":724,"line":2056},20,[722,2058,1398],{"class":861},[740,2060,2062],{"id":2061},"erros","Erros",[750,2064,2065,2075],{},[753,2066,2067],{},[756,2068,2069,2072],{},[759,2070,2071],{},"Código",[759,2073,2074],{},"Quando",[772,2076,2077,2106],{},[756,2078,2079,2084],{},[777,2080,2081],{},[719,2082,2083],{},"400",[777,2085,2086,2087,1527,2090,1527,2093,1527,2096,1527,2099,1527,2102,2105],{},"Conteúdo recusado — por exemplo ",[719,2088,2089],{},"Ficheiro vazio.",[719,2091,2092],{},"PDF demasiado grande (máx. 25 MB).",[719,2094,2095],{},"Apenas ficheiros PDF são aceites.",[719,2097,2098],{},"O ficheiro não parece ser um PDF válido.",[719,2100,2101],{},"Tempo esgotado ao obter a página.",[719,2103,2104],{},"A página não devolveu texto legível."," ou um URL bloqueado por segurança.",[756,2107,2108,2113],{},[777,2109,2110],{},[719,2111,2112],{},"404",[777,2114,2115],{},[719,2116,2117],{},"Base de conhecimento não encontrada.",[729,2119,2120,2121,1527,2124,1527,2127,1527,2130,2133,2134,2137,2138,1056],{},"Os erros comuns a todos os endpoints (",[719,2122,2123],{},"401",[719,2125,2126],{},"403",[719,2128,2129],{},"422",[719,2131,2132],{},"429"," e ",[719,2135,2136],{},"5xx",") estão em ",[2139,2140,2062],"a",{"href":2141},"\u002Fpt\u002Fapi\u002Fapi-channel#erros",[2143,2144,2145],"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 .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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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":717,"searchDepth":875,"depth":875,"links":2147},[2148,2151,2152,2153,2154,2156],{"id":742,"depth":875,"text":743,"children":2149},[2150],{"id":747,"depth":893,"text":748},{"id":793,"depth":875,"text":794},{"id":833,"depth":875,"text":834},{"id":1407,"depth":875,"text":1408},{"id":1425,"depth":875,"text":2155},"Resposta 201",{"id":2061,"depth":875,"text":2062},"Carrega um PDF em multipart\u002Fform-data, no campo file (até 25 MB).","md",null,{},{"title":508,"description":2157},"_zc8tmeSxg9w1vNanUOYZeZn27VxeX0NgrEOqI_247A",[2164,2166],{"title":504,"path":505,"stem":506,"description":2165,"children":-1},"Importa o texto de uma página web pública.",{"title":310,"path":512,"stem":513,"description":2167,"children":-1},"Registe e gira os endpoints que recebem os dados de cada chamada concluída.",1795253996901]