# Send a new email `POST /api/v1/messages/send` Sends an email immediately and records one message per recipient. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Messages → Write**. ## Body parameters - `email` (string, required) — Recipient email address. - `subject` (string) — Email subject, up to 255 characters. - `body` (string, required) — HTML body. Alias body_html. - `cc` (string) — Copy addresses separated by commas or semicolons. Alias email_cc. - `send_copy_to_club` (boolean) — Copy the club email. Alias copy_to_club. Defaults to false for new messages. - `athlete_id` (integer or null) — ID of the associated athlete. - `parent_id` (integer or null) — ID of the associated parent. - `staff_id` (integer or null) — ID of the associated staff member or coach. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/messages/send" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"email":"alex@example.com","subject":"Practice schedule","body":"

Practice starts at 18:00.

"}' ``` ## Response **200 OK** Returns one result for each recipient. If some recipients fail, the error response still includes the recipient results in `data`. Example with fictional data and selected fields. ```json { "message_key": "entities.message.messages.sent", "data": [ { "email": "alex@example.com", "role": "to", "id": 18, "status": "sent" } ] } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — Required fields are missing or delivery failed for one or more recipients. - `422` — The club copy was requested but the club email is unavailable.