{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": {
"message": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "whatsapp",
"platform_message_id": "<string>",
"timestamp": "1796396531",
"context": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform_message_id": "<string>"
},
"content": "<string>",
"media": {
"url": "<string>",
"filename": "<string>",
"content_type": "<string>",
"byte_size": 123
},
"transcript": {
"text": "<string>"
},
"gluu": {
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"from": "<string>",
"from_user_id": "<string>",
"from_parent_user_id": "<string>",
"to": "<string>",
"to_user_id": "<string>",
"to_parent_user_id": "<string>",
"username": "<string>",
"profile_name": "<string>",
"text": {
"body": "<string>"
},
"image": {
"caption": "<string>",
"mime_type": "<string>",
"filename": "<string>"
},
"video": {
"caption": "<string>",
"mime_type": "<string>",
"filename": "<string>"
},
"document": {
"caption": "<string>",
"mime_type": "<string>",
"filename": "<string>"
},
"audio": {
"mime_type": "<string>",
"voice": true
},
"sticker": {
"mime_type": "<string>"
},
"location": {
"latitude": 123,
"longitude": 123,
"name": "<string>",
"address": "<string>"
},
"contacts": [
{
"name": "<string>",
"phones": [
"<string>"
]
}
],
"reaction": {
"emoji": "<string>",
"message_id": "<string>"
},
"template": {
"name": "<string>",
"language": "<string>"
},
"interactive": {},
"statuses": [
{
"timestamp": "<string>"
}
],
"error": {
"code": "<string>",
"message": "<string>"
},
"sender": {
"id": "<string>",
"name": "<string>"
}
}
},
"test": true
}Webhooks
Mensaje enviado
WhatsApp aceptó un mensaje saliente enviado por Gluu: desde la API, el inbox, un agente, una campaña o una automatización. Usa data.message.origin para distinguirlos. Los mensajes que el negocio manda desde la app de WhatsApp Business no generan este evento.
WEBHOOK
message.sent
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": {
"message": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "whatsapp",
"platform_message_id": "<string>",
"timestamp": "1796396531",
"context": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform_message_id": "<string>"
},
"content": "<string>",
"media": {
"url": "<string>",
"filename": "<string>",
"content_type": "<string>",
"byte_size": 123
},
"transcript": {
"text": "<string>"
},
"gluu": {
"channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"from": "<string>",
"from_user_id": "<string>",
"from_parent_user_id": "<string>",
"to": "<string>",
"to_user_id": "<string>",
"to_parent_user_id": "<string>",
"username": "<string>",
"profile_name": "<string>",
"text": {
"body": "<string>"
},
"image": {
"caption": "<string>",
"mime_type": "<string>",
"filename": "<string>"
},
"video": {
"caption": "<string>",
"mime_type": "<string>",
"filename": "<string>"
},
"document": {
"caption": "<string>",
"mime_type": "<string>",
"filename": "<string>"
},
"audio": {
"mime_type": "<string>",
"voice": true
},
"sticker": {
"mime_type": "<string>"
},
"location": {
"latitude": 123,
"longitude": 123,
"name": "<string>",
"address": "<string>"
},
"contacts": [
{
"name": "<string>",
"phones": [
"<string>"
]
}
],
"reaction": {
"emoji": "<string>",
"message_id": "<string>"
},
"template": {
"name": "<string>",
"language": "<string>"
},
"interactive": {},
"statuses": [
{
"timestamp": "<string>"
}
],
"error": {
"code": "<string>",
"message": "<string>"
},
"sender": {
"id": "<string>",
"name": "<string>"
}
}
},
"test": true
}Autorizaciones
Encabezados
Cuerpo
application/json
Respuesta
2XX
Responde con cualquier estado 2xx en menos de 10 segundos para confirmar que lo recibiste.