- The management key opens, funds, and labels subaccounts. It also creates and revokes keys.
- The management key reads every wallet: orders, fills, and positions.
- A trading key places and cancels orders. It also streams the order book and your fills.
- Any key reads the catalog and market history.
- You create the management key on Profile → Settings → Novig API.
- You create a trading key with
POST /v3/account/subaccounts, signed by the management key.
novig-api-key-mgmt-1.pem and a trading key file is desk-1.pem.
These routes manage keys:
Create your management key
1
Open the Novig API screen
Open Profile on paper.novig.com or on novig.com, then press Settings and Novig API. The screen lists your keys and shows your location check result.
2
Name the key
Press Create Key and enter a nickname, which is only a label and grants no access. The browser generates the keypair with Ed25519, or with P-256 if it can’t generate Ed25519.
3
Confirm
Press Confirm Key Creation. The browser downloads
novig-api-key-<nickname>.pem, a PKCS#8 PEM file, and shows the private key once.4
Save the private key
If the browser blocked the download, copy the key from the screen. Then press I’ve saved my key, and we never show the private key again.
Novig-Key-Id header.
If you lose the private key, revoke the key on the same screen and create a new one.
Your web session is the only recovery path.
Until you revoke the key, anyone who holds the private key can act as that key.
Create it with a client ID and secret
Some accounts have no web login. We onboard them with a client ID and a client secret.1
Get a token
Exchange the client ID and secret for a bearer token.
2
Generate a keypair
Create an Ed25519 keypair on your machine, and keep the private half.
3
Register the public half
Call
POST /v3/keys with the token as the bearer. The reply is your management key.NOVIG_HOST at Production, https://api.novig.com, then request a token:
access_token. Export it as TOKEN. It expires after 30 minutes.
Generate the keypair:
keyId and "scope": "management". Save the keyId with novig-mgmt.pem, because every signed call needs both.
A 409 MANAGEMENT_KEY_EXISTS means your account already holds a live management key. Use that key, or ask us to revoke it.
If the reply says the client-credentials token path is not enabled for this account, ask us to turn it on.
You don’t need the token again. Sign account-management calls with your management key. Use your subaccount’s trading key for market data and orders. Start with the Quickstart.
Create other keys with the API
A route creates every key belowmanagement.
Generate the keypair before you call the route:
nameis a label that appears in the key list.publicKeyis the public key as an SPKI PEM, newlines included.algorithmmust match the key material.expiresAtmust be strictly in the future. Never set it on amanagementkey, as Revoke a key explains.
POST /v3/account/subaccounts takes label in place of name.
POST /v3/keys and POST /v3/account/subaccounts take no scope field.
If the body includes one, the route returns 400.
POST /v3/account/subaccounts/{keyId}/keys requires one: trading or trading::read.
The route returns the new key:
Pick Ed25519 unless a hardware requirement forces P-256.
Your signer must use the same algorithm.
To compute the fingerprint yourself, run:
How a key gets its scope
Each key has a scope, which sets what it can reach and do. Where you create a key decides its scope, so you never name one yourself. Profile creates themanagement key and generates its keypair in the browser.
A route creates every other key from a public key that you generate.
Web sessionA bearer JWT
Profile → Settings → Novig API
managementOne live per trader
Creates the rest with a route
management::read live per trader
tradingOne live per subaccount
trading::read live per trader
Each line points from a credential to the key it creates.
The route that opens a subaccount also creates its
trading key.
A subaccount has one live trading key.
After you revoke it, POST /v3/account/subaccounts/{keyId}/keys creates its replacement.
The same route creates trading::read keys beside it, up to live per trader across every subaccount.
Every key on a subaccount shares the subaccount’s throttles.
Why keys work this way
- Your web session is the root. Its bearer
JWTis the only credential you hold before your first key, and the only way to amanagementkey. - Every key has its own keypair.
- No key creates a key above itself. Every route that creates a key accepts only a
managementkey or your web session, so a leaked read or trading key can’t escalate. - A subaccount and its
tradingkey are created together, so no wallet exists without a key. After you revoke that key,POST /v3/account/subaccounts/{keyId}/keyscreates its replacement.
Limits
Location checks
Every signed route runs two location checks. If either check fails, the route returns451. A cancel, GET /v3/time, and GET /v3/exchange/status skip both.
- IP check: refuses a request from a restricted state, or through a VPN, proxy, or Tor exit. A data-center address is fine.
- Companion check: refuses a key holder whose last device geolocation is missing, failed, named no region, or came from a restricted state. A placement also refuses one older than days. A read admits it.
GEOLOCATION_OUT_OF_BOUNDARY, GEOLOCATION_BLOCKED_NETWORK, or GEOLOCATION_BLOCKED_SOFTWARE.
451 gives the fix for each.
To pass the companion window check, open the Novig app so your device geolocates.
The Novig API screen shows your check result before you create your first key.
If a window is open, the screen also shows when it expires.
Revoke a key
To revoke a key, press × beside it on Profile → Settings → Novig API. You can also callDELETE /v3/keys/{id}.
Revocation takes effect within s, and you can’t undo it.
If the key is compromised, change the order.
Revoke it first, then create a replacement, then cancel the resting orders.
Rotate a key
management: revoke the old key, then create a new one. There’s a gap with no key.management::read: create the new key, switch over, then revoke the old one. There’s no gap.trading: revoke, then create the replacement withPOST /v3/account/subaccounts/{keyId}/keys. There’s a gap, so cancel orders first.

