Tesser Networks API

The Networks API from Tesser — 1 operation(s) for networks.

OpenAPI Specification

tesser-networks-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Tesser Accounts Networks API
  description: The Tesser Payments Platform API documentation.
  version: v1
  contact: {}
servers: []
security:
- bearer: []
tags:
- name: Networks
paths:
  /v1/networks:
    get:
      description: Retrieve list of all supported blockchain networks. Returns an object with a data array containing network key and display name.
      operationId: networks_getNetworks
      parameters: []
      responses:
        '200':
          description: Successfully retrieved available networks
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworksResponse'
              example:
                data:
                - key: BASE
                  name: Base
                - key: ETHEREUM
                  name: Ethereum
                - key: POLYGON
                  name: Polygon
        '401':
          description: Authentication required or invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        error_code:
                          type: string
                        error_message:
                          type: string
                      required:
                      - error_code
                      - error_message
                required:
                - errors
                example:
                  errors:
                  - error_code: api-0004
                    error_message: Unauthorized
      security:
      - bearer: []
      summary: Get available networks
      tags:
      - Networks
      x-zuplo-route:
        corsPolicy: anything-goes
        handler:
          export: forwardToBackend
          module: $import(./modules/forward-to-backend)
        policies:
          inbound:
          - set-backend-secret-inbound
          - auth0-jwt-auth-inbound
          - forward-user-info-inbound
components:
  schemas:
    NetworksResponse:
      type: object
      properties:
        data:
          items:
            type: object
            properties:
              key:
                type: string
                description: Network key/identifier (e.g., 'POLYGON', 'POLYGON_AMOY')
              name:
                type: string
                description: Display name for the network (e.g., 'Polygon')
            required:
            - key
            - name
          description: List of all supported networks
          type: array
      required:
      - data
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: "Enter your JWT token.\n\nTo obtain a token, make a request to Auth0:\n\n```bash\ncurl --request POST \\\n  --url https://dev-awqy75wdabpsnsvu.us.auth0.com/oauth/token \\\n  --header 'content-type: application/json' \\\n  --data '{\n    \"client_id\":\"YOUR_CLIENT_ID\",\n    \"client_secret\":\"YOUR_CLIENT_SECRET\",\n    \"audience\":\"https://sandbox.tesserx.co\",\n    \"grant_type\":\"client_credentials\"\n  }'\n```\n\nThe response will contain an `access_token` field which should be used as the Bearer token."