# Send Transactional emails via API to a Segment

**URL:** <https://community.brevo.com/t/send-transactional-emails-via-api-to-a-segment/1789>\
**Category:** Transactional\
**Created:** [Juillet 11, 2024, 5:14 UTC](https://community.brevo.com/t/send-transactional-emails-via-api-to-a-segment/1789 "2024-07-11T17:14:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CPGF](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@CPGF](https://community.brevo.com/u/CPGF)\
**Post date:** [Juillet 11, 2024, 5:14 UTC](https://community.brevo.com/t/send-transactional-emails-via-api-to-a-segment/1789/1 "2024-07-11T17:14:47Z")

</div>

Hello! 👋  
I’m dipping my toes into Brevo, and would appreciate some advice please!

Could someone kindly advise on what is the easiest way / best practice to send Transactional emails to a Segment, via the API?

I believe need to send emails as Transactional to benefit from personalisation via parameters. (These emails will be marketing in essence.)

The most basic Segment I’d like to send to is a List, where the Contacts in it are Subscribed.

From what I can work out, this isn’t possible, and that the only method is to,

1. Create a Template (with parameter placeholders)
2. Get the Contacts in the List
3. Pick out Contacts that are Subscribed
4. Send with smtp/email, and add the Contacts from step 3) to «&nbsp;to&nbsp;» field

Does this sound right, or is there a more convenient way?

Many thanks!

---

<div class="post-metadata">

**Author:** ![ahudavert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.brevo.com/ahudavert/32/14_2.png) [@ahudavert](https://community.brevo.com/u/ahudavert)\
**Post date:** [Juillet 15, 2024, 2:00 UTC](https://community.brevo.com/t/send-transactional-emails-via-api-to-a-segment/1789/2 "2024-07-15T14:00:11Z")

</div>

Hi @CPGF , thanks for posting on this community.

I would advise to do the following:

- create a list on Brevo
- fetch the contacts inside this list: [Get contacts in a list](https://developers.brevo.com/reference/getcontactsfromlist)
- batch send transactional emails: [Batch send customised transactional emails](https://developers.brevo.com/docs/batch-send-transactional-emails) : add all the emails inside the «&nbsp;to&nbsp;» array

What do you think?

---

<div class="post-metadata">

**Author:** ![CPGF](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@CPGF](https://community.brevo.com/u/CPGF)\
**Post date:** [Juillet 15, 2024, 6:51 UTC](https://community.brevo.com/t/send-transactional-emails-via-api-to-a-segment/1789/3 "2024-07-15T18:51:44Z")

</div>

Heya, thanks for replying

Yes this is the conclusion I came to. For each contact, pick out the SUBSCRIBED attribute. Seems totally fine this way, so we’re all good 👍
