Set the default sender
Set the default sender. View request and response details for this Samva email API endpoint.
POST
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.
apiKeyheader
x-api-key<token>id*stringMatch
^sender_[0-9a-hjkmnp-tv-z]{16,24}$SuccessResult
application/json- response
success*booleanmessage*stringimport { 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"}