Skip to Content

Replay an event

You're viewing API version 2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.
POST
/api/v1/events/{id}/replay

Queues a fresh delivery of the event. By default it goes to every webhook currently subscribed to its type; pass webhookId to target one endpoint, for example after an outage on a single receiver. The delivery carries a new delivery id, so an endpoint that deduplicates on X-Sajn-Delivery-Id treats it as new.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string

Header Parameters

authorization*string

Bearer token for API authentication

Idempotency-Key?string

Makes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.

Lengthlength <= 255

Request Body

Body

application/json
  1. body
webhookId?string

Replay to this webhook only. Omit to replay to every webhook subscribed to the event type.

Response Body

200

application/json
  1. response
ok*true
Value intrue
endpoints*integer

Number of webhooks the event was queued to

Range-9007199254740991 <= value <= 9007199254740991
Example Request
curl -X POST 'https://app.sajn.se/api/v1/events/string/replay' \  -H 'authorization: string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "ok": true,  "endpoints": -9007199254740991}

Was this page helpful?