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

# Get Connections

> Retrieves active token connections for one source/destination network corridor. Each token contains its symbol and network-specific address; address is null when the token has neither a contract nor a canonical native-token identifier. Each connection is the Cartesian product of its source_tokens and destination_tokens arrays. Set include_swaps=true to include paths containing a token-swap hop.



## OpenAPI

````yaml https://api.layerswap.io/swagger/v2/swagger.json get /api/v2/connections
openapi: 3.0.1
info:
  title: Layerswap API V2
  version: v2
servers:
  - url: https://api.layerswap.io
    description: Mainnet
security:
  - X-LS-APIKEY: []
paths:
  /api/v2/connections:
    get:
      tags:
        - Swaps
      summary: Get Connections
      description: >-
        Retrieves active token connections for one source/destination network
        corridor. Each token contains its symbol and network-specific address;
        address is null when the token has neither a contract nor a canonical
        native-token identifier. Each connection is the Cartesian product of its
        source_tokens and destination_tokens arrays. Set include_swaps=true to
        include paths containing a token-swap hop.
      parameters:
        - name: source_network
          in: query
          required: true
          schema:
            type: string
          examples:
            Ethereum Mainnet:
              value: ETHEREUM_MAINNET
            Arbitrum Mainnet:
              value: ARBITRUM_MAINNET
            Optimism Mainnet:
              value: OPTIMISM_MAINNET
            BSC Mainnet:
              value: BSC_MAINNET
            Starknet Mainnet:
              value: STARKNET_MAINNET
            Solana Mainnet:
              value: SOLANA_MAINNET
        - name: destination_network
          in: query
          required: true
          schema:
            type: string
          examples:
            Ethereum Mainnet:
              value: ETHEREUM_MAINNET
            Arbitrum Mainnet:
              value: ARBITRUM_MAINNET
            Optimism Mainnet:
              value: OPTIMISM_MAINNET
            BSC Mainnet:
              value: BSC_MAINNET
            Starknet Mainnet:
              value: STARKNET_MAINNET
            Solana Mainnet:
              value: SOLANA_MAINNET
        - name: include_swaps
          in: query
          schema:
            type: boolean
        - name: X-LS-APIKEY
          in: header
          schema:
            type: string
            default: >-
              NDBxG+aon6WlbgIA2LfwmcbLU52qUL9qTnztTuTRPNSohf/VnxXpRaJlA5uLSQVqP8YGIiy/0mz+mMeZhLY4/Q
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseSupportedRoutesModel'
components:
  schemas:
    ApiResponseSupportedRoutesModel:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
        data:
          $ref: '#/components/schemas/SupportedRoutesModel'
      additionalProperties: false
    ApiError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        metadata:
          type: object
          additionalProperties: {}
      additionalProperties: false
    SupportedRoutesModel:
      type: object
      properties:
        source_network:
          type: string
        destination_network:
          type: string
        connections:
          type: array
          items:
            $ref: '#/components/schemas/SupportedRouteConnectionModel'
      additionalProperties: false
    SupportedRouteConnectionModel:
      type: object
      properties:
        destination_tokens:
          type: array
          items:
            $ref: '#/components/schemas/SupportedRouteTokenModel'
        source_tokens:
          type: array
          items:
            $ref: '#/components/schemas/SupportedRouteTokenModel'
      additionalProperties: false
    SupportedRouteTokenModel:
      type: object
      properties:
        symbol:
          type: string
        address:
          type: string
          nullable: true
      additionalProperties: false
  securitySchemes:
    X-LS-APIKEY:
      type: apiKey
      name: X-LS-APIKEY
      in: header

````