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 offering operations allow you to update and list Twilio SendGrid features or offerings available for your customer accounts.
The Update Account Offerings operation allows you to add or remove offerings from a specific customer account. Offerings are Twilio SendGrid features or offerings such as a dedicated IP address or Marketing Campaigns package.
The update is an idempotent PUT
operation and each request overwrites existing offerings on the customer account. For this reason, you should include any permissions you want the account to retain with each request, omitting only those you wish to remove from the account. Upgrades and downgrades are available immediately after account provisioning.
To retrieve a list of all the offerings you may assign to a customer account, use the List Offerings operation.
Changes a package offering for the specified account. Please note that an account can have only one package offering. Also associates one or more add-on offerings such as Marketing Campaigns, Dedicated IP Addresses, and Expert Services to the specified account.
Bearer <<YOUR_API_KEY_HERE>>
Twilio SendGrid account ID
application/json
List of offerings to assign to account.
OK
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const accountID = "ZGkrHSypTsudrGkmdpJJ";5const data = {6offerings: [7{8name: "Miss Christine Morgan",9type: "package",10},11],12};1314const request = {15url: `/v3/partners/accounts/${accountID}/offerings`,16method: "PUT",17body: data,18};1920client21.request(request)22.then(([response, body]) => {23console.log(response.statusCode);24console.log(response.body);25})26.catch((error) => {27console.error(error);28});