Chat Pró Oratrix: API Externa — Interativo UazAPI

Chat Pró Oratrix: API Externa — Interativo UazAPI

:parrot: SERVIÇO

Serviço: Chat Pró Oratrix

:hammer_and_wrench: VOCÊ VAI PRECISAR

  • URL base: https://api-pro1.oratrixchat.com.br/v2/api/external/{ApiID}.
  • Token de autenticação {token}.
  • ticketId válido.

:receipt: VISÃO GERAL

A família Interativo UazAPI permite enviar botões, listas, enquetes, carrosséis, PIX, solicitação de localização e solicitação de pagamento em conexões compatíveis pela API externa.

:compass: PASSO A PASSO GUIADO

Use https://api-pro1.oratrixchat.com.br/v2/api/external/{ApiID} com Authorization: Bearer {token}.

Método Endpoint Finalidade
POST /sendInteractive/uazapi/button Botões
POST /sendInteractive/uazapi/list Lista interativa
POST /sendInteractive/uazapi/poll Enquete
POST /sendInteractive/uazapi/carousel Carrossel
POST /sendInteractive/uazapi/pixButton Botão PIX
POST /sendInteractive/uazapi/locationButton Solicitação de localização
POST /sendInteractive/uazapi/requestPayment Solicitação de pagamento

Campos principais

  • Button: ticketId, text, choices, footerText, imageButton.
  • List: ticketId, text, choices, listButton, footerText.
  • Poll: ticketId, text, choices, selectableCount.
  • Carousel: ticketId, text, carousel; cada item pode usar text, image e buttons, com text e type nos botões.
  • Pix Button: ticketId, pixType, pixKey, pixName.
  • Location Button: ticketId, text.
  • Request Payment: ticketId, amount, title, text, footer, itemName, invoiceNumber, pixType, pixKey, pixName.

:warning: OBSERVAÇÕES IMPORTANTES

  • :warning: Preserve exatamente os nomes dos endpoints e campos.
  • :warning: Valide arrays, valores monetários, URLs de imagem e dados PIX antes do envio.
  • :warning: Confirme ticketId e invoiceNumber quando utilizar solicitação de pagamento.
  • :warning: Não compartilhe o {token}.

:gear: DICAS E BOAS PRÁTICAS

  • Teste cada tipo interativo separadamente.
  • Revise choices e selectableCount nas enquetes.
  • Confirme valores e dados PIX antes de solicitar pagamentos.

:bar_chart: RESULTADO ESPERADO

A integração poderá utilizar os conteúdos interativos documentados para conexões UazAPI pela API externa.

:receipt: RESUMO FINAL

Use as rotas /sendInteractive/uazapi/* com a URL base oficial e Authorization: Bearer {token}.

:label: KEYWORDS

API, UazAPI, interativo, PIX, pagamento

:robot: Peça ajuda ao ChatGPT da Oratrix

A I.A. da Oratrix no ChatGPT poderá tirar dúvidas e te guiar passo a passo no suporte.