Set the default sender

Set the default sender. View request and response details for this Samva email API endpoint.

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

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^sender_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

SuccessResult

application/json
  1. response
success*boolean
message*string
Example Request
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.email.setDefaultSender({  "id": "example"});
Example Response
{  "success": true,  "message": "string"}

Related documentation