---
title: "Verify SMTP credentials"
method: POST
path: "/smtp-auth"
tags: ["sending"]
---

# Verify SMTP credentials

`POST /smtp-auth`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/smtp-auth`
- Auth: HTTP bearer

Verifies that username is the email bound to the current API key, for SMTP sending login.

## Request body

- object
  - `username` string, required: SMTP username (email)

## Response `200`

Authenticated

- object
  - `authenticated` boolean, required
  - `username` string
  - `error` string

## Other responses

- `400`: Missing a valid username
- `403`: Invalid credentials

---

[API](https://skmtc.dev/mailly/apis/mailly-api.md) · [All operations](https://skmtc.dev/mailly/apis/mailly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mailly/apis/mailly-api/revisions/1ceb29637301?raw)
