---
title: "Send Email To All Users"
method: POST
path: "/v1/email/send_email_to_all_users"
tags: ["email"]
---

# Send Email To All Users

`POST /v1/email/send_email_to_all_users`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/email/send_email_to_all_users`
- Auth: none declared

Send email to all users.

## Headers

- `x-admin-api-key` string

## Request body

- EmailToAllUsersPayload
  - `subject` string
  - `html_body` string
  - `data` object
  - `template_id` string
  - `send_at_most` integer
  - `user_ids` integer[], nullable
  - `agency_user_id` integer, nullable
  - `country` string, nullable
  - `has_active_subscription` boolean, nullable
  - `exclude_india_users` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
