This endpoint has been deprecated, and should not be used. Use the Event Notification app with the Subuser App endpoint instead.

Get

URI Parameter Required Requirements Description
task Yes Must be set to get Task to get the url for the specified user
user Yes Subuser must be under your account Username of the subuser to get settings for
Parameter Value Requirements Description

Call

POST https://api.sendgrid.com/apiv2/customer.eventposturl.json
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=get&user=subuser_username

Response

1
2
3
{
  "url": "http:\/\/www.SubUserPostUrlHere.com"
}

Call

POST https://api.sendgrid.com/apiv2/customer.eventposturl.xml
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=get&user=subuser_username

Response

1
<url>http://www.SubUserPostUrlHere.com</url>

Update / Set URL

URI Parameter Required Requirements Description
task Yes Must be set to set Task to set the eventurl for the subuser
user Yes Subuser must be under your account The name of the subuser
url Yes The notification URL This is the new event notification URL
Parameter Value Requirements Description

Call

POST https://api.sendgrid.com/apiv2/customer.eventposturl.json
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=set&user=subuser_username&url=http://www.SubUserPostUrlHere.com

Response

1
2
3
{
  "message": "success"
}

Call

POST https://api.sendgrid.com/apiv2/customer.eventposturl.xml
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=set&user=subuser_username&url=http://www.SubUserPostUrlHere.com

Response

1
2
3
<result>
   <message>success</message>
</result>

Delete

URI Parameter Required Requirements Description
task Yes Must be set to delete Task to delete the event notification url for the specified subuser
user Yes Subuser must be under your account The name of the subuser
Parameter Value Requirements Description

Call

POST https://api.sendgrid.com/apiv2/customer.eventposturl.json
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=delete&user=subuser_username

Response

1
2
3
{
  "message": "success"
}

Call

POST https://api.sendgrid.com/apiv2/customer.eventposturl.xml
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&task=delete&user=subuser_username

Response

1
2
3
<result>
   <message>success</message>
</result>