---
title: "Send an email from a draft"
method: POST
path: "/tool-actions/email/send"
tags: ["ToolAction"]
---

# Send an email from a draft

`POST /tool-actions/email/send`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/tool-actions/email/send`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/tool-actions/email/send/post.ts> (a function with typed inputs; its response is checked against the schema)

Send an email from a user-approved, tool-generated draft via Microsoft Graph.

## Query parameters

- `cookie_name` string, nullable

## Request body

- SendEmailRequest: Request to send an email from a tool call.
  - `tool_call_id` string, required: The ID of the tool call that generated the draft
  - `to` union, required: Recipient email address(es)
    - string
    - string[]
  - `subject` string, required: Email subject
  - `body` string, required: Email body content (can be markdown or HTML)
  - `cc` union: CC recipients
    - string
    - string[]
  - `bcc` union: BCC recipients
    - string
    - string[]

## Response `200`

Successful Response

- SendEmailResponse: Response from sending an email.
  - `success` boolean, required: Whether the email was sent successfully.
  - `message` string, required: Human-readable result message.
  - `recipients` string[], nullable: The recipients the email was sent to, if available.

## Other responses

- `400`: No recipient provided or the mail provider rejected the send.
- `401`: Missing or invalid authentication.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
