Subuser Unsubscribes
Retrieve Unsubscribes
Note that you can use either the days parameter or the start_date and end_date parameter.| Parameter | Required | Requirements | Description |
|---|---|---|---|
| user | Yes | Subuser must be registered under your account | The subuser we are retrieving unsubscribes from |
| task | Yes | Must be set to get | This will allow you to retrieve the unsubscribes for the specified subuser |
| date | No | Must be set to 1 | Retrieves the timestamps, it will return a date in a MySQL timestamp format - YYYY-MM-DD HH:MM:SS |
Call
1
| |
Response
1 2 3 4 5 6 7 8 9 10 11 12 | |
Call
1
| |
Response
1 2 3 4 5 6 7 8 9 10 | |
Delete Unsubscribes
Since SendGrid does not deliver to unsubscribe addresses, users can remove unsubscribes from their list at any time if re-delivery to an unsubscribed address is desired.| Parameter | Required | Requirements | Description |
|---|---|---|---|
| user | Yes | Subuser must be registered under your account | The subuser we are retrieving unsubscribes from |
| task | Yes | Must be set to delete | This will allow you to delete an unsubscribe record for the specified subuser |
| No | Must be an unsubscribe record | You must specify the unsubscribe record to remove |
Call
1
| |
Response: Success
1 2 3 4 5 | |
Response: Error
1 2 3 4 5 | |
Call
1
| |
Response: Success
1 2 3 | |
Response: Error
1 2 3 | |
Add Unsubscribes
Add unsubscribe email records to their account if they need to stop sending email messages to a specific recipient.| Parameter | Required | Requirements | Description |
|---|---|---|---|
| user | Yes | Subuser must be registered under your account | The subuser we are retrieving unsubscribes from |
| task | Yes | Must be set to add | This will allow you to add an unsubscribe record for the specified subuser |
| No | Must be an unsubscribe record | You must specify the unsubscribe record to add |
Call
1
| |
Response: Success
1 2 3 4 5 | |
Response: Error
1 2 3 4 5 | |
Call
1
| |
Response: Success
1 2 3 | |
Response: Error
1 2 3 | |