Mensajes
Authorizations
Body
one ofOptionalExample:
{"messaging_product":"whatsapp","recipient_type":"individual","to":"{{Recipient-Phone-Number}}","type":"text","text":{"preview_url":false,"body":"contenido-del-mensaje-de-texto"}}or
or
or
or
or
or
or
or
Responses
200
Respuesta Exitosa
application/json
422
Error de Validación
application/json
post
/api/v1/messagePOST /api/v1/message HTTP/1.1
Host: www.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 179
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "{{Recipient-Phone-Number}}",
"type": "text",
"text": {
"preview_url": false,
"body": "contenido-del-mensaje-de-texto"
}
}{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "text",
"wa_id": "text"
}
],
"messages": [
{
"id": "text"
}
]
}Authorizations
Path parameters
idstringRequired
Responses
200
Respuesta Exitosa
application/json
422
Error de Validación
application/json
get
/api/v1/multimedia/{id}GET /api/v1/multimedia/{id} HTTP/1.1
Host: www.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"url": "text",
"mime_type": "text",
"sha256": "text",
"file_size": 1,
"id": 1,
"messaging_product": "text"
}Authorizations
Body
filestring · binaryRequired
typestringRequired
Responses
200
Respuesta Exitosa
application/json
422
Error de Validación
application/json
post
/api/v1/multimediaPOST /api/v1/multimedia HTTP/1.1
Host: www.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 31
{
"file": "binary",
"type": "text"
}{
"id": "text"
}