TenanciTenanci

Help centerAPI referenceEmails

Emails

Sender on the customer's domain and sending emails.

Get the sender of the project

GET/projects/{id}/senderprojects:read

sender: null when no sending domain is set.

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

PUT/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 · stringrequired

    Resource id (prj_…, dom_…)

Body

  • domainstringrequiredmax 253

    Sending domain (the customer's or your app's).

  • fromNamestringrequiredmax 80

    Sender name.

  • fromLocalstringmax 64

    What comes before the @ (default contato).

  • replyTostring | null

    Reply-to address.

Request

cURL
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

DELETE/projects/{id}/senderprojects:write

Domains without their own sender fall back to the platform's default sender.

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

POST/projects/{id}/sender/verifyprojects:write

Asks 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 · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

GET/domains/{id}/senderdomains:read

sender: null when no sending domain is set.

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

PUT/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 · stringrequired

    Resource id (prj_…, dom_…)

Body

  • domainstringrequiredmax 253

    Sending domain (the customer's or your app's).

  • fromNamestringrequiredmax 80

    Sender name.

  • fromLocalstringmax 64

    What comes before the @ (default contato).

  • replyTostring | null

    Reply-to address.

Request

cURL
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

DELETE/domains/{id}/senderdomains:write

The domain's emails go out through the project's sender (or the default).

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

POST/domains/{id}/sender/verifydomains:write

Asks 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 · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

POST/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 64

    Customer domain (dom_…) whose sender is used.

  • tostring | string[]required

    One email or a list (up to 50).

  • subjectstringrequiredmax 200
  • textstringmax 100000
  • htmlstringmax 200000
  • replyTostringmax 254

    Default: the sender's.

  • fromLocalstringmax 64

    Overrides what comes before the @ for this send only (e.g. bookings).

Request

cURL
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

GET/domains/{id}/emailsdomains:read

The 50 most recent sends through the email API.

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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"
    }
  ]
}