Create webhook endpoint
Registers a destination URL and subscribes it to one or more event types.
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
AuthorizationstringheaderrequiredBearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the webhooks:write scope.
Body
application/jsonurlstringrequiredURL deliveries are POSTed to. HTTPS is strongly recommended; the destination is checked for SSRF safety at registration and delivery time.
enabledEventsstring[]requiredEvent 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.
descriptionstringOptional human-readable label for this endpoint.
Response
201 · WebhookEndpoint · application/jsonThe endpoint, with its signing secret — shown only this once.
idstringrequiredPublic id.
organizationIdstringrequiredurlstringrequiredenabledEventsWebhookEventType[]requiredenabledbooleanrequiredThe merchant's own on/off switch.
descriptionstring | nullrequiredsecretstringSigning secret. Present ONLY in the creation response; never retrievable again.
consecutiveFailuresnumberConsecutive failed deliveries. Absent means not reported, never healthy.
lastSuccessAtstring | nulllastFailureAtstring | nulldisabledAtstring | nullWhen the platform disabled the endpoint after repeated failures.
disabledReasonstring | nullcreatedAtstringrequiredRFC 3339 UTC timestamp.
updatedAtstringrequiredRFC 3339 UTC timestamp.