1. WhatsApp
Nabd Messaging
  • WhatsApp
    • Send a text message (WhatsApp)
      POST
    • Send an image or document (WhatsApp)
      POST
    • Send a saved template (WhatsApp)
      POST
    • Check whether a phone number is on WhatsApp
      POST
    • Resolve a WhatsApp identity (phone, WhatsApp ID, or username)
      POST
    • List WhatsApp chats
      POST
    • List WhatsApp groups
      POST
    • Read the WhatsApp device status
      POST
  • Telegram
    • Send a text message (Telegram)
      POST
    • Send an image or document (Telegram)
      POST
    • Send a saved template (Telegram)
      POST
    • List Telegram chats and dialogs
      POST
    • List Telegram groups and channels
      POST
    • Read the Telegram account status
      POST
  • Templates
    • List templates
      POST
    • Get a template
      POST
  • Messages
    • List sent messages
      POST
    • Get a sent message
      POST
  • Phonebook
    • List contacts
      POST
    • Create a contact
      POST
    • Update a contact
      POST
    • Delete a contact
      POST
    • List contact groups
      POST
    • Create a contact group
      POST
    • Delete a contact group
      POST
    • Add contacts to a group
      POST
    • Remove contacts from a group
      POST
  • Scheduling
    • Schedule a message
    • List scheduled messages
    • Cancel a scheduled message
  • Account
    • Read account usage and limits
  • Schemas
    • AuthKeys
    • AuthKeyOnlyRequest
    • AuthAppRequest
    • WhatsAppSendTextRequest
    • ContactsResponse
    • WhatsAppSendMediaRequest
    • SendTemplateRequest
    • GroupsResponse
    • TelegramSendTextRequest
    • TelegramSendMediaRequest
    • ResolveResponse
    • NumberCheckRequest
    • LookupRequest
    • ValidationError
    • ChatsRequest
    • UsernameError
    • TemplatesListRequest
    • WaServerError
    • TemplatesGetRequest
    • WaDeviceNotConnected
    • MessagesListRequest
    • MessagesGetRequest
    • ResolveRateLimit
    • ContactsListRequest
    • ContactsCreateRequest
    • RateLimitAny
    • ContactsUpdateRequest
    • ReqIdRequest
    • ReqGroupIdRequest
    • ReqScheduleIdRequest
    • ContactGroupsCreateRequest
    • AddRemoveContactsRequest
    • ScheduleCreateRequest
    • ScheduleListRequest
    • Envelope
    • PaginatedEnvelope
    • Error
    • RateLimitExceededSchema
    • LookupResponse
    • ChatsResponse
    • GroupsChatsResponse
    • TelegramDialogsResponse
    • ContactItem
    • AuthRequest
    • ContactsRequest
    • CreateMessageRequest
    • CreateMessageResponse
    • ResolveRequest
    • AuthError
    • RateLimitExceeded
    • SendBlocked
  1. WhatsApp

Send an image or document (WhatsApp)

POST
/api/whatsapp/send-media
Last modified:2026-09-29 09:27:11
Send an image or document (with an optional caption) on WhatsApp.
Use it for PDF invoices, product photos, or any file up to 10 MB that is
reachable at a public HTTP/HTTPS URL. The file must be publicly fetchable
now — Nabd verifies it with a HEAD request at send time.
file: required, a public http(s) URL, max 200 characters. Allowed
extensions: jpg, jpeg, png, webp, pdf, docx, xlsx, csv, txt. Max 10 MB.
message: optional caption, max 1000 characters.
to: like send-text — phone, WhatsApp ID, or username.

Request

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Message accepted and logged.
Bodyapplication/json

🟠422
🟠401Error401
🟠429Error429
🔴502Error502Send
🔴503Error503
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/whatsapp/send-media' \
--header 'Content-Type: application/json' \
--data '{
    "authkey": "{{authkey}}",
    "appkey": "{{appkey}}",
    "to": "966501234567",
    "message": "Your invoice is attached",
    "file": "https://example.com/invoice.pdf"
}'
Response Response Example
200 - success
{
    "success": true,
    "data": {
        "message_id": 12346,
        "channel": "whatsapp",
        "from": "966500000000",
        "to": "966501234567"
    }
}
Modified at 2026-09-29 09:27:11
Previous
Send a text message (WhatsApp)
Next
Send a saved template (WhatsApp)
Built with