The Twilio SendGrid Account Provisioning API provides a platform for Twilio SendGrid resellers to manage their customers. This API is for companies that have a formal reseller partnership with Twilio SendGrid.
You can access Twilio SendGrid sub-account functionality without becoming a reseller. If you require sub-account functionality, see the Twilio SendGrid Subusers feature, which is available with Pro and Premier plans.
The Account Provisioning API account operations allow you to create, retrieve, and authenticate customer accounts.
The List Accounts operation allows you to retrieve all customer accounts belonging to your reseller account. Accounts are returned with their account IDs, email addresses, and account creation and update information.
This endpoint returns 10 results per request by default. You can receive a maximum of 100 results per request by setting the limit
query parameter. If you have more than 100 customer accounts, you can use the offset
and limit
query parameters to iterate through your accounts in successive API calls to the endpoint.
Retrieves all accounts under the organization.
Bearer <<YOUR_API_KEY_HERE>>
The last item successfully retrieved
The number of items to return
100
Default: 10
OK
List of account objects.
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const queryParams = {5limit: 10,6};78const request = {9url: `/v3/partners/accounts`,10method: "GET",11qs: queryParams,12};1314client15.request(request)16.then(([response, body]) => {17console.log(response.statusCode);18console.log(response.body);19})20.catch((error) => {21console.error(error);22});