Unique args
Pass tracking fields that come back on delivery webhooks.
Unique args are your own key and value pairs, such as a campaign id or an account id. PostShiba attaches them to a send and returns them on every delivery webhook for that message.
Set unique args
Each send path takes them in a different place. PostShiba reads the X-Capsule-Unique-Args header and strips it before the mail leaves, so recipients never see it.
| Send path | Where to put them |
|---|---|
| REST | unique_args object on the send body |
| SMTP | X-Capsule-Unique-Args header with a JSON object |
| HTTP inject | X-Capsule-Unique-Args in content.headers |
| Dashboard test send | Unique args under More |
The header value is the same object as JSON.
Limits
| Limit | Value |
|---|---|
| Keys | 32 at most |
| Key length | 64 bytes |
| Value length | 256 bytes |
| Value types | Scalars only (strings, numbers, booleans) |
The send still goes out when an arg breaks a limit. Keys past the 32nd, and keys or values that are too long, are left off the webhook events.
These keys are reserved because every event already carries them, and they are also left off: event, email, timestamp, sg_event_id, sg_message_id, smtp-id, and tenant_id. See Event types.