---
title: "Set the default sending domain"
method: POST
path: "/v1/email/domains/{id}/default"
tags: ["Email"]
---

# Set the default sending domain

`POST /v1/email/domains/{id}/default`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/domains/{id}/default`
- Auth: API key in header `x-api-key`

Marks a verified domain as the organization's default sending domain, atomically clearing any previous default. Provisioning and inbound routing prefer the default domain when several apply. It does not choose the `from` of omitted-`from` sends; those use the organization default sender.

## Path parameters

- `id` string, required

## Response `200`

SuccessResult

- SuccessResult
  - `success` boolean, required
  - `message` string, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

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