---
title: "Enable the SES sending identity"
method: POST
path: "/sender-domains/{id}/setup-outbound"
tags: ["domains"]
---

# Enable the SES sending identity

`POST /sender-domains/{id}/setup-outbound`

## 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/sender-domains/{id}/setup-outbound`
- Auth: HTTP bearer

Creates or reuses the SES domain identity and returns the DNS records to configure (DKIM CNAME, MAIL FROM MX/SPF).

## Path parameters

- `id` string, required: Domain record ID

## Response `200`

Sending configuration status

- object
  - `success` boolean, required
  - `ready` boolean, required
  - `domain` string, required
  - `outboundStatus` string, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `404`: Domain not found
- `409`: Ownership not verified or rejected
- `502`: SES upstream error
- `503`: SES service unavailable

---

[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)
