Skip to content

API ReferenceKeys

Endpoints

Keys

Self-serve API keys: sign a challenge with your wallet, then check or revoke the key.

Base URLhttps://api.lane.markets/v1local instance: http://localhost:3000/v1

Message to sign to create an API key

GET/v1/keys/challenge

Query parameters

  • addressaddressrequired

Responses

200Challenge

  • messagestring

  • expiresAtinteger

Request
curl "https://api.lane.markets/v1/keys/challenge?address=0x7D29d8047B905000459c0E80c34a26CeedcB47b2"

Create an API key from a signed challenge (key shown once)

POST/v1/keys

Responses

200Key

  • keystring

  • prefixstring

  • ownerstring

  • labelstring | null

  • perMinuteinteger

  • createdAtinteger

401Signature mismatch

409Wallet already has 3 active keys

429Too many keys from this IP today

Request
curl "https://api.lane.markets/v1/keys"

The calling key's limit and 30-day usage

GET/v1/keys/me

Responses

200Key info

401Invalid key

Request
curl "https://api.lane.markets/v1/keys/me"

Revoke the calling key

DELETE/v1/keys/me

Responses

200Revoked

  • revokedboolean

Request
curl "https://api.lane.markets/v1/keys/me"
lane.markets · Make the most of every move.