Mensajes

send_message_api_v1_message_post

post
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
post
/api/v1/message
POST /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"
    }
  ]
}

get_multimedia_api_v1_multimedia__id__get

get
Authorizations
Path parameters
idstringRequired
Responses
200

Respuesta Exitosa

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"
}

get_multimedia_api_v1_multimedia_post

post
Authorizations
Body
filestring · binaryRequired
typestringRequired
Responses
200

Respuesta Exitosa

application/json
post
/api/v1/multimedia
POST /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"
}