Introduction
The Long.xyz REST API is built using ts-rest, providing end-to-end type safety between client and server. All API contracts are available in the@longdotxyz/shared package.
Installation
Authentication
All requests require an API key in theX-API-KEY header:
Contact the Long.xyz team to obtain an API key.
Client Setup
First Request
Response Structure
ts-rest responses include:status: HTTP status codebody: Typed response bodyheaders: Response headers
Available Contracts
assets: Asset managementauctions: Auction operationsauctionTemplates: Template managementcommunities: Community dataipfs: File uploadsquotes: Trading quotes