> ## Documentation Index
> Fetch the complete documentation index at: https://docs.soroswap.finance/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Soroswap Aggregator API: base URL https://api.soroswap.finance, pick the network with ?network=mainnet or ?network=testnet (omitted means mainnet).
> Auth: Authorization: Bearer sk_... on every call. Get a key at https://console.soroswap.finance/register. A missing or invalid key returns 401 with code and registerUrl (POST /send returns 403 instead); an expired JWT or a missing role returns 403. Free plan 1 request/s; see https://docs.soroswap.finance/api/plans.md.
> Flow: POST /quote (assetIn, assetOut as C... contract addresses, amount as an integer string in the smallest unit, tradeType, protocols) -> POST /quote/build with the unchanged quote and from -> the user signs the XDR -> POST /send. Build right after quoting: a Soroban XDR is valid for 180 seconds. Submit it as is, never re-simulate it.
> Partner id: every account has one (9 hex chars, permanent). Read partnerId from GET /partner, or in the console at https://console.soroswap.finance under Fees & payouts. The partner fee itself is switched on by Soroswap; see https://docs.soroswap.finance/api/fees.md.
> AI tools: docs MCP at https://docs.soroswap.finance/mcp (claude mcp add --transport http soroswap-docs https://docs.soroswap.finance/mcp), skill with npx skills add https://docs.soroswap.finance. Other clients: https://docs.soroswap.finance/api/build-with-ai.md.
> Units and Stellar pitfalls: https://docs.soroswap.finance/api/stellar-gotchas.md. Errors and retries: https://docs.soroswap.finance/api/errors.md.

# Bridge routes

> Mainnet only. Lists the bridge assets (USDC over CCTP V2, USDT over USDT0), each chain's id, kind, token, decimals and fastSource flag, and which destinations each source reaches. Use the chain ids as sourceChain and destinationChain.



## OpenAPI

````yaml GET /bridge/routes
openapi: 3.0.0
info:
  title: Soroswap API
  description: >+

    # 🚀 Soroswap API


    **Soroswap.Finance** is both an **Automated Market Maker (AMM)** and a **DEX
    Aggregator** on the Stellar blockchain.


    It aggregates liquidity from Soroban DEXes (**Soroswap, Phoenix, Aqua and
    Comet(TBA)**), and the **Stellar Classic DEX** — giving you **the best trade
    routes, liquidity tools, and real-time market data**.


    ---


    ## 📋 What You Can Do


    - 🔄 **Quote** – Get the best trade route between two assets with
    split-routing logic across AMMs and SDEX.  

    - 🧱 **Build** – Generate and simulate unsigned transactions (XDR) for swaps
    or liquidity actions.  

    - 🚀 **Send** – Submit signed transactions via Soroban RPC or Horizon.

    - ⚡ **Gasless Trustlines** – Use `gaslessTrustline` in `/quote` to open
    trustlines for users without requiring them to hold XLM or deal with
    trustline setup themselves.

    - 💰 **Platform Fees** – Add your own fee to user swaps with
    `platformFee`.  

    - 💧 **Liquidity** – Create LPs, add liquidity, remove liquidity.  

    - 💲 **Price** – Get real-time token prices.  

    - 🧠 **Pools** – View detailed pool information for Soroswap AMM.


    📮 **[Downnload the Postman Collection
    here](https://drive.google.com/drive/folders/1G-LQYE2EojPWP1CSuuS_tDb9vjYbFR6E?usp=drive_link)**


    ---


    ## 🔑 Authentication


    Send `Authorization: Bearer <credential>`: an API key (`sk_...`) or the JWT
    access token from `POST /login`. Each operation's `security` says whether it
    needs one; `security: []` means it is public.


    - **401**: no credential, or an invalid API key. The body says where to get
    a key, and `WWW-Authenticate` is set.

    - **403**: an expired or invalid JWT, or a valid credential without the
    required role.

    - `POST /send` answers **403** for any missing or invalid credential.

  version: '1.0'
  contact: {}
  x-logo:
    url: https://links.paltalabs.io/soroswap-full.svg
    backgroundColor: '#0e0e0e'
    altText: Soroswap Logo
    href: https://soroswap.finance
servers: []
security: []
tags: []
paths:
  /bridge/routes:
    get:
      tags:
        - Bridge
      summary: Bridge routes
      description: >-
        Chains and routes per asset: USDC over Circle CCTP V2, USDT over USDT0
        (LayerZero OFT).
      operationId: BridgeController_routes
      parameters:
        - name: network
          required: false
          in: query
          description: Mainnet only; testnet answers 400
          schema:
            enum:
              - testnet
              - mainnet
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BridgeRoutesResponse'
        '400':
          description: 'Testnet: the bridge is mainnet only'
        '401':
          description: >-
            No credential, an invalid API key, or a valid JWT of a disabled
            account. Except for the disabled account, the answer carries
            `WWW-Authenticate` and a `registerUrl`.
        '403':
          description: >-
            An expired or invalid JWT, or a valid credential without the
            required role.
      security:
        - bearer: []
components:
  schemas:
    BridgeRoutesResponse:
      type: object
      properties:
        assets:
          type: array
          items:
            $ref: '#/components/schemas/BridgeAssetRoutes'
      required:
        - assets
    BridgeAssetRoutes:
      type: object
      properties:
        asset:
          type: string
          enum:
            - USDC
            - USDT
        chains:
          type: array
          items:
            $ref: '#/components/schemas/BridgeRouteChain'
        routes:
          type: array
          items:
            $ref: '#/components/schemas/BridgeRouteSource'
      required:
        - asset
        - chains
        - routes
    BridgeRouteChain:
      type: object
      properties:
        id:
          type: string
          example: base
        name:
          type: string
          example: Base
        kind:
          type: string
          enum:
            - stellar
            - evm
            - solana
        cctpDomain:
          type: number
          example: 6
        lzEid:
          type: number
          example: 30600
        chainId:
          type: number
          example: 8453
        token:
          type: string
          description: 'Token contract: EVM address, Stellar SAC or Solana mint'
        decimals:
          type: number
          example: 6
        fastSource:
          type: boolean
          description: Fast Transfer available as a source
      required:
        - id
        - name
        - kind
        - token
        - decimals
        - fastSource
    BridgeRouteSource:
      type: object
      properties:
        source:
          type: string
          example: base
        destinations:
          type: array
          items:
            type: string
      required:
        - source
        - destinations
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.