# Send a Message

## Send An Outbound Message

```
curl "https://sms.accentvoice.com/api/v2/<DID Number>/sendMessage/"
  -X POST
{
    "key": "<API Key>",
    "to": "<11-Digit Destination>",
    "message": "Hello world!"
}
```

> This request queues an outbound SMS message with the following response:

```
{
    "success": true,
    "error": false,
    "status_code": "SEND-SUCCESS",
    "message": "The message was successfully queued for delivery.",
    "data": {
        "message_id": "47ce05e2fcfceb6a56aaf84ae1fa49e81e77db1d"
    }
}
```

This API endpoint queues an outbound message from a given DID.

#### HTTP Request <a href="#http-request-6" id="http-request-6"></a>

`POST https://sms.accentvoice.com/api/v2/<DID Number>/sendMessage/`

#### Request Body Parameters <a href="#request-body-parameters-2" id="request-body-parameters-2"></a>

| Parameter | Description                     | Required |
| --------- | ------------------------------- | -------- |
| to        | 11-digit destination            | Yes      |
| message   | Desired SMS message body        | Yes      |
| media     | URLs of desired MMS attachments | No       |


---

# Agent Instructions: 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:

```
GET https://guides.accentvoice.com/sms-api/send-a-message.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
