Getting an API Key
- Sign up at app.rivermarkets.com
- Go to Settings → API Keys
- Click Create API Key
- Copy the private key — it is shown only once and never stored on the server
key_id (UUID) and a base64-encoded Ed25519 private_key.
Keep the private key in a secret store (env var, vault, etc.) — anyone with it
can act as you.
What an API key can do
An API key is scoped to reading and trading on the subaccounts its owner can access. Management operations require a signed-in dashboard session and return403 human_session_required to a signed request:
REST signing
Every REST request carries three headers:
The canonical string is LF-joined (no trailing newline):
SORTED_QUERYis the query string with keys sorted alphabetically and values percent-encoded per RFC 3986. Empty when there is no query string.SHA256(body)is the hex digest of the raw request body, orsha256("")when there is no body.

