Package io.mailtrap.api.subaccounts
Interface SubAccounts
- All Known Implementing Classes:
SubAccountsImpl
public interface SubAccounts
-
Method Summary
Modifier and TypeMethodDescriptioncreateSubAccount(long organizationId, CreateSubAccountRequest request) Create a new sub account under the specified organization.getSubAccounts(long organizationId) Get a list of sub accounts for the specified organization.
-
Method Details
-
getSubAccounts
Get a list of sub accounts for the specified organization. Requires sub account management permissions for the organization.- Parameters:
organizationId- unique organization ID- Returns:
- list of sub accounts
-
createSubAccount
Create a new sub account under the specified organization. Requires sub account management permissions for the organization.- Parameters:
organizationId- unique organization IDrequest- sub account data- Returns:
- created sub account
-