---
title: "Send one test message through an application's mail server"
method: POST
path: "/applications/{id}/email-sender:test"
tags: ["Applications"]
---

# Send one test message through an application's mail server

`POST /applications/{id}/email-sender:test`

## Request

- Base URL: `https://api.customdomain.ai/v1`
- URL: `https://api.customdomain.ai/v1/applications/{id}/email-sender:test`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Sends a short test message to `to` through the saved SMTP server (`mode` must be `smtp`). On success `verified_at` is recorded; on failure `last_error` is recorded (with no secret in it) and the response is 502. Limited to 5 per hour per application. Requires `app:write`.

## Path parameters

- `id` string, required

## Request body

- object
  - `to` string, required: A plain email address.

## Response `200`

Sent.

- object
  - `ok` boolean, required
  - `verified_at` string, date-time, required

## Other responses

- `400`: Error envelope: {code, title, details}.
- `401`: Error envelope: {code, title, details}.
- `403`: Error envelope: {code, title, details}.
- `404`: Error envelope: {code, title, details}.
- `409`: Error envelope: {code, title, details}.
- `429`: Error envelope: {code, title, details}.
- `502`: Error envelope: {code, title, details}.

---

[API](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api.md) · [All operations](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/revisions/34d89cb7a7cd?raw)
