API Key Authentication
All LeoKit API endpoints require authentication via an API key. You can pass the API key using either the request header (recommended) or query parameter.Header Method (Recommended)
Pass your API key in theApi-Key header:
Query Parameter Method (Alternative)
Alternatively, you can pass the API key as a query parameter:Client Configuration
Each API key is associated with a client configuration that controls various aspects of the API behavior. These settings allow you to customize which chains and protocols are available to your application.Disabled Chains
You can exclude specific blockchain networks from quotes and asset lists by providing an array of blockchain short names. Example:Disabled Protocols
You can exclude specific DEX protocols from quote aggregation by providing an array of protocol UUIDs. Example:Client Fees
Configure revenue sharing for each protocol using the client fees setting. This allows you to earn a percentage of each swap. Example:fee_bps: Fee in basis points (30 = 0.30%)- Protocol-specific addresses: Your wallet addresses for receiving fees on each protocol
Invalid API Key Response
If you provide an invalid or missing API key, the API will return a 403 Forbidden error: Status Code:403 Forbidden