UniversalEscrow
DocumentationAPI reference
Webhooks

Create webhook endpoint

Registers a destination URL and subscribes it to one or more event types.

POST

https://testnet.universal-escrow.xyz/v1/webhook-endpoints

The response's secret is present ONLY on this creation response and can never be retrieved again — store it immediately, it is what signs Escrow-Signature on every delivery. The destination is checked for SSRF safety at registration time.

Authorizations

Authorizationstringheaderrequired

Bearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the webhooks:write scope.

How authentication works

Body

application/json
urlstringrequired

URL deliveries are POSTed to. HTTPS is strongly recommended; the destination is checked for SSRF safety at registration and delivery time.

enabledEventsstring[]required

Event types this endpoint subscribes to. At least one is required. webhook.test cannot be subscribed to — send one with POST /v1/webhook-endpoints/{id}/test.

descriptionstring

Optional human-readable label for this endpoint.

Response

201 · WebhookEndpoint · application/json

The endpoint, with its signing secret — shown only this once.

idstringrequired

Public id.

organizationIdstringrequired
urlstringrequired
enabledEventsWebhookEventType[]required
enabledbooleanrequired

The merchant's own on/off switch.

descriptionstring | nullrequired
secretstring

Signing secret. Present ONLY in the creation response; never retrievable again.

consecutiveFailuresnumber

Consecutive failed deliveries. Absent means not reported, never healthy.

lastSuccessAtstring | null
lastFailureAtstring | null
disabledAtstring | null

When the platform disabled the endpoint after repeated failures.

disabledReasonstring | null
createdAtstringrequired

RFC 3339 UTC timestamp.

updatedAtstringrequired

RFC 3339 UTC timestamp.