Package software.xdev.brevo.api
Class MasterAccountApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.MasterAccountApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a group This endpoint allows you to delete a group of sub-organizations.voidcorporateGroupIdDelete(String id, Map<String, String> additionalHeaders) Delete a group This endpoint allows you to delete a group of sub-organizations.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.corporateGroupIdGet(String id, Map<String, String> additionalHeaders) 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.voidcorporateGroupIdPut(String id, CorporateGroupIdPutRequest corporateGroupIdPutRequest) Update a group of sub-accounts This endpoint allows to update a group of sub-accountsvoidcorporateGroupIdPut(String id, CorporateGroupIdPutRequest corporateGroupIdPutRequest, Map<String, String> additionalHeaders) Update a group of sub-accounts This endpoint allows to update a group of sub-accountscorporateGroupPost(CorporateGroupPostRequest corporateGroupPostRequest) Create a group of sub-accounts This endpoint allows to create a group of sub-accountscorporateGroupPost(CorporateGroupPostRequest corporateGroupPostRequest, Map<String, String> additionalHeaders) Create a group of sub-accounts This endpoint allows to create a group of sub-accountsvoidcorporateGroupUnlinkGroupIdSubAccountsPut(String groupId, CorporateGroupUnlinkGroupIdSubAccountsPutRequest corporateGroupUnlinkGroupIdSubAccountsPutRequest) Delete sub-account from group This endpoint allows you to remove a sub-organization from a group.voidcorporateGroupUnlinkGroupIdSubAccountsPut(String groupId, CorporateGroupUnlinkGroupIdSubAccountsPutRequest corporateGroupUnlinkGroupIdSubAccountsPutRequest, Map<String, String> additionalHeaders) Delete sub-account from group This endpoint allows you to remove a sub-organization from a group.List of all IPs This endpoint allows you to retrieve the list of active IPs on your Admin accountcorporateIpGet(Map<String, String> additionalHeaders) List of all IPs This endpoint allows you to retrieve the list of active IPs on your Admin accountGet the details of requested master account This endpoint will provide the details of the master account.corporateMasterAccountGet(Map<String, String> additionalHeaders) Get the details of requested master account This endpoint will provide the details of the master account.corporateSsoTokenPost(CorporateSsoTokenPostRequest corporateSsoTokenPostRequest) 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 replaced by the actual token.corporateSsoTokenPost(CorporateSsoTokenPostRequest corporateSsoTokenPostRequest, Map<String, String> additionalHeaders) 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 replaced by the actual token.corporateSubAccountGet(Integer offset, Integer limit) Get the list of all the sub-accounts of the master account.Get the list of all the sub-accounts of the master account.voidcorporateSubAccountIdApplicationsTogglePut(Long id, SubAccountAppsToggleRequest subAccountAppsToggleRequest) Enable/disable sub-account application(s) API endpoints for the Corporate owner to enable/disable applications on the sub-accountvoidcorporateSubAccountIdApplicationsTogglePut(Long id, SubAccountAppsToggleRequest subAccountAppsToggleRequest, Map<String, String> additionalHeaders) Enable/disable sub-account application(s) API endpoints for the Corporate owner to enable/disable applications on the sub-accountvoidDelete a sub-accountvoidcorporateSubAccountIdDelete(Long id, Map<String, String> additionalHeaders) Delete a sub-accountGet sub-account details This endpoint will provide the details for the specified sub-account companycorporateSubAccountIdGet(Long id, Map<String, String> additionalHeaders) Get sub-account details This endpoint will provide the details for the specified sub-account companyvoidcorporateSubAccountIdPlanPut(Long id, SubAccountUpdatePlanRequest subAccountUpdatePlanRequest) Update sub-account plan This endpoint will update the sub-account plan.voidcorporateSubAccountIdPlanPut(Long id, SubAccountUpdatePlanRequest subAccountUpdatePlanRequest, Map<String, String> additionalHeaders) Update sub-account plan This endpoint will update the sub-account plan.corporateSubAccountIpAssociatePost(CorporateSubAccountIpAssociatePostRequest corporateSubAccountIpAssociatePostRequest) Associate an IP to sub-accounts This endpoint allows to associate an IP to sub-accountscorporateSubAccountIpAssociatePost(CorporateSubAccountIpAssociatePostRequest corporateSubAccountIpAssociatePostRequest, Map<String, String> additionalHeaders) Associate an IP to sub-accounts This endpoint allows to associate an IP to sub-accountsvoidcorporateSubAccountIpDissociatePut(CorporateSubAccountIpDissociatePutRequest corporateSubAccountIpDissociatePutRequest) Dissociate an IP to sub-accounts This endpoint allows to dissociate an IP from sub-accountsvoidcorporateSubAccountIpDissociatePut(CorporateSubAccountIpDissociatePutRequest corporateSubAccountIpDissociatePutRequest, Map<String, String> additionalHeaders) Dissociate an IP to sub-accounts This endpoint allows to dissociate an IP from sub-accountscorporateSubAccountKeyPost(CorporateSubAccountKeyPostRequest corporateSubAccountKeyPostRequest) Create an API key for a sub-account This endpoint will generate an API v3 key for a sub accountcorporateSubAccountKeyPost(CorporateSubAccountKeyPostRequest corporateSubAccountKeyPostRequest, Map<String, String> additionalHeaders) Create an API key for a sub-account This endpoint will generate an API v3 key for a sub accountcorporateSubAccountPost(CreateSubAccount createSubAccount) Create a new sub-account under a master account.corporateSubAccountPost(CreateSubAccount createSubAccount, Map<String, String> additionalHeaders) Create a new sub-account under a master account.voidcorporateSubAccountsPlanPut(SubAccountsUpdatePlanRequest subAccountsUpdatePlanRequest) Update sub-accounts plan This endpoint will update multiple sub-accounts plan.voidcorporateSubAccountsPlanPut(SubAccountsUpdatePlanRequest subAccountsUpdatePlanRequest, Map<String, String> additionalHeaders) Update sub-accounts plan This endpoint will update multiple sub-accounts plan.corporateSubAccountSsoTokenPost(CorporateSubAccountSsoTokenPostRequest corporateSubAccountSsoTokenPostRequest) 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], where [token] will be replaced by the actual token.corporateSubAccountSsoTokenPost(CorporateSubAccountSsoTokenPostRequest corporateSubAccountSsoTokenPostRequest, Map<String, String> additionalHeaders) 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], where [token] will be replaced by the actual token.voidcorporateUserEmailPermissionsPut(String email, CorporateUserEmailPermissionsPutRequest corporateUserEmailPermissionsPutRequest) Change admin user permissions This endpoint will allow you to change the permissions of Admin users of your Admin accountvoidcorporateUserEmailPermissionsPut(String email, CorporateUserEmailPermissionsPutRequest corporateUserEmailPermissionsPutRequest, Map<String, String> additionalHeaders) Change admin user permissions This endpoint will allow you to change the permissions of Admin users of your Admin accountcorporateUserInvitationActionEmailPut(String action, String email) Resend / cancel admin user invitation This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitationcorporateUserInvitationActionEmailPut(String action, String email, Map<String, String> additionalHeaders) Resend / cancel admin user invitation This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitationvoidRevoke an admin user This endpoint allows to revoke/remove an invited member of your Admin accountvoidcorporateUserRevokeEmailDelete(String email, Map<String, String> additionalHeaders) Revoke an admin user This endpoint allows to revoke/remove an invited member of your Admin accountGet user activity logsgetAccountActivity(String startDate, String endDate, String email, Long limit, Long offset, Map<String, String> additionalHeaders) Get user activity logsGet the list of all admin users This endpoint allows you to list all Admin users of your Admin accountgetCorporateInvitedUsersList(Map<String, String> additionalHeaders) Get the list of all admin users This endpoint allows you to list all Admin users of your Admin accountgetCorporateUserPermission(String email) Check admin user permissions This endpoint will provide the list of admin user permissionsgetCorporateUserPermission(String email, Map<String, String> additionalHeaders) Check admin user permissions This endpoint will provide the list of admin user permissionsGet the list of groups This endpoint allows you to list all groups created on your Admin account.getSubAccountGroups(Map<String, String> additionalHeaders) Get the list of groups This endpoint allows you to list all groups created on your Admin account.inviteAdminUser(InviteAdminUser inviteAdminUser) Send invitation to an admin user `This endpoint allows you to invite a member to manage the Admin account Features and their respective permissions are as below: - `my_plan`: - \"all\" - `api`: - \"none\" - `user_management`: - \"all\" - `app_management` | Not available in ENTv2: - \"all\" - `sub_organization_groups` - \"create\" - \"edit_delete\" - `create_sub_organizations` - \"all\" - `manage_sub_organizations` - \"all\" - `analytics` - \"download_data\" - \"create_alerts\" - \"my_looks\" - \"explore_create\" - `security` - \"all\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited admin user.inviteAdminUser(InviteAdminUser inviteAdminUser, Map<String, String> additionalHeaders) Send invitation to an admin user `This endpoint allows you to invite a member to manage the Admin account Features and their respective permissions are as below: - `my_plan`: - \"all\" - `api`: - \"none\" - `user_management`: - \"all\" - `app_management` | Not available in ENTv2: - \"all\" - `sub_organization_groups` - \"create\" - \"edit_delete\" - `create_sub_organizations` - \"all\" - `manage_sub_organizations` - \"all\" - `analytics` - \"download_data\" - \"create_alerts\" - \"my_looks\" - \"explore_create\" - `security` - \"all\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited admin user.<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.Methods inherited from class software.xdev.brevo.client.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
MasterAccountApi
public MasterAccountApi() -
MasterAccountApi
-
-
Method Details
-
corporateGroupIdDelete
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 longer associated with the group once deleted.- Parameters:
id- Id of the group (required)- Throws:
ApiException- if fails to make API call
-
corporateGroupIdDelete
public void corporateGroupIdDelete(@Nonnull String id, Map<String, String> additionalHeaders) throws ApiExceptionDelete 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 longer associated with the group once deleted.- Parameters:
id- Id of the group (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateGroupIdGet
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.- Parameters:
id- Id of the group of sub-organization (required)- Returns:
- CorporateGroupDetailsResponse
- Throws:
ApiException- if fails to make API call
-
corporateGroupIdGet
public CorporateGroupDetailsResponse corporateGroupIdGet(@Nonnull String id, Map<String, String> additionalHeaders) throws ApiExceptionGET 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.- Parameters:
id- Id of the group of sub-organization (required)additionalHeaders- additionalHeaders for this call- Returns:
- CorporateGroupDetailsResponse
- Throws:
ApiException- if fails to make API call
-
corporateGroupIdPut
public void corporateGroupIdPut(@Nonnull String id, @Nonnull CorporateGroupIdPutRequest corporateGroupIdPutRequest) throws ApiException Update a group of sub-accounts This endpoint allows to update a group of sub-accounts- Parameters:
id- Id of the group (required)corporateGroupIdPutRequest- Group details to be updated. (required)- Throws:
ApiException- if fails to make API call
-
corporateGroupIdPut
public void corporateGroupIdPut(@Nonnull String id, @Nonnull CorporateGroupIdPutRequest corporateGroupIdPutRequest, Map<String, String> additionalHeaders) throws ApiExceptionUpdate a group of sub-accounts This endpoint allows to update a group of sub-accounts- Parameters:
id- Id of the group (required)corporateGroupIdPutRequest- Group details to be updated. (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateGroupPost
public CorporateGroupPost201Response corporateGroupPost(@Nullable CorporateGroupPostRequest corporateGroupPostRequest) throws ApiException Create a group of sub-accounts This endpoint allows to create a group of sub-accounts- Parameters:
corporateGroupPostRequest- (optional)- Returns:
- CorporateGroupPost201Response
- Throws:
ApiException- if fails to make API call
-
corporateGroupPost
public CorporateGroupPost201Response corporateGroupPost(@Nullable CorporateGroupPostRequest corporateGroupPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionCreate a group of sub-accounts This endpoint allows to create a group of sub-accounts- Parameters:
corporateGroupPostRequest- (optional)additionalHeaders- additionalHeaders for this call- Returns:
- CorporateGroupPost201Response
- Throws:
ApiException- if fails to make API call
-
corporateGroupUnlinkGroupIdSubAccountsPut
public void corporateGroupUnlinkGroupIdSubAccountsPut(@Nonnull String groupId, @Nonnull CorporateGroupUnlinkGroupIdSubAccountsPutRequest corporateGroupUnlinkGroupIdSubAccountsPutRequest) throws ApiException Delete sub-account from group This endpoint allows you to remove a sub-organization from a group.- Parameters:
groupId- Group id (required)corporateGroupUnlinkGroupIdSubAccountsPutRequest- List of sub-account ids (required)- Throws:
ApiException- if fails to make API call
-
corporateGroupUnlinkGroupIdSubAccountsPut
public void corporateGroupUnlinkGroupIdSubAccountsPut(@Nonnull String groupId, @Nonnull CorporateGroupUnlinkGroupIdSubAccountsPutRequest corporateGroupUnlinkGroupIdSubAccountsPutRequest, Map<String, String> additionalHeaders) throws ApiExceptionDelete sub-account from group This endpoint allows you to remove a sub-organization from a group.- Parameters:
groupId- Group id (required)corporateGroupUnlinkGroupIdSubAccountsPutRequest- List of sub-account ids (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateIpGet
List of all IPs This endpoint allows you to retrieve the list of active IPs on your Admin account- Returns:
- List<CorporateIpGet200ResponseInner>
- Throws:
ApiException- if fails to make API call
-
corporateIpGet
public List<CorporateIpGet200ResponseInner> corporateIpGet(Map<String, String> additionalHeaders) throws ApiExceptionList of all IPs This endpoint allows you to retrieve the list of active IPs on your Admin account- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- List<CorporateIpGet200ResponseInner>
- Throws:
ApiException- if fails to make API call
-
corporateMasterAccountGet
Get the details of requested master account This endpoint will provide the details of the master account.- Returns:
- MasterDetailsResponse
- Throws:
ApiException- if fails to make API call
-
corporateMasterAccountGet
public MasterDetailsResponse corporateMasterAccountGet(Map<String, String> additionalHeaders) throws ApiExceptionGet the details of requested master account This endpoint will provide the details of the master account.- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- MasterDetailsResponse
- Throws:
ApiException- if fails to make API call
-
corporateSsoTokenPost
public GetSsoToken corporateSsoTokenPost(@Nullable CorporateSsoTokenPostRequest corporateSsoTokenPostRequest) throws ApiException 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 replaced by the actual token.- Parameters:
corporateSsoTokenPostRequest- (optional)- Returns:
- GetSsoToken
- Throws:
ApiException- if fails to make API call
-
corporateSsoTokenPost
public GetSsoToken corporateSsoTokenPost(@Nullable CorporateSsoTokenPostRequest corporateSsoTokenPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionGenerate 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 replaced by the actual token.- Parameters:
corporateSsoTokenPostRequest- (optional)additionalHeaders- additionalHeaders for this call- Returns:
- GetSsoToken
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountGet
public SubAccountsResponse corporateSubAccountGet(@Nonnull Integer offset, @Nonnull Integer limit) throws ApiException 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.- Parameters:
offset- Index of the first sub-account in the page (required)limit- Number of sub-accounts to be displayed on each page (required)- Returns:
- SubAccountsResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountGet
public SubAccountsResponse corporateSubAccountGet(@Nonnull Integer offset, @Nonnull Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionGet 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.- Parameters:
offset- Index of the first sub-account in the page (required)limit- Number of sub-accounts to be displayed on each page (required)additionalHeaders- additionalHeaders for this call- Returns:
- SubAccountsResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdApplicationsTogglePut
public void corporateSubAccountIdApplicationsTogglePut(@Nonnull Long id, @Nonnull SubAccountAppsToggleRequest subAccountAppsToggleRequest) throws ApiException Enable/disable sub-account application(s) API endpoints for the Corporate owner to enable/disable applications on the sub-account- Parameters:
id- Id of the sub-account organization (mandatory) (required)subAccountAppsToggleRequest- List of applications to activate or deactivate on a sub-account (required)- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdApplicationsTogglePut
public void corporateSubAccountIdApplicationsTogglePut(@Nonnull Long id, @Nonnull SubAccountAppsToggleRequest subAccountAppsToggleRequest, Map<String, String> additionalHeaders) throws ApiExceptionEnable/disable sub-account application(s) API endpoints for the Corporate owner to enable/disable applications on the sub-account- Parameters:
id- Id of the sub-account organization (mandatory) (required)subAccountAppsToggleRequest- List of applications to activate or deactivate on a sub-account (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdDelete
Delete a sub-account- Parameters:
id- Id of the sub-account organization to be deleted (required)- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdDelete
public void corporateSubAccountIdDelete(@Nonnull Long id, Map<String, String> additionalHeaders) throws ApiExceptionDelete a sub-account- Parameters:
id- Id of the sub-account organization to be deleted (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdGet
Get sub-account details This endpoint will provide the details for the specified sub-account company- Parameters:
id- Id of the sub-account organization (required)- Returns:
- SubAccountDetailsResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdGet
public SubAccountDetailsResponse corporateSubAccountIdGet(@Nonnull Long id, Map<String, String> additionalHeaders) throws ApiExceptionGet sub-account details This endpoint will provide the details for the specified sub-account company- Parameters:
id- Id of the sub-account organization (required)additionalHeaders- additionalHeaders for this call- Returns:
- SubAccountDetailsResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdPlanPut
public void corporateSubAccountIdPlanPut(@Nonnull Long id, @Nonnull SubAccountUpdatePlanRequest subAccountUpdatePlanRequest) throws ApiException Update sub-account plan This endpoint will update the sub-account plan. On the Corporate solution new version v2, you can set an unlimited number of credits in your sub-organization. Please pass the value “-1\" to set the consumable in unlimited mode.- Parameters:
id- Id of the sub-account organization (required)subAccountUpdatePlanRequest- Values to update a sub-account plan (required)- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIdPlanPut
public void corporateSubAccountIdPlanPut(@Nonnull Long id, @Nonnull SubAccountUpdatePlanRequest subAccountUpdatePlanRequest, Map<String, String> additionalHeaders) throws ApiExceptionUpdate sub-account plan This endpoint will update the sub-account plan. On the Corporate solution new version v2, you can set an unlimited number of credits in your sub-organization. Please pass the value “-1\" to set the consumable in unlimited mode.- Parameters:
id- Id of the sub-account organization (required)subAccountUpdatePlanRequest- Values to update a sub-account plan (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIpAssociatePost
public Object corporateSubAccountIpAssociatePost(@Nullable CorporateSubAccountIpAssociatePostRequest corporateSubAccountIpAssociatePostRequest) throws ApiException Associate an IP to sub-accounts This endpoint allows to associate an IP to sub-accounts- Parameters:
corporateSubAccountIpAssociatePostRequest- (optional)- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIpAssociatePost
public Object corporateSubAccountIpAssociatePost(@Nullable CorporateSubAccountIpAssociatePostRequest corporateSubAccountIpAssociatePostRequest, Map<String, String> additionalHeaders) throws ApiExceptionAssociate an IP to sub-accounts This endpoint allows to associate an IP to sub-accounts- Parameters:
corporateSubAccountIpAssociatePostRequest- (optional)additionalHeaders- additionalHeaders for this call- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIpDissociatePut
public void corporateSubAccountIpDissociatePut(@Nullable CorporateSubAccountIpDissociatePutRequest corporateSubAccountIpDissociatePutRequest) throws ApiException Dissociate an IP to sub-accounts This endpoint allows to dissociate an IP from sub-accounts- Parameters:
corporateSubAccountIpDissociatePutRequest- (optional)- Throws:
ApiException- if fails to make API call
-
corporateSubAccountIpDissociatePut
public void corporateSubAccountIpDissociatePut(@Nullable CorporateSubAccountIpDissociatePutRequest corporateSubAccountIpDissociatePutRequest, Map<String, String> additionalHeaders) throws ApiExceptionDissociate an IP to sub-accounts This endpoint allows to dissociate an IP from sub-accounts- Parameters:
corporateSubAccountIpDissociatePutRequest- (optional)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateSubAccountKeyPost
public CreateApiKeyResponse corporateSubAccountKeyPost(@Nullable CorporateSubAccountKeyPostRequest corporateSubAccountKeyPostRequest) throws ApiException Create an API key for a sub-account This endpoint will generate an API v3 key for a sub account- Parameters:
corporateSubAccountKeyPostRequest- (optional)- Returns:
- CreateApiKeyResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountKeyPost
public CreateApiKeyResponse corporateSubAccountKeyPost(@Nullable CorporateSubAccountKeyPostRequest corporateSubAccountKeyPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionCreate an API key for a sub-account This endpoint will generate an API v3 key for a sub account- Parameters:
corporateSubAccountKeyPostRequest- (optional)additionalHeaders- additionalHeaders for this call- Returns:
- CreateApiKeyResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountPost
public CreateSubAccountResponse corporateSubAccountPost(@Nonnull CreateSubAccount createSubAccount) throws ApiException Create a new sub-account under a master account. This endpoint will create a new sub-account under a master account- Parameters:
createSubAccount- Request body with sub-account organization name (required)- Returns:
- CreateSubAccountResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountPost
public CreateSubAccountResponse corporateSubAccountPost(@Nonnull CreateSubAccount createSubAccount, Map<String, String> additionalHeaders) throws ApiExceptionCreate a new sub-account under a master account. This endpoint will create a new sub-account under a master account- Parameters:
createSubAccount- Request body with sub-account organization name (required)additionalHeaders- additionalHeaders for this call- Returns:
- CreateSubAccountResponse
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountSsoTokenPost
public GetSsoToken corporateSubAccountSsoTokenPost(@Nullable CorporateSubAccountSsoTokenPostRequest corporateSubAccountSsoTokenPostRequest) throws ApiException 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], where [token] will be replaced by the actual token.- Parameters:
corporateSubAccountSsoTokenPostRequest- (optional)- Returns:
- GetSsoToken
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountSsoTokenPost
public GetSsoToken corporateSubAccountSsoTokenPost(@Nullable CorporateSubAccountSsoTokenPostRequest corporateSubAccountSsoTokenPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionGenerate 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], where [token] will be replaced by the actual token.- Parameters:
corporateSubAccountSsoTokenPostRequest- (optional)additionalHeaders- additionalHeaders for this call- Returns:
- GetSsoToken
- Throws:
ApiException- if fails to make API call
-
corporateSubAccountsPlanPut
public void corporateSubAccountsPlanPut(@Nonnull SubAccountsUpdatePlanRequest subAccountsUpdatePlanRequest) throws ApiException Update sub-accounts plan This endpoint will update multiple sub-accounts plan. On the Corporate solution new version v2, you can set an unlimited number of credits in your sub-organization. Please pass the value “-1\" to set the consumable in unlimited mode.- Parameters:
subAccountsUpdatePlanRequest- Values to update sub-accounts plan (required)- Throws:
ApiException- if fails to make API call
-
corporateSubAccountsPlanPut
public void corporateSubAccountsPlanPut(@Nonnull SubAccountsUpdatePlanRequest subAccountsUpdatePlanRequest, Map<String, String> additionalHeaders) throws ApiExceptionUpdate sub-accounts plan This endpoint will update multiple sub-accounts plan. On the Corporate solution new version v2, you can set an unlimited number of credits in your sub-organization. Please pass the value “-1\" to set the consumable in unlimited mode.- Parameters:
subAccountsUpdatePlanRequest- Values to update sub-accounts plan (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateUserEmailPermissionsPut
public void corporateUserEmailPermissionsPut(@Nonnull String email, @Nonnull CorporateUserEmailPermissionsPutRequest corporateUserEmailPermissionsPutRequest) throws ApiException Change admin user permissions This endpoint will allow you to change the permissions of Admin users of your Admin account- Parameters:
email- Email address of Admin user (required)corporateUserEmailPermissionsPutRequest- Values to update an admin user permissions (required)- Throws:
ApiException- if fails to make API call
-
corporateUserEmailPermissionsPut
public void corporateUserEmailPermissionsPut(@Nonnull String email, @Nonnull CorporateUserEmailPermissionsPutRequest corporateUserEmailPermissionsPutRequest, Map<String, String> additionalHeaders) throws ApiExceptionChange admin user permissions This endpoint will allow you to change the permissions of Admin users of your Admin account- Parameters:
email- Email address of Admin user (required)corporateUserEmailPermissionsPutRequest- Values to update an admin user permissions (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
corporateUserInvitationActionEmailPut
public CorporateUserInvitationActionEmailPut200Response corporateUserInvitationActionEmailPut(@Nonnull String action, @Nonnull String email) throws ApiException Resend / cancel admin user invitation This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitation- Parameters:
action- Action to be performed (cancel / resend) (required)email- Email address of the recipient (required)- Returns:
- CorporateUserInvitationActionEmailPut200Response
- Throws:
ApiException- if fails to make API call
-
corporateUserInvitationActionEmailPut
public CorporateUserInvitationActionEmailPut200Response corporateUserInvitationActionEmailPut(@Nonnull String action, @Nonnull String email, Map<String, String> additionalHeaders) throws ApiExceptionResend / cancel admin user invitation This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitation- Parameters:
action- Action to be performed (cancel / resend) (required)email- Email address of the recipient (required)additionalHeaders- additionalHeaders for this call- Returns:
- CorporateUserInvitationActionEmailPut200Response
- Throws:
ApiException- if fails to make API call
-
corporateUserRevokeEmailDelete
Revoke an admin user This endpoint allows to revoke/remove an invited member of your Admin account- Parameters:
email- Email of the invited user (required)- Throws:
ApiException- if fails to make API call
-
corporateUserRevokeEmailDelete
public void corporateUserRevokeEmailDelete(@Nonnull String email, Map<String, String> additionalHeaders) throws ApiExceptionRevoke an admin user This endpoint allows to revoke/remove an invited member of your Admin account- Parameters:
email- Email of the invited user (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getAccountActivity
public GetAccountActivity getAccountActivity(@Nullable String startDate, @Nullable String endDate, @Nullable String email, @Nullable Long limit, @Nullable Long offset) throws ApiException Get user activity logs- Parameters:
startDate- Mandatory if endDate is used. Enter start date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month. Additionally, you can retrieve activity logs from the past 12 months from the date of your search. (optional)endDate- Mandatory if startDate is used. Enter end date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month. (optional)email- Enter the user's email address to filter their activity in the account. (optional)limit- Number of documents per page (optional, default to 10)offset- Index of the first document in the page. (optional, default to 0)- Returns:
- GetAccountActivity
- Throws:
ApiException- if fails to make API call
-
getAccountActivity
public GetAccountActivity getAccountActivity(@Nullable String startDate, @Nullable String endDate, @Nullable String email, @Nullable Long limit, @Nullable Long offset, Map<String, String> additionalHeaders) throws ApiExceptionGet user activity logs- Parameters:
startDate- Mandatory if endDate is used. Enter start date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month. Additionally, you can retrieve activity logs from the past 12 months from the date of your search. (optional)endDate- Mandatory if startDate is used. Enter end date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month. (optional)email- Enter the user's email address to filter their activity in the account. (optional)limit- Number of documents per page (optional, default to 10)offset- Index of the first document in the page. (optional, default to 0)additionalHeaders- additionalHeaders for this call- Returns:
- GetAccountActivity
- Throws:
ApiException- if fails to make API call
-
getCorporateInvitedUsersList
Get the list of all admin users This endpoint allows you to list all Admin users of your Admin account- Returns:
- GetCorporateInvitedUsersList
- Throws:
ApiException- if fails to make API call
-
getCorporateInvitedUsersList
public GetCorporateInvitedUsersList getCorporateInvitedUsersList(Map<String, String> additionalHeaders) throws ApiExceptionGet the list of all admin users This endpoint allows you to list all Admin users of your Admin account- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- GetCorporateInvitedUsersList
- Throws:
ApiException- if fails to make API call
-
getCorporateUserPermission
public GetCorporateUserPermission getCorporateUserPermission(@Nonnull String email) throws ApiException Check admin user permissions This endpoint will provide the list of admin user permissions- Parameters:
email- Email of the invited user. (required)- Returns:
- GetCorporateUserPermission
- Throws:
ApiException- if fails to make API call
-
getCorporateUserPermission
public GetCorporateUserPermission getCorporateUserPermission(@Nonnull String email, Map<String, String> additionalHeaders) throws ApiExceptionCheck admin user permissions This endpoint will provide the list of admin user permissions- Parameters:
email- Email of the invited user. (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetCorporateUserPermission
- Throws:
ApiException- if fails to make API call
-
getSubAccountGroups
Get the list of groups This endpoint allows you to list all groups created on your Admin account.- Returns:
- List<GetSubAccountGroups200ResponseInner>
- Throws:
ApiException- if fails to make API call
-
getSubAccountGroups
public List<GetSubAccountGroups200ResponseInner> getSubAccountGroups(Map<String, String> additionalHeaders) throws ApiExceptionGet the list of groups This endpoint allows you to list all groups created on your Admin account.- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- List<GetSubAccountGroups200ResponseInner>
- Throws:
ApiException- if fails to make API call
-
inviteAdminUser
public CorporateGroupPost201Response inviteAdminUser(@Nonnull InviteAdminUser inviteAdminUser) throws ApiException Send invitation to an admin user `This endpoint allows you to invite a member to manage the Admin account Features and their respective permissions are as below: - `my_plan`: - \"all\" - `api`: - \"none\" - `user_management`: - \"all\" - `app_management` | Not available in ENTv2: - \"all\" - `sub_organization_groups` - \"create\" - \"edit_delete\" - `create_sub_organizations` - \"all\" - `manage_sub_organizations` - \"all\" - `analytics` - \"download_data\" - \"create_alerts\" - \"my_looks\" - \"explore_create\" - `security` - \"all\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited admin user.- Parameters:
inviteAdminUser- Payload to send an invitation (required)- Returns:
- CorporateGroupPost201Response
- Throws:
ApiException- if fails to make API call
-
inviteAdminUser
public CorporateGroupPost201Response inviteAdminUser(@Nonnull InviteAdminUser inviteAdminUser, Map<String, String> additionalHeaders) throws ApiExceptionSend invitation to an admin user `This endpoint allows you to invite a member to manage the Admin account Features and their respective permissions are as below: - `my_plan`: - \"all\" - `api`: - \"none\" - `user_management`: - \"all\" - `app_management` | Not available in ENTv2: - \"all\" - `sub_organization_groups` - \"create\" - \"edit_delete\" - `create_sub_organizations` - \"all\" - `manage_sub_organizations` - \"all\" - `analytics` - \"download_data\" - \"create_alerts\" - \"my_looks\" - \"explore_create\" - `security` - \"all\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited admin user.- Parameters:
inviteAdminUser- Payload to send an invitation (required)additionalHeaders- additionalHeaders for this call- Returns:
- CorporateGroupPost201Response
- Throws:
ApiException- if fails to make API call
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDescription copied from class:BaseApiDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Specified by:
invokeAPIin classBaseApi- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-