Campaign event

Campaign lifecycle events, POSTed to your tenant webhook endpoint — configured by MyStars on request, together with the event types it receives — and never to a per-order callback_url. The body is the tenant event envelope; data.campaign_id names the campaign. campaign.recipient.delivered and campaign.recipient.failed are sent only when your endpoint subscribes to them; campaign.recipient.failed is not sent for recipients skipped insufficient_payment or campaign_cancelled (see the event schema).

Verify X-Faas-Signature-V2 (see Tenant event webhooks in the overview), dedupe on id (also in X-Faas-Event-Id) and respond 2xx within 5 seconds (connect, headers and body each; every attempt ends after 10 seconds in total). Redirects are not followed. Delivery is at-least-once: a 5xx, a 3xx, a timeout, a connection error, 408 or 429 is retried with exponential backoff — 30 seconds, doubling, at most one hour between attempts — for up to 15 attempts, about 8 hours from the first to the last. Any other 4xx stops delivery of that event at once. A stopped or exhausted event is not redelivered automatically; once your endpoint is fixed, MyStars support can replay it (events are kept for 30 days). An event whose type your endpoint is not subscribed to when it is sent is dropped, not held.

No ordering guarantee. Events are sent concurrently and each one is retried on its own schedule, so they can arrive in any order — even two events of the same campaign, giveaway or series. Order by created_at, and for campaign.progress by sequence.

postWebhookcampaignEvent

Headers

X-Faas-Signature-V2string required
Example:t=1767225600,v1=e1f32ca4e1313c2f4f319d7d7499fcf5ac41714d2a995aa06f066b6607c47e65

t=TIMESTAMP,v1=SIGNATURE: TIMESTAMP is the send time in unix seconds (re-stamped on every attempt) and SIGNATURE the hex HMAC-SHA256, under your webhook secret, of the string TIMESTAMP + "." + raw body. The HMAC key is the secret as text (its UTF-8 bytes, not hex-decoded) and the body is the exact bytes received, before any JSON parsing. One v1 per active secret (current first) during a rotation. Accept when any v1 matches (constant-time compare) and TIMESTAMP is within 5 minutes of your clock. The example is the developer guide's test vector (secret whsec_vector_one, TIMESTAMP 1767225600).

X-Faas-Signaturestring required

Legacy signature: hex HMAC-SHA256 of the raw body under your webhook secret (the secret's text as the key, not hex-decoded), comma-separated during a secret rotation. Prefer X-Faas-Signature-V2, which also covers the send time.

X-Faas-Event-Idstring uuid required

The event id, identical on every attempt — the dedup key (equals the body id).

X-Faas-Event-Typestring required

The event type, for example campaign.paid or order.delivered (equals the body type).

Payload

OR
OR
OR
OR
OR
OR

Example payload

{
  "api_version": "2.3.0"
}

Response

Acknowledged. Any 2xx stops retries.

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.