Invited users management
You can manage users in your Brevo profile. This guide helps the profile owner to manage their users, edit the invited users access permission and delete users through the API endpoints. The endpoints are mentioned below.
Get all invited users
This API endpoint allows you to retrieve your invited users. To send a request to this endpoint, you need to use the GET method and use the url https://api.brevo.com/v3/organization/invited/users . You can use the cURL request below:
There are no parameters for this endpoint as it is a GET request so you just need your API-key to run the endpoint and it will send you the response as a string in JSON mentioning the users that are already invited to your user account. The response codes are mentioned below in a table.
A sample JSON response is shown below which consists of all the users and their details in the accounts including the owners and invited users.
Get users permissions
This API endpoint https://api.brevo.com/v3/organization/user/{email}/permissions allows to get the permissions for the invited user. You can implement the GET method to send a request to this endpoint and you can use the cURL request below:
You only have to send one parameter email in the request which is mentioned below along with its details.
After the successful request, you get a response which consists of the features that the invited user uses and its permissions. The schema with the 200 response code for the response would look something like this:
For the 400 bad request, the schema would look something like this:
The response codes are mentioned below in a table.
Resend / Cancel Invitation
The endpoint https://api.brevo.com/v3/organization/user/invitation/{action}/{email} uses the HTTP PUT method to run the request. This endpoint performs actions on the invited users access to the account. This API endpoint resends, cancels or revokes the users access to the account. It has two parameters mentioned below in the table.
The response shows an OK status if the request runs successfully. An example 200 successful response would look like:
On the other hand, you may not have access to change the users rights of access. So, a sample error response with code 403 would look something like:
A table below mentions the response codes.
Revoke a users permission
You can revoke or stop giving access to an invited user through this endpoint. You can use the endpoint https://api.brevo.com/v3/organization/user/invitation/revoke/{email} with the HTTP method PUT as you are updating the rights for an invited user. A cURL request is depicted below to send a request.
There is only one attribute for this mentioned and defined below in a table.
After the request is successful, a JSON response is shown with two response codes 200 and 403. We will define them below in a table.
A JSON response is also shown below.
Send an invitation to the user
You can invite a user by using this endpoint. You can send an invitation to them and they will receive an email to join your account to access certain features. You can use the endpoint https://api.brevo.com/v3/organization/user/invitation/send with the HTTP method POST to run the request. A cURL request for inviting the user would look something like this.
You can navigate to the API reference and you can find more details on the parameters for this endpoint. You can find the parameters below to invite the user to the platform.
There are some pre-defined values for features and permissions and the user has to choose from them. For the privileges object, we will define its attributes below:
For the JSON response, there are some error codes which are defined below in a table.
A JSON response is displayed below.
Update users permissions
This endpoint allows to update the permissions for the invited users. You can use the endpoint https://api.brevo.com/v3/organization/user/update/permissions with the calling method POST to send the payload for the request. A cURL request is shown below.
You can navigate to the API reference and you can find more details on the parameters for this endpoint. The parameters used are almost similar to sending an invitation to the user. They are mentioned below in a table
For the privileges object, we will define its attributes below:
For the JSON response, there are some error codes which are defined below in a table.
For the 200 success response code the response format would look something like depicted below.