Worked chains — pixels and redirects on your campaign
The root-mounted families below don’t share a request envelope: each answers with its own content type, driven by what the caller’sAccept header asks for. If the concept page’s public pixels, redirects, and short links is the contract, the three chains below are the wire.
1. Embed an open pixel and a referral redirect in one campaign template
In your email (or landing) template:Accept:
2. Programmatic landing-page converts with Idempotency-Key
POST /lp/:code/convert is the family’s one JSON-capable route. Send Accept: application/json plus a stable key:
Idempotency-Replay: true on the response header:
3. Verify the HMAC on /r/:sig/:target
/:target is base64url JSON over the exact wire bytes; /:sig is the base64url HMAC-SHA256 of those bytes. A tampered (re-encoded) segment is rejected before any redirect.
Valid:
ts):