Skip to main content
POST
Create an event subscription (contract frozen — DELIVERY NOT IMPLEMENTED)

Authorizations

Authorization
string
header
required

TESTNET posture: simulated signature bearer — the token is the caller's 0x (address-as-identity; no per-request signature verification). Real EIP-191/EIP-712-verified bearers + SIWE (EIP-4361) sessions for the hosted UI arrive in v1.7.0. The settlement security boundary is the EIP-712 Order signature verified by SwapERC20 on-chain, not this credential. See docs/auth-posture-testnet.md.

Body

application/json
callbackUrl
string<uri>
required
events
enum<string>[]
required

Frozen forward contract (R4-22) — extensible enum. NOT validated server-side today (stored as given); enforcement ships with SV-9.

Available options:
order.executed,
wallet.created,
session_key.revoked
secretHint
string | null
deprecated

DEPRECATED (R4-22): replaced by the signing secret returned ONCE in the 201 response when SV-9 ships. It never was a secret — the server never echoed it.

Response

Subscription created (STORED ONLY — delivery pending SV-9; no events fire today)

DELIVERY NOT IMPLEMENTED (R4-22 + round-4 addition 4, per CLAIM-1): this object describes a STORED subscription — no dispatcher exists today, no events ever fire until SV-9. The contract below is frozen so clients code against it once (same honesty pattern as the rebate 501 stub).

subscriptionId
string
required
createdAt
string<date-time>
required
events
enum<string>[]
required

Frozen forward contract (R4-22); extensible enum. Server truth: stored UNVALIDATED today — enum enforcement ships with SV-9.

Available options:
order.executed,
wallet.created,
session_key.revoked
callbackUrl
string<uri>
required

CONTRACT (ships with SV-9): https-only + private/IP-range blocklist (SSRF rule).

signingSecret
string

CONTRACT (SV-9): HMAC-SHA256 secret, returned ONCE at creation; deliveries carry X-Skia-Signature over the raw body. secretHint is deprecated — it never was a secret.

delivery
object

CONTRACT (SV-9): the envelope POSTed to callbackUrl.