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