PerpetuusPerpetuus Developers

Canais e WhatsApp (BETA)

Canais, templates HSM e vínculo com boards — API avançada.

BETA — API avançada. Criar/apagar templates e sync alteram o provedor externo. Credenciais nunca voltam completas nas respostas.

Tipos de canal

whatsapp · instagram · telegram · email · web · api

Receitas

Criar canal WhatsApp

curl -X POST "https://api.perpetuus.com.br/api/chat-channels" \
  -H "Authorization: Bearer SEU_TOKEN" \
  -H "x-tenant-id: acme" \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "name": "WhatsApp Comercial",
      "channelType": "whatsapp",
      "credentials": {
        "accessToken": "EAAB...",
        "phoneNumberId": "123",
        "businessAccountId": "456"
      }
    }
  }'

Vincular ao board

POST /boards/{boardId}/chat-channels com { "data": { "chatChannel": "CHANNEL_ID" } }.

Templates HSM

  • GET/POST/DELETE /chat-channels/{id}/templates
  • POST .../templates/sync
  • POST .../templates/upload-handle (multipart)

Referência: API Reference → Canais.

On this page