POST creates a key, PATCH updates the fee, payout
addresses, and webhook on a key you already have. See Get an API key for
the hosted signup form, Pricing for how the fee you set here turns into a payout,
and Settlement Webhooks for what the webhook actually sends.
Create a key: POST /v1/keys
string
required
Where you receive your key and any partnership follow-up.
string
required
string
required
A valid URL.
string
required
string
required
string
Optional.
string
Optional, one line on what you’re building.
string
Optional.
string[]
Optional.
string[]
Optional.
integer
Your swap fee in basis points, 0 to 100 (1%). Omit or send
0 to start at 0%; you can raise it
later with PATCH. See Pricing for what you actually receive of
whatever you set.string
Pass as the
x-api-key header on every other v1 request.string
integer
The fee now active on this key,
0 if omitted above.Update a key: PATCH /v1/keys
Change the calling key’s own fee, register where its share of collected fees gets paid out, and/or register a settlement webhook. Authenticated by the samex-api-key header as every
other endpoint; the key itself is your proof of ownership. At least one of feeBps,
payoutAddresses, or webhookUrl is required.
integer
0 to 100 (1%). Self-serve keys only (see the note below).
object
One or more of
evm, solana, thorchain (must match thor1…, 38 lowercase alphanumeric
characters after the prefix). Registers where that ecosystem’s earned balance is sent: in-kind,
in the token each fee landed in, monthly on the 1st at 03:30 UTC, only for swaps that reached
settled, and only once a token balance is worth at least $5. See
Pricing for the rules and what happens if a balance accrues with no
address on file.string
Must be
https://. Registers where RAVN posts a notification when a swap made with this key
settles, gets refunded, or fails. Self-serve keys only, same restriction as feeBps. See
Settlement Webhooks for the payload shape and signature verification.string
Only present when this call set
webhookUrl, and only ever shown once, from this exact call.
There’s no separate endpoint to retrieve it again, save it immediately. Re-registering a
different webhookUrl later keeps the same secret rather than issuing a new one.Enterprise keys set
feeBps a different way, and don’t support webhooks yet. Enterprise
keys aren’t self-serve rows, so a feeBps or webhookUrl update here returns 404 NOT_FOUND
for one. Your fee on an enterprise key is set directly by RAVN as part of your arrangement (see
Authentication). payoutAddresses still works on an
enterprise key; feeBps and webhookUrl are restricted.
