Azeer API Documentation
  1. Messages
Azeer API Documentation
  • Welcome to Azeer API 👋
  • 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
    • Custoum Fields
      • List Custoum Fields
  1. Messages

Send a Text Message

POST
https://api.mottasl.ai/v1/message/send
Last modified:2026-03-02 00:21:28

Send Text Message#

Sends a regular (non-template) WhatsApp text message to a recipient number.
💡
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.
To add line breaks (leave a blank line) inside the message body, include \n in text.body.
Example: Hello\n\nHow can I help you?

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": "text",
    "text": {
        "body": "Hi Omar,\n\nThis is a test message.\nPlease reply when you can.",
        "preview_url": false
    }
}

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": "text",
    "text": {
        "body": "Hi Omar,\n\nThis is a test message.\nPlease reply when you can.",
        "preview_url": false
    }
}'

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-03-02 00:21:28
Previous
Send a Template Message
Next
Send a Document
Built with