User activity logs
Getting started with Accounts
Accounts at Brevo are used to hold the accounts information along with the payment plans and credit details of the clients. There are some pre-requisites to using the Accounts endpoints which include:
- Having a valid Brevo account.
- Having a valid and correct API key.
- In some cases, only Enterprise clients can use the endpoints.
1. Get user activity logs
You can use the endpoint https://api.brevo.com/v3/organization/activities with the GET method. Through this endpoint, you can get the following information:
- Information about user login.
- When a user is invited to access the account, it provides the details regarding it.
- When you profile is edited, it notifies you about that.
- When the invited user accesses the account, it notifies you about that.
- If the user changes email, this endpoint will inform you about the information about email change.
The cURL request for getaccountactivity is mentioned below:
This endpoint can be used by the Enterprise clients. The attributes for this endpoint are mentioned below in the table:
Response
A sample JSON response which shows the status of login and profile update would look something like this:
The response codes for the endpoints are mentioned below: