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

# Set the default sender

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

## Request

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

Marks a verified, active sender as the default of its scope, atomically clearing the previous default of the same scope: the organization level, or the sender's namespace. Omitted-`from` sends use it when neither the request nor the template names a `from`; with no default, the organization's sole verified sender is used.

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