---
title: "Send Generic Email"
method: POST
path: "/api/send-email"
tags: ["Email"]
---

# Send Generic Email

`POST /api/send-email`

## Request

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

Send a candidate-facing email (screening invite, status update, etc.).

Routes through `_send()` so the Resend / FastMail switch, Reply-To,
List-Unsubscribe header, and the new `interview@` From address all
apply uniformly with the rest of the email surface.

## Request body

- GenericEmailRequest: Request model for sending generic emails (screening invites, etc.). The Next.js side renders both `html_content` and `text_content` via `lib/email-templates.ts`. Historic bug: this endpoint accepted `text_content` but only shipped HTML, leaving every candidate email HTML-only — a known spam-filter penalty. Now passed through.
  - `to_email` string, email, required
  - `subject` string, required
  - `html_content` string, required
  - `text_content` string, required
  - `email_type` string, nullable
  - `ics_content` string, nullable
  - `ics_filename` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api.md) · [All operations](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/revisions/c8ad03e900ea?raw)
