Azeer API Documentation
  1. Messages
Azeer API Documentation
  • Welcome 👋
  • API Authentication
  • API Endpoints
    • Messages
      • Messages Overview
      • Get Templates List
        GET
      • Send a Template Message
        POST
      • Send a Text Message
        POST
      • Send a Document
        POST
      • Send an Image
        POST
    • Agents
      • List All Agents
      • Get an Agent Details
      • Assign Contact to an Agent
    • Contacts
      • Create a Contact
      • Get Contact Details
    • Webhooks
      • Webhooks Overview
      • List All Webhooks
      • Get Webhook Details
      • Create Webhook
      • Delete Webhook
    • Tags
      • Create a Tag
      • List All Tags
      • Adding Tag to a Contact
  1. Messages

Send an Image

POST
https://api.mottasl.ai/v1/message/send
Last modified:2026-01-18 08:47:21

Send an Image#

Sends a regular (non-template) WhatsApp Image message to a recipient phone number.
This endpoint is used for session messages (non-template).
You can optionally include a caption with up to 1024 characters.
💡
This endpoint can be used only when you have an active 24-hour customer service session with the recipient (i.e., the customer has messaged you within the last 24 hours and the conversation window is open). If there is no open session, you must use a template message instead.

Supported image formats & Sizes#

Images must be 8-bit, RGB or RGBA.
Image TypeExtensionMIME TypeMax Size
JPEG.jpegimage/jpeg5 MB
PNG.pngimage/png5 MB

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Example
{
    "to": "966544351828",
    "type": "image",
    "document": {
        "link": "https://example.com/files/invoice-2025-0001.pdf",
        "caption": "مرفق فاتورتك رقم INV-2025-0001. إذا عندك أي استفسار رد على الرسالة."
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mottasl.ai/v1/message/send' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "to": "966544351828",
    "type": "image",
    "document": {
        "link": "https://example.com/files/invoice-2025-0001.pdf",
        "caption": "مرفق فاتورتك رقم INV-2025-0001. إذا عندك أي استفسار رد على الرسالة."
    }
}'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "id": 0,
        "message_id": "string",
        "from_id": "string",
        "to_id": "string",
        "timestamp": "string",
        "channel": "string",
        "source": "string",
        "type": "string",
        "direction": "string",
        "level": "string",
        "parent_message_id": 0,
        "thread_id": 0,
        "business_id": "string",
        "contact_id": 0,
        "forwarded": true,
        "sensitive": true,
        "mock": true,
        "spam": 0,
        "mentions": null,
        "agent_id": 0,
        "is_msg_read": true,
        "template_id": 0,
        "is_recorded": true,
        "close_reason_id": 0,
        "close_summary": "string",
        "CreatedAt": "string",
        "UpdatedAt": "string"
    },
    "message": "string",
    "success": true
}
Modified at 2026-01-18 08:47:21
Previous
Send a Document
Next
List All Agents
Built with