Reference data
Email types, MTA configs and identities, addressed by public key.
The SendingIdentity object 15 fields
The identity's default verified sending lane's MTA, when one is set.
The from-address. This is the value broadcasts reference in sending_identity_emails.
The email types this identity may send. Many-to-many: an identity can serve several types.
The domain the address belongs to.
The domain links and the open pixel are rewritten to. Null until tracking is configured — sending is hard-gated on a live tracking domain.
MTAs whose (identity × MTA) lane has been confirmed by a test-send and may send.
The EmailType object 11 fields
Owning email category, when categorised; null otherwise.
Whether a List-ID header is emitted for sends of this type.
Stable public key. This is the value broadcasts reference as email_type_key.
Prepended to the utm_campaign on tracked links for sends of this type.
List sending identities
Every configured from-address in the workspace. Reference one in a broadcast payload by its email_address (sending_identity_emails). Each row also carries the email types it can send (email_type_ids) and its verified sending lanes (verified_mta_config_ids, default_mta_config_id). Not paginated.
A page of SendingIdentity objects, under data.
Every sending identity.
The request failed validation, or a referenced record was rejected.
The tenant slug, or the record the path names, does not exist.
curl -X GET "https://api.sonarsend.com/t/acme/api/sending-identities" \ -H "X-API-Key: $SONARSEND_API_KEY"
const res = await fetch('https://api.sonarsend.com/t/acme/api/sending-identities', {
method: 'GET',
headers: { 'X-API-Key': process.env.SONARSEND_API_KEY },
});
const data = await res.json();{
"data": [
{
"id": "9c21895d-57f0-4a15-a1df-4dc6835d4f80",
"tenant_id": "9c21895d-57f0-4a15-a1df-4dc6835d4f80",
"email_address": "string",
"display_name": "Acme onboarding",
"reply_to": "string",
"email_type_ids": [
"9c21895d-57f0-4a15-a1df-4dc6835d4f80"
]
}
],
"next_cursor": "eyJpZCI6IjljMjE4OTVkIn0",
"has_more": true
}Get a sending identity
One sending identity by its UUID.
The SendingIdentity object.
The sending identity.
The request failed validation, or a referenced record was rejected.
The tenant slug, or the record the path names, does not exist.
curl -X GET "https://api.sonarsend.com/t/acme/api/sending-identities/9c21895d-57f0-4a15-a1df-4dc6835d4f80" \ -H "X-API-Key: $SONARSEND_API_KEY"
const res = await fetch('https://api.sonarsend.com/t/acme/api/sending-identities/9c21895d-57f0-4a15-a1df-4dc6835d4f80', {
method: 'GET',
headers: { 'X-API-Key': process.env.SONARSEND_API_KEY },
});
const data = await res.json();{
"id": "9c21895d-57f0-4a15-a1df-4dc6835d4f80",
"tenant_id": "9c21895d-57f0-4a15-a1df-4dc6835d4f80",
"email_address": "string",
"display_name": "Acme onboarding",
"reply_to": "string",
"email_type_ids": [
"9c21895d-57f0-4a15-a1df-4dc6835d4f80"
]
}List email types
Every sending category in the workspace. Use a type's type_key as email_type_key in a broadcast payload. Read this before creating a broadcast. Not paginated.
A page of EmailType objects, under data.
Every email type.
The request failed validation, or a referenced record was rejected.
The tenant slug, or the record the path names, does not exist.
curl -X GET "https://api.sonarsend.com/t/acme/api/email-types" \ -H "X-API-Key: $SONARSEND_API_KEY"
const res = await fetch('https://api.sonarsend.com/t/acme/api/email-types', {
method: 'GET',
headers: { 'X-API-Key': process.env.SONARSEND_API_KEY },
});
const data = await res.json();{
"data": [
{
"id": "9c21895d-57f0-4a15-a1df-4dc6835d4f80",
"tenant_id": "9c21895d-57f0-4a15-a1df-4dc6835d4f80",
"type_key": "welcome-series",
"display_name": "Acme onboarding",
"description": "string",
"utm_campaign_prefix": "string"
}
],
"next_cursor": "eyJpZCI6IjljMjE4OTVkIn0",
"has_more": true
}