Skip to main content
The Sunrise API is served from https://api.sunrise.xyz. Send your API key as a Bearer token on every request:
Every response includes a requestId, also sent as the X-Request-Id header. Every error carries a code that means one next step. See Errors for every code and what to do. The full specification is at https://api.sunrise.xyz/openapi. For a complete swap, see Swap with the API.