The accountId and subAccountId are used in the context of the 8x8 SMS API to identify and manage different levels of accounts and subaccounts.
• accountId: This is the primary identifier for your main account. It is used to manage and access resources and services associated with your main account.
• subAccountId: This is used to identify subaccounts within your main account. Subaccounts allow you to segment and manage different parts of your service usage separately. For example, you might have different subaccounts for different departments or projects within your organization. The subAccountId is included in the URL when making API requests to specify which subaccount the request is targeting.
The accountId and subAccountId can be found in your 8x8 Connect via API keys page.
Below we can see the Accountid is : test11_9tT31 with SubaccountId : test11_9tT31_hq. Your account may have multiple subaccounts which can be seen if you click the drop down in Subaccount ID.