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

# List tokens



## OpenAPI

````yaml /api-reference/openapi.json get /v1/external/tokens
openapi: 3.0.0
info:
  title: SpacePay External API
  description: Merchant-facing SpacePay API endpoints.
  version: '1.0'
servers:
  - url: https://api.spacepay.solutions
    description: Mainnet
  - url: https://api-testnet.spacepay.solutions
    description: Testnet
security: []
tags:
  - name: External - Token Registry (Public)
  - name: External - Payments (Secret Key)
  - name: External - Withdrawals (Secret Key)
  - name: External - Wallet (Secret Key)
paths:
  /v1/external/tokens:
    get:
      tags:
        - External - Token Registry (Public)
      summary: List tokens
      operationId: ExternalTokensController_getAllTokens
      parameters:
        - name: chainId
          required: false
          in: query
          description: Filter by CAIP-2 chain id
          schema:
            maxLength: 41
            example: eip155:1
            type: string
        - name: symbol
          required: false
          in: query
          description: Filter by token symbol (case-insensitive)
          schema:
            example: USDC
            type: string
        - name: contractAddress
          required: false
          in: query
          description: Filter by contract address (case-insensitive)
          schema:
            example: '0xa0b86a33e6441b8c4c8c0c0c0c0c0c0c0c0c0c0'
            type: string
        - name: assetType
          required: false
          in: query
          description: Filter by asset type
          schema:
            example: erc20
            type: string
            enum:
              - native
              - erc20
        - name: tokenType
          required: false
          in: query
          description: Filter by token type
          schema:
            example: stablecoin
            type: string
            enum:
              - stablecoin
              - volatile
        - name: limit
          required: false
          in: query
          description: Number of items to return
          schema:
            minimum: 1
            maximum: 1000
            default: 100
            example: 50
            type: number
        - name: offset
          required: false
          in: query
          description: Number of items to skip
          schema:
            minimum: 0
            default: 0
            example: 0
            type: number
      responses:
        '200':
          description: Tokens retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTokenDtoResult'
components:
  schemas:
    PaginatedTokenDtoResult:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TokenDto'
        pagination:
          $ref: '#/components/schemas/PaginationMetaDto'
      required:
        - data
        - pagination
    TokenDto:
      type: object
      properties:
        id:
          type: string
          description: Token ID
          example: 123e4567-e89b-12d3-a456-426614174000
        coingeckoApiId:
          type: string
          description: Coingecko API ID
          example: ethereum
        chain:
          description: Chain information
          allOf:
            - $ref: '#/components/schemas/ChainDto'
        symbol:
          type: string
          description: Token symbol
          example: USDC
        contractAddress:
          type: string
          description: Token contract address (lowercase)
          example: '0xa0b86a33e6441b8c4c8c0c0c0c0c0c0c0c0c0c0'
        decimals:
          type: number
          description: Token decimals
          example: 6
        type:
          enum:
            - stablecoin
            - volatile
          type: string
          description: Token type
          example: stablecoin
        assetType:
          enum:
            - native
            - erc20
          type: string
          description: Token asset type
          example: native
        status:
          enum:
            - active
            - deprecated
            - blocked
          type: string
          description: Token status
          example: active
        tokenPriceUsd:
          type: number
          nullable: true
          description: Token price in USD
          example: 1
      required:
        - id
        - coingeckoApiId
        - chain
        - symbol
        - contractAddress
        - decimals
        - type
        - assetType
        - status
        - tokenPriceUsd
    PaginationMetaDto:
      type: object
      properties:
        total:
          type: number
        limit:
          type: number
        offset:
          type: number
        hasMore:
          type: boolean
        totalPages:
          type: number
        currentPage:
          type: number
      required:
        - total
        - limit
        - offset
        - hasMore
        - totalPages
        - currentPage
    ChainDto:
      type: object
      properties:
        chainId:
          type: string
          description: CAIP-2 chain id
          example: eip155:1
        name:
          type: string
          description: Chain name
          example: Ethereum
        nativeSymbol:
          type: string
          description: Native token symbol
          example: ETH
        nativeDecimals:
          type: number
          description: Native token decimals
          example: 18
        isEnabled:
          type: boolean
          description: Whether the chain is enabled
          example: true
        isTestnet:
          type: boolean
          description: Whether the chain is a testnet
          example: false
      required:
        - chainId
        - name
        - nativeSymbol
        - nativeDecimals
        - isEnabled
        - isTestnet

````