---
title: "Test an email provider by sending a test email to the logged-in user"
method: POST
path: "/email-providers/{id}/test"
tags: ["Email Providers"]
---

# Test an email provider by sending a test email to the logged-in user

`POST /email-providers/{id}/test`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/email-providers/{id}/test`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Request body

- TestEmailRequest: Request body for testing an email provider
  - `from` string, required: Sender email address (must be verified with the provider)
  - `from_name` string, nullable: Sender display name

## Response `200`

Test email result

- TestEmailResponse: Response for test email endpoint
  - `error` string, nullable: Error message if the test failed
  - `provider_message_id` string, nullable: Provider message ID if successful
  - `sent_to` string, required: The email address the test was sent to
  - `success` boolean, required: Whether the test email was sent successfully

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Provider not found
- `500`: Internal server error

## Changes

- **2026-01-11** `50604ba8d4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/email-providers/:id/test/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
