cURL
curl --request POST \ --url https://json.ricardofuentes.dev/api/v1/whatsapp/send \ --header 'Content-Type: application/json' \ --data ' { "instance": "<string>", "to": "<string>", "message": "<string>", "media_url": "<string>" } '
{ "success": true, "data": { "id": "msg_01j...", "status": "sent", "to": "+51999000111", "timestamp": 1740000000 } }
Envía un mensaje de texto o multimedia por WhatsApp
curl -X POST https://json.ricardofuentes.dev/api/v1/whatsapp/send \ -H "Authorization: Bearer tu_token" \ -H "Content-Type: application/json" \ -d '{ "instance": "mi-instancia", "to": "+51999000111", "message": "Hola desde JSONPE!" }'