Use Brevo with Llamaindex Python

Brevo, formerly Sendinblue, is a SaaS solution for relationship marketing.
🔗 Connect and Use Brevo
1. 🔑 Connect your Brevo account
2. ✅ Select an action
3. 🚀 Go live with the agent
What do you want to do?
Actions
Email Campaigns
Transactional emails
Contacts
SMS Campaigns
Transactional SMS
WhatsApp Campaigns
Senders
Domains
Webhooks
Reseller
Account
User
Process
Inbound Parsing
Master account
Companies
Deals
Tasks
Notes
Files
Conversations
Ecommerce
Event
Coupons
Transactional WhatsApp
External Feeds

API actions for Brevo for AI assitants/agents

Language
JS
PYTHON
Framework

Webhooks

Get A Webhook Details

Retrieve details of a specific webhook by its ID, including events it's configured for, type (marketing/transactional), creation/modification dates, URL, description, and more. Supports error
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_WEBHOOK_DETAILS])

Update A Webhook

Update a webhook by including its ID in the path and updating details in the request body like description, URL, and more. Successful updates return 204, while invalid requests return 400, and
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_A_WEBHOOK])

Delete A Webhook

Delete an existing webhook by its ID. Returns "Webhook deleted" on success or detailed error messages for failures like invalid parameters, permissions issues, and more.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_WEBHOOK])

Export All Webhook Events

This endpoint will submit a request to get the history of webhooks in the CSV file. The link to download the CSV file will be sent to the webhook that was provided in the notifyURL.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_EXPORT_ALL_WEBHOOK_EVENTS])

Reseller

Get The List Of All Children Accounts

The `/reseller/children` endpoint enables Resellers to view child account info, supporting pagination via `limit` and `offset`. It shows details like name, email, credits, and handles errors l
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_THE_LIST_OF_ALL_CHILDREN_ACCOUNTS])

Creates A Reseller Child

This endpoint creates reseller child accounts requiring company info, email, and password in JSON. It returns a 201 status, authKey, and ID on success, or 400/403 errors for bad requests or in
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATES_A_RESELLER_CHILD])

Get A Child Account S Details

This endpoint enables resellers to fetch child account details using an auth key or ID, offering data on company info, credits, email/SMS usage, and tech specifics such as IPs and API keys. It
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_CHILD_ACCOUNT_S_DETAILS])

Update Child Info Based On Id

This endpoint updates a reseller's child profile using their identifier, allowing changes to email, names, company, and password. It handles incorrect inputs or unauthorized actions with detai
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_CHILD_INFO_BASED_ON_ID])

Delete Reseller Child By Id

Delete a reseller's child account using their identifier. Requires the child's ID or auth key. Success or failure responses include status codes 204 (deleted), 400 (bad request), 403 (unauthor
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_RESELLER_CHILD_BY_ID])

Update Child Account Status By Identifier

Update a reseller's child account status by ID, including email, SMS, marketing, and platform preferences. Requires child ID and status in JSON. Responses show update success or errors for inv
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_CHILD_ACCOUNT_STATUS_BY_IDENTIFIER])

Check Reseller Child Account Creation Status

This endpoint allows resellers to check if a child account has been successfully created by providing the child's identifier. It returns a boolean status and handles errors such as bad request
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CHECK_RESELLER_CHILD_ACCOUNT_CREATION_STATUS])

Associate A Dedicated Ip To The Child

To assign a dedicated IP to a reseller's child account, send a POST request to `/reseller/children/{childIdentifier}/ips/associate` with the child's ID and IP address. Possible responses: 204
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_ASSOCIATE_A_DEDICATED_IP_TO_THE_CHILD])

Dissociate A Dedicated Ip To The Child

This endpoint lets resellers remove a dedicated IP from a child account by providing the child's identifier and the IP address. A successful removal returns a 204 status, with failures giving
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DISSOCIATE_A_DEDICATED_IP_TO_THE_CHILD])

Add Email And Or Sms Credits To A Specific Child Account

This POST endpoint lets resellers add Email/SMS credits to a child account using 'childIdentifier'. It needs JSON input for the credit amount. Successful requests update both child and reselle
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_ADD_EMAIL_AND_OR_SMS_CREDITS_TO_A_SPECIFIC_CHILD_ACCOUNT])

Remove Email And Or Sms Credits From A Specific Child Account

This endpoint enables resellers to deduct Email/SMS credits from a child account using `childIdentifier`. Requests must specify credit amounts. Responses may confirm removal or report errors s
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_REMOVE_EMAIL_AND_OR_SMS_CREDITS_FROM_A_SPECIFIC_CHILD_ACCOUNT])

Get All Sender Domains For A Specific Child Account

Fetch all verified sender domains for a specific reseller's child account by providing the child's identifier. Returns domain status and examples of successful calls. Handles errors for bad re
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_ALL_SENDER_DOMAINS_FOR_A_SPECIFIC_CHILD_ACCOUNT])

Create A Domain For A Child Account

Endpoint allows resellers to create a domain for a child account by specifying the child's identifier. It requires a JSON body with the domain. Responses include domain added, bad request, una
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_A_DOMAIN_FOR_A_CHILD_ACCOUNT])

Update Reseller Child S Sender Domain

Update a reseller's child sender domain by specifying childIdentifier and domainName. Requires the new domain value in the request. Supports error handling for invalid requests and permissions
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_RESELLER_CHILD_S_SENDER_DOMAIN])

Remove Reseller Child S Sender Domain

This endpoint enables resellers to delete domains for a child account using the child's ID and domain name, ensuring secure removal by managing potential errors and unauthorized access.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_REMOVE_RESELLER_CHILD_S_SENDER_DOMAIN])

Get Session Token To Access Brevo Sso

It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/ema
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_SESSION_TOKEN_TO_ACCESS_BREVO_SSO])

Account

Get Your Account Information Plan And Credits Details

This endpoint retrieves detailed account information, including user's personal details (name, email, company, address), plan specifics, credits, transactional email account status, and market
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_YOUR_ACCOUNT_INFORMATION_PLAN_AND_CREDITS_DETAILS])

Get User Activity Logs

This endpoint fetches organization user activity logs, allows date range filtering, and supports pagination. It returns activities with details like type, time, email, IP, and browser info.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_USER_ACTIVITY_LOGS])

User

Get The List Of All Your Users

This endpoint fetches invited organization users, detailing their email, ownership, activation status, and feature access (e.g., marketing, conversations, CRM). Responses can be successful use
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_THE_LIST_OF_ALL_YOUR_USERS])

Check User Permission

This endpoint fetches permissions for a user based on email, detailing their status and privileges (e.g., manage email campaigns) or returns errors for bad requests.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CHECK_USER_PERMISSION])

Revoke User Permission

The PUT endpoint '/organization/user/invitation/revoke/{email}' revokes user permissions via email, returning status and credit notes on success, and manages unauthorized access with error cod
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_REVOKE_USER_PERMISSION])

Resend Cancel Invitation

This endpoint lets users resend or cancel an email invitation by specifying the action and user email, providing success confirmation or unauthorized access errors.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_RESEND_CANCEL_INVITATION])

Send Invitation To User

Brevo provides Email, Calls, and Automations with customizable access levels. Permissions vary by plan, with `all_features_access` for complete control. Selection of features and permissions i
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_SEND_INVITATION_TO_USER])

Update Permission For A User

Brevo provides features like Email campaigns, Deals, and Calls with customizable user access levels, including creation and editing. Ensure to specify the appropriate permission level for each
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_PERMISSION_FOR_A_USER])

Process

Return All The Processes For Your Account

This API endpoint fetches all account processes, enabling result customization (limit, offset, sort) and showing process IDs, names, statuses, and export URLs. It supports pagination and sorti
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_RETURN_ALL_THE_PROCESSES_FOR_YOUR_ACCOUNT])

Return The Informations For A Process

Retrieve process details by ID, including its name, status, and export URL upon completion. Supports querying with the process ID and returns response codes for success (200), bad request (400
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_RETURN_THE_INFORMATIONS_FOR_A_PROCESS])

Inbound Parsing

Get The List Of All The Events For The Received Emails

This endpoint will show the list of all the events for the received emails.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_THE_LIST_OF_ALL_THE_EVENTS_FOR_THE_RECEIVED_EMAILS])

Fetch All Events History For One Particular Received Email

This endpoint will show the list of all events history for one particular received email.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_FETCH_ALL_EVENTS_HISTORY_FOR_ONE_PARTICULAR_RECEIVED_EMAIL])

Retrieve Inbound Attachment With Download Token

This endpoint will retrieve inbound attachment with download token.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_RETRIEVE_INBOUND_ATTACHMENT_WITH_DOWNLOAD_TOKEN])

Master account

Get The List Of All The Sub Accounts Of The Master Account

This endpoint will provide the list all the sub-accounts of the master account.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_THE_LIST_OF_ALL_THE_SUB_ACCOUNTS_OF_THE_MASTER_ACCOUNT])

Create A New Sub Account Under A Master Account

This endpoint will create a new sub-account under a master account
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_A_NEW_SUB_ACCOUNT_UNDER_A_MASTER_ACCOUNT])

Get Sub Account Details

This endpoint will provide the details for the specified sub-account company
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_SUB_ACCOUNT_DETAILS])

Delete A Sub Account

Endpoint `/corporate/subAccount/{id}` allows for deletion of a specified sub-account by ID. It returns `204` if successful, `400` for bad requests (e.g., invalid parameters), and `404` if the
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_SUB_ACCOUNT])

Update Sub Account Plan

This endpoint will update the sub-account plan
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_SUB_ACCOUNT_PLAN])

Generate Sso Token To Access Admin Account

This endpoint generates an SSO token to authenticate and access the admin account using the endpoint https://account-app.brevo.com/account/login/corporate/sso/[token], where [token] will be re
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GENERATE_SSO_TOKEN_TO_ACCESS_ADMIN_ACCOUNT])

Generate Sso Token To Access Sub Account

This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.brevo.com/account/login/sub-account/sso/[token], wher
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GENERATE_SSO_TOKEN_TO_ACCESS_SUB_ACCOUNT])

Get The Details Of Requested Master Account

This endpoint will provide the details of the master account.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_THE_DETAILS_OF_REQUESTED_MASTER_ACCOUNT])

Create An Api Key For A Sub Account

This endpoint will generate an API v3 key for a sub account
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_AN_API_KEY_FOR_A_SUB_ACCOUNT])

Enable Disable Sub Account Application S

API endpoints for the Corporate owner to enable/disable applications on the sub-account
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_ENABLE_DISABLE_SUB_ACCOUNT_APPLICATION_S])

Create A Group Of Sub Accounts

This endpoint allows to create a group of sub-accounts
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_CREATE_A_GROUP_OF_SUB_ACCOUNTS])

Get A Group Details

This endpoint allows you to retrieve a specific group’s information such as the list of sub-organizations and the user associated with the group.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_GET_A_GROUP_DETAILS])

Update A Group Of Sub Accounts

This endpoint allows to update a group of sub-accounts
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_UPDATE_A_GROUP_OF_SUB_ACCOUNTS])

Delete A Group

This endpoint allows you to delete a group of sub-organizations. When a group is deleted, the sub-organizations are no longer part of this group. The users associated with the group are no lon
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_A_GROUP])

Delete Sub Account From Group

This endpoint allows you to remove a sub-organization from a group.
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_DELETE_SUB_ACCOUNT_FROM_GROUP])

Send Invitation To An Admin User

This endpoint invites members to manage the Admin account. It details permissions for features like my_plan, api (none), user_management, and app_management (not in ENTv2), with a note on cond
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_SEND_INVITATION_TO_AN_ADMIN_USER])

Resend Cancel Admin User Invitation

This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitation
from composio_llamaindex import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.BREVO_RESEND_CANCEL_ADMIN_USER_INVITATION])

Frequently asked questions

What is Composio.dev?

Composio.dev is a cutting-edge framework for building AI applications, designed to make the process of developing AI solutions super easy and fun! It's a collection of powerful tools and libraries that simplify the process of creating AI applications, allowing you to focus on the creative aspects of your project without getting bogged down by the technical details.

How does Composio.dev support Brevo?

Composio.dev seamlessly integrates with Brevo, making it a breeze to leverage its capabilities within the Composio.dev platform. You can use Brevo to call functions on various platforms like Google, GitHub, and others, allowing you to incorporate different services into your AI applications with ease. It also supports user login via OAuth2 and can work with other popular frameworks such as LangChain and CrewAI, giving you the flexibility to build truly innovative AI solutions.

What models can I use with Brevo and llamaindex_python?

When using Brevo and llamaindex_python, you have access to a wide range of state-of-the-art language models, including GPT-4o (OpenAI), GPT-3.5 (OpenAI), GPT-4 (OpenAI), Claude (Anthropic), PaLM (Google), LLaMA and LLaMA 2 (Meta), Gemini, and many others. This flexibility allows you to choose the model that best suits your specific use case, whether you're building a chatbot, a content creation tool, or any other AI-powered application. You can experiment with different models and find the one that delivers the best performance for your project.

How can I integrate Brevo with llamaindex_python?

Integrating Brevo with llamaindex_python is super easy with Composio.dev! You can use the Composio.dev API to call functions from both Brevo and llamaindex_python, allowing you to tap into their capabilities with just a few lines of code. The SDK is available in Python, JavaScript, and TypeScript, so you can work with the language you're most comfortable with and integrate these powerful tools into your projects seamlessly.

What is the pricing for Brevo and llamaindex_python?

Both Brevo and llamaindex_python are completely free to use, with a generous free tier that allows up to 1000 requests per month. This makes them accessible for developers and organizations of all sizes, whether you're a student working on a personal project or a startup building the next big thing. You can get started with these powerful tools without worrying about breaking the bank.

What kind of authentication is supported for Brevo and llamaindex_python?

Brevo and llamaindex_python support OAuth2 authentication, ensuring secure and authorized access to their functionalities. You can use the Composio.dev API to handle authentication and call functions from both Brevo and llamaindex_python seamlessly. The SDK is available in Python, JavaScript, and TypeScript for your convenience, making it easy to integrate authentication into your projects and keep your users' data safe and secure.

Can I add Brevo to my project?

Absolutely! You can easily incorporate Brevo into your project by utilizing the Composio.dev API. This API allows you to call functions from both Brevo and llamaindex_python, enabling you to leverage their capabilities within your application. The SDK is available in Python, JavaScript, and TypeScript to facilitate integration, so you can work with the language you're most comfortable with and add these powerful tools to your project with ease.

What is the accuracy of Brevo and llamaindex_python?

Brevo and llamaindex_python are designed to provide highly accurate and reliable results, ensuring that your AI applications perform at their best. The integration with Composio.dev ensures precise function calls, enabling you to build robust and powerful AI applications with confidence. The comprehensive framework and the ability to leverage state-of-the-art models ensure reliable and accurate outcomes for your AI development needs, whether you're working on a chatbot, a content creation tool, or any other AI-powered project.

What are some common use cases for Brevo and llamaindex_python?

Brevo and llamaindex_python can be used for a wide range of AI applications, making them versatile tools for developers and creators alike. Some common use cases include natural language processing, text generation, question answering, sentiment analysis, and more. They're particularly useful for building chatbots, virtual assistants, content creation tools, and other AI-powered applications that can help you automate tasks, engage with users, and create compelling content. Whether you're working on a personal project or building a product for your startup, these tools can help you bring your ideas to life.

How does Brevo handle data privacy and security?

Data privacy and security are crucial considerations when working with AI systems, and Brevo takes these issues seriously. It follows industry best practices and adheres to strict data protection regulations, ensuring that your data is kept safe and secure. Brevo provides robust security measures, such as encryption and access controls, to ensure the confidentiality and integrity of your data. You can rest assured that your sensitive information is protected when using Brevo for your AI development needs.

Can I customize Brevo and llamaindex_python for my specific needs?

Absolutely! Brevo and llamaindex_python are highly customizable and extensible, allowing you to tailor their functionality, models, and configurations to meet your specific requirements. Whether you're building a chatbot, a content creation tool, or any other AI-powered application, you can customize these tools to fit your unique needs. Additionally, Composio.dev provides a flexible platform for integrating and orchestrating various AI tools and services, enabling you to create custom AI solutions that are tailored to your project.

What kind of support and documentation is available for Brevo and llamaindex_python?

Brevo and llamaindex_python have comprehensive documentation and a supportive community, making it easy for you to get started and find answers to your questions. Composio.dev also provides extensive resources, including tutorials, guides, and a dedicated support team to assist you throughout your AI development journey. Whether you're a beginner or an experienced developer, you'll have access to the resources you need to make the most of these powerful tools.
+ Integrate seamlessly with your agentic frameworks
Composio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and Sizes
Building for AI across continents🧪