Overview

First Leeward API reference.

REST API with JSON request and response bodies.

Base URL

EnvironmentBase URL
Productionhttps://api.firstleeward.com/v0/

All requests are made against this single base URL.

Required Headers

Every request must include:

HeaderDescription
AuthorizationYour API key as a Bearer token: Bearer YOUR_API_KEY
Leeward-VersionAPI version in YYYY-MM-DD format. Current version: 2026-09-18
Content-Typeapplication/json for requests with a body

Example Request

curl https://api.firstleeward.com/v0/users \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Leeward-Version: 2026-09-18"

Numerical Values

Monetary and rate fields use different JSON types depending on what they represent, chosen so partners never silently lose precision:

Field shapeJSON typeNotes
Fiat amounts (USD, EUR, ...)numberAt the currency's native precision (2 decimal places for most fiat). Safe to read as a JS number.
Crypto and virtual asset amountsstringDecimal string padded to the asset's decimals (e.g. "1.000000" for 1 USDC). Lossless across all values; compare and arithmetic via a big-decimal library.
Exchange and conversion ratesnumber6 decimal places.

A field's individual description always wins when it differs. The same conventions are followed on input bodies.