Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Apps


(warning)

This documentation is for the SendGrid Web API v2

To access all the latest features and upcoming developments, please see our v3 API.

(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


_20
[
_20
{
_20
"name": "clicktrack",
_20
"title": "Click Tracking",
_20
"description": "Overwrites every link to track every click in emails.",
_20
"activated": true
_20
},
_20
{
_20
"name": "subscriptiontrack",
_20
"title": "Subscription Tracking",
_20
"description": "Adds unsubscribe links to the bottom of the text and HTML emails. Future emails won't be delivered to unsubscribed users.",
_20
"activated": false
_20
},
_20
{
_20
"name": "opentrack",
_20
"title": "Open Tracking",
_20
"description": "Appends an invisible image to HTML emails to track emails that have been opened.",
_20
"activated": true
_20
}
_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

_10
{
_10
"message": "success"
_10
}



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

_10
{
_10
"message": "success"
_10
}



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

_10
{
_10
"message": "success"
_10
}



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

_10
{"settings":
_10
{
_10
"enable_text":"0"
_10
}
_10
}


Rate this page: