Add a sending domain and return the exact DNS records to copy (credentials.manage)
POST
/v1/brands/{brand}/sending-identities
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/sending-identities';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"connectionId":"example","domain":"example","fromAddresses":["hello@example.com"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/sending-identities \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "domain": "example", "fromAddresses": [ "hello@example.com" ] }'Registers the domain with the provider when the connector supports it (SES, SendGrid, Mailjet) and adds the ownership record _replifier.<domain>. With Azure and SMTP only domain ownership is checked. POST …/verify checks the DNS.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
connectionId
required
string
domain
required
string
fromAddresses
Array<string>
Example generated
{ "connectionId": "example", "domain": "example", "fromAddresses": [ "hello@example.com" ]}Responses
Section titled “Responses”Domain created
Media typeapplication/json
object
identity
required
object
id
required
string
brandId
required
string
connectionId
required
string
domain
required
string
fromAddresses
required
Array<string>
status
required
string
records
required
Array<object>
object
type
required
string
name
required
string
value
required
string
purpose
required
string
required
required
boolean
verifiedAt
required
string
lastCheckAt
required
string
lastCheck
required
Array<object>
object
id
required
string
status
required
string
message
required
string
cause
required
string
fix
required
string
createdAt
required
string
checks
required
Array<object>
object
id
required
string
status
required
string
message
required
string
cause
required
string
fix
required
string
Example
{ "identity": { "status": "pending", "records": [ { "type": "TXT", "purpose": "ownership" } ], "lastCheck": [ { "status": "ok" } ] }, "checks": [ { "status": "ok" } ]}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}