# Create broadcast

> Creates a draft broadcast. Pass `send: true` to send it right away (or at `scheduled_at`).

Source: https://mailvina.com/docs/api-reference/broadcasts/create-broadcast · Base URL: https://api.mailvina.com · Guide: https://mailvina.com/docs/broadcasts

`POST /broadcasts`

**Body parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `audience_id` | `string` | yes | Audience to send to. |
| `from` | `string` | yes | Verified sender. |
| `subject` | `string` | yes | Supports contact variables. |
| `html` | `string` | yes | Supports contact variables and `{{{MAILVINA_UNSUBSCRIBE_URL}}}`. |
| `text` | `string` | no | Plain-text version. |
| `name` | `string` | no | Internal name. |
| `reply_to` | `string` | no | Reply-To address. |
| `send` | `boolean` | no | Send after creating. |
| `scheduled_at` | `string` | no | ISO 8601; used with `send`. |

**Request**

```bash
curl -X POST 'https://api.mailvina.com/broadcasts' \
  -H 'Authorization: Bearer mv_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "November update",
  "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
  "from": "Acme <news@mail.acme.com>",
  "subject": "What’s new",
  "html": "<p>Big news…</p>"
}'
```

```js
const res = await fetch('https://api.mailvina.com/broadcasts', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.MAILVINA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "name": "November update",
    "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
    "from": "Acme <news@mail.acme.com>",
    "subject": "What’s new",
    "html": "<p>Big news…</p>"
  }),
});
const data = await res.json();
```

```python
import os, requests

res = requests.post(
    "https://api.mailvina.com/broadcasts",
    headers={"Authorization": f"Bearer {os.environ['MAILVINA_API_KEY']}"},
    json={
        "name": "November update",
        "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
        "from": "Acme <news@mail.acme.com>",
        "subject": "What’s new",
        "html": "<p>Big news…</p>"
    },
)
print(res.json())
```

**Response**

```json
{
  "id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b"
}
```
