> For the complete documentation index, see [llms.txt](https://doc1.antgst.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc1.antgst.com/ant-api/sms/marketing-sms/send-bulk-marketing-sms-multiple-message-contents.md).

# Send Bulk Marketing SMS(multiple message contents)

Send bulk marketing SMS,multiple message contents

**Url**

<mark style="color:blue;">**`POST`**</mark> **`https://api.antgst.com/sms/send/batch`**

**Content-Type**

**`application/json`**

**Request Body**

| Name                | Type      | Required | Description                                                                          |
| ------------------- | --------- | -------- | ------------------------------------------------------------------------------------ |
| authSecret          | string    | Yes      | API authentication key for interface authorization                                   |
| array               | **Array** | Yes      | List of SMS to be submitted in batch, maximum **1000** entries per request           |
| array\[].senderId   | String    | Yes      | Sender ID / SMS signature, identifies the source of the SMS                          |
| array\[].number     | String    | Yes      | Recipient number, must include country code                                          |
| array\[].smsContent | String    | Yes      | SMS body content                                                                     |
| array\[].orderId    | String    | No       | Used to track the uniqueness of the submitted SMS, recommended to be globally unique |

**Curl Example:**&#x20;

```sh
curl --request POST \
  --url https://api.antgst.com/sms/send/batch \
  --header 'content-type: application/json' \
  --data '{
    "authSecret": "1ec5f5a57c8d4456bf6c9ded60hjfdfe2a28141fe82f2",
    "array": [
        {
            "senderId": "sender1",
            "number": "0091xxxx08424",
            "smsContent": "content1",
            "orderId": "8d4456bf61"
        },
        {
            "senderId": "sender2",
            "number": "0091xxxx08425",
            "smsContent": "content2",
            "orderId": "8d4456bf62"
        }
    ]
}'
```

**Response**

{% tabs %}
{% tab title="200 success" %}

```json
{
    "msg": "SUCCESS",
    "fail": 1,
    "code": 200,
    "array": [
        {
            "number": "0091xxxx08424",
            "smsId": "9dbbad2a7cbf4a0d9c54b24e481c5a50",
            "orderId": "8d4456bf61",
            "code": 200,
            "result": "success"
        },
        {
            "number": "0091xxxx08425",
            "orderId": "8d4456bf62",
            "code": -1,
            "result": "phone number error!"
        }
    ],
    "success": 1
}


```

{% endtab %}

{% tab title="400 fail" %}

```json
{
	"msg": "auth secret error!",
	"code": -22

```

{% endtab %}
{% endtabs %}

#### **Response parameter description**

| Filed   | type    | Description                                                                                |
| ------- | ------- | ------------------------------------------------------------------------------------------ |
| number  | String  | The receiving number must match the number in the corresponding entry in the request body. |
| smsId   | String  | SMS Unique ID                                                                              |
| orderId | String  | Consistent with the orderId of the corresponding entry in the request body                 |
| code    | Integer | Response status code for each SMS                                                          |
| result  | String  | Response information for each SMS                                                          |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc1.antgst.com/ant-api/sms/marketing-sms/send-bulk-marketing-sms-multiple-message-contents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
