unique_args please make sure to only use strings as shown in our examples. Any other type could result in unintended behavior.
The SMTP API JSON string allows you to attach an unlimited number of unique arguments to your email up to 10,000 bytes. The arguments are used only for tracking. They can be retrieved through the Event API or the Email Activity page.
These arguments can be added using a JSON string like this:
1 2 3 4 5 6 7 8 9 10
These arguments can then be seen in posts from the SendGrid Event Webhook. The contents of one of these POST requests would look something like this:
Example Webhook Post Data
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Bounces returned with the Return-Path cause `unique_rgs not to be attached to an event. This can cause issues when developing unique_args POST handling.
To apply different unique arguments to individual emails, you may use substitution tags. An example of this would look like:
1 2 3 4 5 6 7 8 9 10 11