---
title: "Queue Email"
method: POST
path: "/api/jobs/email"
tags: ["jobs"]
---

# Queue Email

`POST /api/jobs/email`

## Request

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

Queue email(s) for async delivery via worker.

## Request body

- EmailJobRequest
  - `to` union, required
    - string
    - string[]
  - `subject` string, required
  - `html` string, required
  - `text` string
  - `reply_to` string, nullable
  - `attachments` EmailAttachmentInput[], nullable
    - `document_id` string, required
    - `child_id` string, required

## Response `200`

Successful Response

- EmailJobResponse
  - `success` boolean, required
  - `job_ids` string[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
