Sender Identities

Full reference for the Sender Identities resource in the bluefox.email API. See the API overview for authentication, the response envelope, and pagination.

List sender identities

GET /v1/projectId/{projectId}/sender-identities

There is no separate "default" flag - the first item in the returned list is the default sender identity (used when an email doesn't specify one). Use POST .../set-default to change which one is first. Not paginated - always returns every identity on the project. Supports filter[<field>]=value exact-match filtering (e.g. filter[email]=support@example.com) to look one up directly instead of scanning the full list.

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.
filter[&lt;field&gt;]querystringExact-match filter on a top-level field, e.g. filter[email]=support@example.com. Repeatable for multiple fields.

Responses

StatusDescription
200OK
403Missing or invalid API key

Response body

FieldTypeRequiredDescription
itemsarray
countintegerTotal matching items across all pages, not just this page.
nextstringFull URL (path + query string) of the next page, or null if this is the last page.

Add a sender identity

POST /v1/projectId/{projectId}/sender-identities

The email's domain must be a verified domain on this project, in the given region.

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.

Request body

FieldTypeRequiredDescription
emailstringyesThe domain part must match a verified domain on this project in the given region.
namestring
regionstringyes

Responses

StatusDescription
201Created
400Invalid request body or query - every violation found (missing/invalid/unexpected fields) is reported in one response, semicolon-separated, not just the first one hit.
403Missing or invalid API key

Response body

FieldTypeRequiredDescription
_idstring
emailstring
namestring
regionstring

Set a sender identity as the default

POST /v1/projectId/{projectId}/sender-identities/{identityId}/set-default

Moves this identity to the front of the sender identities list - the position that determines which one is used by default.

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.
identityIdpathstringyes

Responses

StatusDescription
200OK
403Missing or invalid API key
404Sender identity not found

Response body

FieldTypeRequiredDescription
_idstring
emailstring
namestring
regionstring

Delete a sender identity

DELETE /v1/projectId/{projectId}/sender-identities/{identityId}

Fails while a campaign, transactional email, triggered email, or automation email still uses it.

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.
identityIdpathstringyes

Responses

StatusDescription
200Deleted
403Missing or invalid API key
404Sender identity not found
405The operation is blocked by a business rule (e.g. the resource is still in use)

Response body

FieldTypeRequiredDescription
_idstring