Skip to main content
POST
/
email
/
sending-identities
Create sending identity
curl --request POST \
  --url https://www.dench.com/api/v1/email/sending-identities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "domain",
  "domain": "example.com",
  "fromEmail": "founder@example.com",
  "fromName": "Ada at Example"
}
'
{
  "identityId": "esi_abc123"
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
type
enum<string>
required

Identity scope. domain verifies via DNS (DKIM); email verifies a single mailbox via a confirmation email.

Available options:
domain,
email
fromEmail
string
required

Sender mailbox, e.g. founder@example.com.

domain
string

Lowercase domain; required when type is domain.

fromName
string

Default display name for the sender.

replyToEmail
string
configurationSetName
string

Response

Successful response

identityId
string
required