Skip to main content
The API reference is generated from the LightSwap API OpenAPI specification. Use canonical lowercase network values such as solana, base, bitcoin, and tron when calling the Partner API.

Base URL

https://lightswap.me/api/partner/v1

Authentication

Every request requires the x-api-key header:
x-api-key: <partner_api_key>

Endpoint groups

Assets

List active assets and filter by network or symbol.

Address validation

Validate a payout address before creating a swap.

Quotes

Create a short-lived exact-input quote.

Swaps

Create a swap and poll its status.

Response format

Successful responses return the endpoint payload directly. Error responses use a shared structure:
{
  "error": {
    "code": "quote_expired",
    "message": "Partner quote has expired.",
    "details": {}
  },
  "requestId": "request-id"
}
Use the endpoint pages in this section for request fields, response fields, headers, and examples.