Skip to contentSkip to navigationSkip to topbar
On this page

Apps


(warning)

This documentation is for the SendGrid Web API v2

We will deprecate this version on February 10, 2025. To access all the latest features and upcoming developments, please see our v3 API. For assistance with transitioning, refer to our migration guide.

(information)

Info

Please see the Filter Settings page for a list of the required parameters for each app setting.


List

list page anchor

List all the available apps available for the subuser.

URI ParameterRequiredRequirementsDescription
taskYesMust be set to getAvailableTask to retrieve available apps for the subuser
userYesSubuser must be under your accountThe subuser being queried
JSONXML

Call

POSThttps://api.sendgrid.com/apiv2/customer.apps.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&task=getAvailable&user=subuser_username

Response

1
[
2
{
3
"name": "clicktrack",
4
"title": "Click Tracking",
5
"description": "Overwrites every link to track every click in emails.",
6
"activated": true
7
},
8
{
9
"name": "subscriptiontrack",
10
"title": "Subscription Tracking",
11
"description": "Adds unsubscribe links to the bottom of the text and HTML emails. Future emails won't be delivered to unsubscribed users.",
12
"activated": false
13
},
14
{
15
"name": "opentrack",
16
"title": "Open Tracking",
17
"description": "Appends an invisible image to HTML emails to track emails that have been opened.",
18
"activated": true
19
}
20
]

Note: The name entry is used in all the other API calls to identify an app.



Activate an app on a subuser.

URI ParameterRequiredRequirementsDescription
taskYesMust be set to activateTask to activate an app
userYesSubuser must be under your accountThe subuser to activate the app on
nameYesMust be a supported appThe app to activate
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.apps.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&name=clicktrack&task=activate&user=subuser_username
1
{
2
"message": "success"
3
}


Deactivate an app on a subuser.

URI ParameterRequiredRequirementsDescription
taskYesMust be set to deactivateDeactivate an app
userYesSubuser must be under your accountThe subuser to deactivate the app on
nameYesMust be a supported appThe app to deactivate
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.apps.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&name=clicktrack&task=deactivate&user=subuser_username
1
{
2
"message": "success"
3
}


These API calls require that settings are passed using POST.

(information)

Info

Refer to Filter Settings for the required arguments for each app.

URI ParameterRequiredRequirementsDescription
taskYesMust be set to setupTask to setup an app
userYesSubuser must be under your accountThe subuser to setup the app on
nameYesMust be a supported appThe app to setup
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.apps.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&user=subuser_username&name=bcc&task=setup&email=test@example.com
1
{
2
"message": "success"
3
}


Get the settings for a subuser's app.

URI ParameterRequiredRequirementsDescription
taskYesMust be set to getsettingsTask to retrieve the settings for the app
userYesSubuser must be under your accountThe subuser get the app settings for
nameYesMust be a supported appThe app to retrieve settings of
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.apps.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&name=clicktrack&task=getsettings&user=subuser_username
1
{"settings":
2
{
3
"enable_text":"0"
4
}
5
}

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.