Skip to Content
SelloDeveloper docs
API ReferenceWebhooks

Test event from the portal

Sent once, directly, when someone presses "send test event" in the portal; never retried automatically. `id` is `evt_test_<uuid>` and `data` is `{"test": true}`. Stored like every other event, so it is listed and can be resent.

Header Parameters

Sello-Signature*string

Webhook signature: t=<unixSeconds>,v1=<hexHmacSha256>. The v1 value is the hex HMAC-SHA256 of "{t}.{rawRequestBody}" keyed by your endpoint secret. For 24 hours after a secret change the header carries two v1 values, the new secret's first and the previous secret's last (t=<ts>,v1=<new>,v1=<previous>); accept the delivery when any of them matches. Verify over the RAW body (before JSON parsing) in constant time, and reject deliveries whose t is outside your tolerance window (replay defense). The @magiios/sdk verifyWebhook helper implements this exactly.

Match^t=[0-9]+,v1=[0-9a-f]{64}(,v1=[0-9a-f]{64})*$
Sello-Webhook-Id*string

The event id (also present in the body as id). Dedupe on it — delivery is at-least-once, so the same id can arrive more than once.

Request Body

application/json
  1. body

webhook.test — the portal's test event. An account-level event with no document fields.

type*"webhook.test"

Every event type the engine delivers to your endpoint. More may be ADDED; answer 2xx to a type you do not handle.

Value in"webhook.test"
id*string

Stable unique event id — your dedupe key.

Match^evt_test_
createdAt*integer

Unix epoch seconds when the event was created. It is NOT the signature timestamp: verify against the t in the Sello-Signature header, which is stamped fresh on each delivery attempt.

apiVersion?WebhookApiVersion

The event schema version the body was created under (#1458), e.g. 2026-06-15. Every event created since #1458 carries it, right after createdAt; a body frozen before then has none. It is fixed at creation, so a retry or a resend carries the same value.

Match^\d{4}-\d{2}-\d{2}$
data*

Response Body

Your endpoint acknowledged the test delivery.

Example Requests
POST/webhook.test
Request Body
application/json
{  "id": "string",  "type": "webhook.test",  "createdAt": 0,  "data": {    "documentId": "string",    "accountId": "string",    "emisorId": "string",    "clave": "stringstringstringstringstringstringstringstringst",    "status": "accepted",    "test": true  }}
Header Parameters
{  "Sello-Signature": "t=1718668800,v1=5f3a9c1b2d4e6f8a0c2e4f6a8c0e2f4a6c8e0a2c4e6f8a0c2e4f6a8c0e2f4a6c",  "Sello-Webhook-Id": "string"}