Help centerAPI referenceEmails
Emails
Sender on the customer's domain and sending emails.
Get the sender of the project
/projects/{id}/senderprojects:readsender: null when no sending domain is set.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl "https://api.tenanci.com/v2/projects/prj_8f3k2m/sender" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"sender": {
"id": "snd_2p7k5m",
"domain": "agendafacil.com",
"from": "Agenda Fácil <contato@agendafacil.com>",
"fromName": "Agenda Fácil",
"fromLocal": "contato",
"replyTo": null,
"status": "verified",
"records": [
{
"name": "agendafacil.com",
"type": "TXT",
"value": "brevo-code:5f1e2d3c4b5a69788796a5b4c3d2e1f0",
"ok": true
},
{
"name": "mail._domainkey.agendafacil.com",
"type": "TXT",
"value": "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…",
"ok": true
},
{
"name": "_dmarc.agendafacil.com",
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:rua@dmarc.brevo.com",
"ok": true
}
],
"lastCheckedAt": "2026-10-14T13:00:00.000Z",
"verifiedAt": "2026-10-14T13:00:00.000Z"
}
}Set the sender of the project
/projects/{id}/senderprojects:writeGrowth+Registers the sending domain of the project (your app; used by domains without their own sender) with Brevo and returns in records the TXT records (code, DKIM and DMARC) to create on DNS. Then call verify. Changing only name, address or reply-to doesn't require verifying again; changing the domain does.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Body
domainstringrequiredmax 253Sending domain (the customer's or your app's).
fromNamestringrequiredmax 80Sender name.
fromLocalstringmax 64What comes before the @ (default contato).
replyTostring | nullReply-to address.
Request
curl -X PUT "https://api.tenanci.com/v2/projects/prj_8f3k2m/sender" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"domain":"agendafacil.com","fromName":"Agenda Fácil"}'Response 200
{
"id": "snd_2p7k5m",
"domain": "agendafacil.com",
"from": "Agenda Fácil <contato@agendafacil.com>",
"fromName": "Agenda Fácil",
"fromLocal": "contato",
"replyTo": null,
"status": "pending",
"records": [
{
"name": "agendafacil.com",
"type": "TXT",
"value": "brevo-code:5f1e2d3c4b5a69788796a5b4c3d2e1f0",
"ok": false
},
{
"name": "mail._domainkey.agendafacil.com",
"type": "TXT",
"value": "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…",
"ok": false
},
{
"name": "_dmarc.agendafacil.com",
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:rua@dmarc.brevo.com",
"ok": false
}
],
"lastCheckedAt": null,
"verifiedAt": null
}Remove the sender of the project
/projects/{id}/senderprojects:writeDomains without their own sender fall back to the platform's default sender.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/projects/prj_8f3k2m/sender" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
Verify the sender of the project
/projects/{id}/sender/verifyprojects:writeAsks Brevo to authenticate and updates status (pending, verified or failed) and each record's ok. Tenanci also re-checks pending senders on its own for up to 3 days.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl -X POST "https://api.tenanci.com/v2/projects/prj_8f3k2m/sender/verify" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"id": "snd_2p7k5m",
"domain": "agendafacil.com",
"from": "Agenda Fácil <contato@agendafacil.com>",
"fromName": "Agenda Fácil",
"fromLocal": "contato",
"replyTo": null,
"status": "verified",
"records": [
{
"name": "agendafacil.com",
"type": "TXT",
"value": "brevo-code:5f1e2d3c4b5a69788796a5b4c3d2e1f0",
"ok": true
},
{
"name": "mail._domainkey.agendafacil.com",
"type": "TXT",
"value": "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…",
"ok": true
},
{
"name": "_dmarc.agendafacil.com",
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:rua@dmarc.brevo.com",
"ok": true
}
],
"lastCheckedAt": "2026-10-14T13:00:00.000Z",
"verifiedAt": "2026-10-14T13:00:00.000Z"
}Get the sender of the domain
/domains/{id}/senderdomains:readsender: null when no sending domain is set.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/sender" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"sender": {
"id": "snd_9c4v2h",
"domain": "barbeariadoze.com.br",
"from": "Barbearia do Zé <contato@barbeariadoze.com.br>",
"fromName": "Barbearia do Zé",
"fromLocal": "contato",
"replyTo": "ze@barbeariadoze.com.br",
"status": "verified",
"records": [
{
"name": "barbeariadoze.com.br",
"type": "TXT",
"value": "brevo-code:5f1e2d3c4b5a69788796a5b4c3d2e1f0",
"ok": true
},
{
"name": "mail._domainkey.barbeariadoze.com.br",
"type": "TXT",
"value": "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…",
"ok": true
},
{
"name": "_dmarc.barbeariadoze.com.br",
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:rua@dmarc.brevo.com",
"ok": true
}
],
"lastCheckedAt": "2026-10-14T13:00:00.000Z",
"verifiedAt": "2026-10-14T13:00:00.000Z"
}
}Set the sender of the domain
/domains/{id}/senderdomains:writeGrowth+Registers the sending domain of the end customer (used for this domain's emails) with Brevo and returns in records the TXT records (code, DKIM and DMARC) to create on DNS. Then call verify. Changing only name, address or reply-to doesn't require verifying again; changing the domain does.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Body
domainstringrequiredmax 253Sending domain (the customer's or your app's).
fromNamestringrequiredmax 80Sender name.
fromLocalstringmax 64What comes before the @ (default contato).
replyTostring | nullReply-to address.
Request
curl -X PUT "https://api.tenanci.com/v2/domains/dom_4h7n1q/sender" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"domain":"barbeariadoze.com.br","fromName":"Barbearia do Zé","fromLocal":"contato","replyTo":"ze@barbeariadoze.com.br"}'Response 200
{
"id": "snd_9c4v2h",
"domain": "barbeariadoze.com.br",
"from": "Barbearia do Zé <contato@barbeariadoze.com.br>",
"fromName": "Barbearia do Zé",
"fromLocal": "contato",
"replyTo": "ze@barbeariadoze.com.br",
"status": "pending",
"records": [
{
"name": "barbeariadoze.com.br",
"type": "TXT",
"value": "brevo-code:5f1e2d3c4b5a69788796a5b4c3d2e1f0",
"ok": false
},
{
"name": "mail._domainkey.barbeariadoze.com.br",
"type": "TXT",
"value": "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…",
"ok": false
},
{
"name": "_dmarc.barbeariadoze.com.br",
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:rua@dmarc.brevo.com",
"ok": false
}
],
"lastCheckedAt": null,
"verifiedAt": null
}Remove the sender of the domain
/domains/{id}/senderdomains:writeThe domain's emails go out through the project's sender (or the default).
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/domains/dom_4h7n1q/sender" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
Verify the sender of the domain
/domains/{id}/sender/verifydomains:writeAsks Brevo to authenticate and updates status (pending, verified or failed) and each record's ok. Tenanci also re-checks pending senders on its own for up to 3 days.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl -X POST "https://api.tenanci.com/v2/domains/dom_4h7n1q/sender/verify" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"id": "snd_9c4v2h",
"domain": "barbeariadoze.com.br",
"from": "Barbearia do Zé <contato@barbeariadoze.com.br>",
"fromName": "Barbearia do Zé",
"fromLocal": "contato",
"replyTo": "ze@barbeariadoze.com.br",
"status": "verified",
"records": [
{
"name": "barbeariadoze.com.br",
"type": "TXT",
"value": "brevo-code:5f1e2d3c4b5a69788796a5b4c3d2e1f0",
"ok": true
},
{
"name": "mail._domainkey.barbeariadoze.com.br",
"type": "TXT",
"value": "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…",
"ok": true
},
{
"name": "_dmarc.barbeariadoze.com.br",
"type": "TXT",
"value": "v=DMARC1; p=none; rua=mailto:rua@dmarc.brevo.com",
"ok": true
}
],
"lastCheckedAt": "2026-10-14T13:00:00.000Z",
"verifiedAt": "2026-10-14T13:00:00.000Z"
}Send an email from the customer's domain
/emailsdomains:writeGrowth+Goes out through the domain's verified sender (or the project's); with none, 400 sender_not_verified. One email per recipient (nobody sees the others), up to 50. Needs text or html (without text, it's generated from the html). There's a per-organization limit per 24 h (429 email_limit). Each recipient comes back as sent or failed.
Body
domainIdstringrequiredmax 64Customer domain (dom_…) whose sender is used.
tostring | string[]requiredOne email or a list (up to 50).
subjectstringrequiredmax 200textstringmax 100000htmlstringmax 200000replyTostringmax 254Default: the sender's.
fromLocalstringmax 64Overrides what comes before the @ for this send only (e.g. bookings).
Request
curl -X POST "https://api.tenanci.com/v2/emails" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"domainId":"dom_4h7n1q","to":"cliente@gmail.com","subject":"Seu horário está confirmado","html":"<p>Olá! Seu corte está marcado para sexta, às 15h.</p>","fromLocal":"agendamentos"}'Response 201
{
"from": "Barbearia do Zé <agendamentos@barbeariadoze.com.br>",
"results": [
{
"to": "cliente@gmail.com",
"status": "sent"
}
]
}Recent sends of the domain
/domains/{id}/emailsdomains:readThe 50 most recent sends through the email API.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl "https://api.tenanci.com/v2/domains/dom_4h7n1q/emails" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"items": [
{
"id": "eml_7t3k9w",
"to": "cliente@gmail.com",
"subject": "Seu horário está confirmado",
"sender": "agendamentos@barbeariadoze.com.br",
"status": "sent",
"error": null,
"createdAt": "2026-10-14T14:20:00.000Z"
}
]
}
