Endpoints
Keys
Self-serve API keys: sign a challenge with your wallet, then check or revoke the key.
Base URL
https://api.lane.markets/v1local instance: http://localhost:3000/v1Message to sign to create an API key
GET
/v1/keys/challengeQuery parameters
addressaddressrequired
Responses
200Challenge
messagestringexpiresAtinteger
curl "https://api.lane.markets/v1/keys/challenge?address=0x7D29d8047B905000459c0E80c34a26CeedcB47b2"Create an API key from a signed challenge (key shown once)
POST
/v1/keysResponses
200Key
keystringprefixstringownerstringlabelstring | nullperMinuteintegercreatedAtinteger
401Signature mismatch
409Wallet already has 3 active keys
429Too many keys from this IP today
curl "https://api.lane.markets/v1/keys"The calling key's limit and 30-day usage
GET
/v1/keys/meResponses
200Key info
401Invalid key
curl "https://api.lane.markets/v1/keys/me"Revoke the calling key
DELETE
/v1/keys/meResponses
200Revoked
revokedboolean
curl "https://api.lane.markets/v1/keys/me"