---
agentTools:
  projectIndex: https://docs.doubletick.io/llms.txt
---

# Send Whatsapp Direct Send Message

Sends a free-form text message to a customer whose 24-hour service window has closed, without a pre-approved template.

### Before you call
- Direct Send must be provisioned and switched on for the sending WhatsApp number.
- `to` is required: the customer's phone number with country code. Direct Send is 1:1 only, so `groupId` is rejected.
- `from` is optional. If omitted, your organisation's default connected WhatsApp number is used.
- `content.text` is required and cannot be blank.

### How it works
- If the customer's 24-hour window is still open, the message is sent as an ordinary session message instead.
- Returns 422 `DIRECT_SEND_NOT_ELIGIBLE` when Direct Send is not provisioned, switched off, or paused by Meta for the number.
- Fails if `from` is not one of your WhatsApp numbers or is disconnected.
- The response contains `recipient`, `status` and `messageId`. Use the `messageId` with **Get Message Status**.

### Rate limit
- 500 requests per hour.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/whatsapp/message/direct-send": {
      "post": {
        "operationId": "outgoing-messages-whatsapp-direct-send",
        "summary": "Send Whatsapp Direct Send Message",
        "description": "Sends a free-form text message to a customer whose 24-hour service window has closed, without a pre-approved template.\n\n### Before you call\n- Direct Send must be provisioned and switched on for the sending WhatsApp number.\n- `to` is required: the customer's phone number with country code. Direct Send is 1:1 only, so `groupId` is rejected.\n- `from` is optional. If omitted, your organisation's default connected WhatsApp number is used.\n- `content.text` is required and cannot be blank.\n\n### How it works\n- If the customer's 24-hour window is still open, the message is sent as an ordinary session message instead.\n- Returns 422 `DIRECT_SEND_NOT_ELIGIBLE` when Direct Send is not provisioned, switched off, or paused by Meta for the number.\n- Fails if `from` is not one of your WhatsApp numbers or is disconnected.\n- The response contains `recipient`, `status` and `messageId`. Use the `messageId` with **Get Message Status**.\n\n### Rate limit\n- 500 requests per hour.",
        "tags": [
          "Outgoing Messages"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendWhatsappDirectSendMessageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": ""
          },
          "400": {
            "description": "Incorrect payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 400
                    },
                    "message": {
                      "type": "string",
                      "example": "Bad Request"
                    },
                    "error": {
                      "type": "string",
                      "example": "Error Text"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 401
                    },
                    "message": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No WhatsApp channel found for the given \"from\", or the organization has no connected channel",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 404
                    },
                    "code": {
                      "type": "string",
                      "example": "WABA_INTEGRATION_NOT_FOUND"
                    },
                    "message": {
                      "type": "string",
                      "example": "No connected WhatsApp channel found for 919999999999"
                    }
                  }
                }
              }
            }
          },
          "412": {
            "description": "The WhatsApp channel exists but is not connected",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 412
                    },
                    "code": {
                      "type": "string",
                      "example": "WABA_INTEGRATION_NOT_CONNECTED"
                    },
                    "message": {
                      "type": "string",
                      "example": "WABA integration not connected: +919999999999"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Direct Send is not available for this WhatsApp channel",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 422
                    },
                    "code": {
                      "type": "string",
                      "example": "DIRECT_SEND_NOT_ELIGIBLE"
                    },
                    "message": {
                      "type": "string",
                      "example": "Direct Send is not provisioned for this WhatsApp channel"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests: Rate Limit Exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 429
                    },
                    "message": {
                      "type": "string",
                      "example": "Too Many Requests: Rate Limit Exceeded"
                    },
                    "error": {
                      "type": "string",
                      "example": "Too Many Requests"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "basic": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "DoubleTick Public APIs",
    "description": "",
    "version": "2.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://public.doubletick.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "basic": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "Public API key."
      }
    },
    "schemas": {
      "SendTextMessageContentDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The text message to be sent",
            "example": "Hello, world!"
          }
        },
        "required": [
          "text"
        ]
      },
      "SendWhatsappDirectSendMessageDto": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "The phone number of the WhatsApp channel to send from, with the country code. Defaults to the organization's primary channel.",
            "example": "+919999999999",
            "minLength": 10,
            "maxLength": 15,
            "format": "phone"
          },
          "to": {
            "type": "string",
            "description": "The phone number to which the message is sent, with the country code.",
            "example": "+919999999999",
            "minLength": 10,
            "maxLength": 15,
            "format": "phone"
          },
          "messageId": {
            "type": "string",
            "description": "Message ID (UUID v4) to be used for the message. If not provided, a random UUID v4 will be generated",
            "example": "uuid-v4",
            "minLength": 36,
            "maxLength": 36
          },
          "content": {
            "description": "Text message to be sent",
            "example": {
              "text": "Your order has shipped."
            },
            "allOf": [
              {
                "$ref": "#/components/schemas/SendTextMessageContentDto"
              }
            ]
          }
        },
        "required": [
          "to",
          "content"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 154,
      "2": 196,
      "3": 207,
      "4": 67,
      "5": 147,
      "6": 180,
      "7": 0,
      "8": 57,
      "9": 36,
      "10": 231,
      "11": 202
    }
  }
}
```