Base URL
Authentication
Every request authenticates with your API key as a Bearer token. The key prefix selects the environment -mk_live_ for production, mk_test_ for sandbox. See Authentication for details.
Response envelope
Every endpoint returns the same envelope:data is populated and error is null. On failure data is null and error carries a machine-readable code, a message, and optional details. Amounts are in USDC unless noted. See API Conventions for the full code list.
Idempotency
Opening, adding, reducing, and closing accept anIdempotency-Key header so retries are safe. See API Conventions.
