whatsapp.group.lifecycle_update para processar este evento em seu endpoint de webhook.
Gatilhos
Ocorre quando um grupo do WhatsApp é criado ou excluído, incluindo resultados bem-sucedidos e com falha. Inscreva-se emwhatsapp.group.lifecycle_update quando você configurar seu endpoint de webhook.
Sintaxe
A YCloud envia uma solicitação HTTPPOST para a URL de webhook configurada. A estrutura a seguir mostra uma variante de payload. Os valores entre colchetes angulares são espaços reservados; seus tipos estão listados em Parâmetros. Os campos opcionais e outras variantes são descritos abaixo.
Parâmetros
Valide o cabeçalho HTTPYCloud-Signature antes de processar o corpo JSON. Consulte validação de assinatura.
Envelope do evento
Payload do evento
whatsappGroup
whatsappGroup.customerProfile
whatsappGroup.customerProfile
whatsappGroup.addedParticipants[]
whatsappGroup.addedParticipants[]
whatsappGroup.addedParticipants[].customerProfile
whatsappGroup.addedParticipants[].customerProfile
whatsappGroup.removedParticipants[]
whatsappGroup.removedParticipants[]
whatsappGroup.removedParticipants[].customerProfile
whatsappGroup.removedParticipants[].customerProfile
whatsappGroup.failedParticipants[]
whatsappGroup.failedParticipants[]
whatsappGroup.failedParticipants[].customerProfile
whatsappGroup.failedParticipants[].customerProfile
whatsappGroup.settings[]
whatsappGroup.settings[]
whatsappGroup.contacts[]
whatsappGroup.contacts[]
whatsappGroup.contacts[].customerProfile
whatsappGroup.contacts[].customerProfile
whatsappGroup.statuses[]
whatsappGroup.statuses[]
whatsappGroup.statuses[].conversation
whatsappGroup.statuses[].conversation
whatsappGroup.statuses[].conversation.origin
whatsappGroup.statuses[].conversation.origin
whatsappGroup.statuses[].pricing
whatsappGroup.statuses[].pricing
Exemplo
O JSON a seguir é o corpo entregue ao seu receptor. IDs, números de telefone e outros valores de conta são ilustrativos.Evento de atualização do ciclo de vida de grupo do WhatsApp
Evento de atualização do ciclo de vida de grupo do WhatsApp
Grupo criado
Grupo criado
Grupo excluído
Grupo excluído
2xx. Processe tarefas lentas de forma assíncrona.

