Skip to contentSkip to navigationSkip to topbar
On this page

Parse Settings


(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 refer to the Parse Documentation for documentation on Parse.


Get Current Settings

get-current-settings page anchor
URI ParameterRequiredRequirementsDescription
taskYesMust be set to getTask to retrieve Parse records
userYesSubuser must be under your accountThe subuser to retrieve records for
JSONXML

Call

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

Response

1
{
2
"parse": [
3
{
4
"hostname": "parse.example1.com",
5
"url": "www.mydomain.com/parse.php",
6
"spam_check": 1
7
},
8
{
9
"hostname": "parse.example2.com",
10
"url": "www.mydomain.com/parse.php",
11
"spam_check": 0
12
}
13
]
14
}

URI ParameterRequiredRequirementsDescription
taskYesMust be set to setTask to set Parse record
userYesSubuser must be under your accountThe subuser setup parse on
hostnameYesValid DNS entryHostname to catch email from. Must have mx record
urlYesValid POST URLThe URL to POST the Parse data
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.parse.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&hostname=www.example.com&url=www.mydomain.com/parse.php&spam_check=1&task=set&user=subuser_username
1
{
2
"message": "success"
3
}

URI ParameterRequiredRequirementsDescription
taskYesMust be set to updateTask to edit Parse record
userYesSubuser must be under your accountThe subuser who owns the Parse record to update
hostnameYesNo more than 255 charactersHostname entry you want to update
urlYesValid POST URLThe new URL to POST the Parse data
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.parse.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&hostname=www.example.com&url=www.mydomain.com/parse.php&spam_check=1&task=update&user=subuser_username
1
{
2
"message": "success"
3
}

URI ParameterRequiredRequirementsDescription
taskYesMust be set to deleteTask to delete Parse record
userYesSubuser must be under your accountThe subuser who owns the Parse record being removed.
hostnameYesMust be an existing hostname on the userThe Parse record to remove
JSONXML
POSThttps://api.sendgrid.com/apiv2/customer.parse.json
POST Dataapi_user=your_sendgrid_username&api_key=your_sendgrid_password&hostname=www.example.com&task=delete&user=subuser_username
1
{
2
"message": "success"
3
}

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.