Send images, video, audio and documents

Every message type is a JSON POST to its own path under /v1/messages. All of them need deviceId and to.

Endpoints and bodies

TypePathExtra fields
Text/v1/messages/chatbody
Image/v1/messages/imageimage, caption
Video/v1/messages/videovideo, caption
Audio/v1/messages/audioaudio
Document/v1/messages/documentdocument, filename
Link/v1/messages/linklink
Contact/v1/messages/contactcontact
Location/v1/messages/locationaddress, lat, lng

Example: an image with a caption

Python
import os
import requests

response = requests.post(
    "https://quackapi.com/v1/messages/image",
    headers={"x-api-key": os.environ["QUACKAPI_KEY"]},
    json={
        "deviceId": 1,
        "to": "923001234567",
        "image": "https://example.com/photo.jpg",
        "caption": "Your order",
    },
    timeout=15,
)
response.raise_for_status()
print(response.json())  # {'success': True, 'messageId': 123, 'status': 'queued'}

Incoming media

Media you receive is delivered to your webhook as text such as [Image] followed by the caption, not as a file.

Related

Last reviewed 2026-11-09. QuackAPI is an unofficial linked-device service. Acceptable use