Skip to main content
POST
/
domains
Create Domain
curl --request POST \
  --url https://app.uselettr.com/api/domains \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domain": "example.com"
}
'
{
"message": "Domain created successfully.",
"data": {
"domain": "example.com",
"status": "pending",
"status_label": "Pending Review",
"dkim": {
"public": "MIGfMA0GCSqGSIb3DQEBA...",
"selector": "scph0123",
"headers": "from:to:subject:date"
}
}
}

Authorizations

Authorization
string
header
required

API key for authentication. Format: Bearer {api_key}

Body

application/json

Request to create a new sending domain

domain
string
required

The domain name to register (e.g., example.com)

Maximum string length: 255
Example:

"example.com"

Response

Domain created successfully

Response after successfully creating a domain

message
string
required

Human-readable success message

Example:

"Domain created successfully."

data
object
required

View of a sending domain