POST
/
message
/
sendmedia
/
{nombre-instancia}
cURL
curl --request POST \
  --url https://apiwsp.factiliza.com/v1/message/sendmedia/{nombre-instancia} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "number": "<string>",
  "mediatype": "<string>",
  "filename": "<string>",
  "media": "<string>",
  "caption": "<string>"
}'
{
  "status": 200,
  "success": true,
  "message": "Mensaje enviado con Exito!"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

nombre-instancia
string
required

Body

application/json

Plant to add to the store

number
string
required

Número del whatsapp para enviar el mensaje. Codigo de pais + número Ejm: 51999999999

mediatype
string
required

Puede ser 'image', 'document', 'video', o 'audio'.

media
string
required

Url o Base64 de archivo(si es archivo local)

filename
string

Nombre del archivo con su extension. ejem: invoice.pdf (solo para media en base64) En media url el filename es opcional

caption
string

Es el texto para acompañar el documento enviado.

Response

message response

status
integer
required
success
boolean
required
message
string
required