GMX

GMX Relay API

The Relay API from GMX — 2 operation(s) for relay.

Operations 2

POST /relay/submit Submit #
POST /relay/status Status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gmx:gmx-relay-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gmx-relay-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: '@gmx-io/gmx-public-api Relay API'
  version: 1.0.0
  license:
    name: Copyright
  contact: {}
servers:
- url: /v1
tags:
- name: Relay
paths:
  /relay/submit:
    post:
      operationId: Submit
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelaySubmitResponse'
        '400':
          description: Bad Request
        '429':
          description: Too Many Requests
        '503':
          description: Relay Unavailable
      tags:
      - Relay
      security: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelaySubmitRequest'
      summary: Submit
      x-summary-source: derived
  /relay/status:
    post:
      operationId: Status
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayStatusResponse'
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '429':
          description: Too Many Requests
        '503':
          description: Relay Unavailable
      tags:
      - Relay
      security: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelayStatusRequest'
      summary: Status
      x-summary-source: derived
components:
  schemas:
    RelayStatusRequest:
      properties:
        taskId:
          type: string
      required:
      - taskId
      type: object
    RelaySubmitRequest:
      properties:
        data:
          type: string
          description: Bare relay-router calldata, including the user's EIP-712 signature, with nothing appended.
        to:
          type: string
      required:
      - data
      - to
      type: object
    RelayDebugResponse:
      properties:
        tenderlyUrl:
          type: string
        calldata:
          type: string
        errorData:
          type:
          - string
          - 'null'
        errorCode:
          type:
          - string
          - 'null'
        blockNumber:
          type:
          - number
          - 'null'
          format: double
        account:
          type: string
        operationType:
          type: string
        to:
          type: string
        from:
          type:
          - string
          - 'null'
        chainId:
          type: number
          format: double
      type: object
    RelayStatus:
      type: string
      enum:
      - pending
      - executed
      - reverted
      - failed
      - unknown
      description: Lifecycle of a relay operation as reported by GMX Relay.
    RelayStatusResponse:
      properties:
        debug:
          $ref: '#/components/schemas/RelayDebugResponse'
          description: 'The keeper''s reproduction data, tenderly link included. A taskId is an unguessable capability:

            whoever holds it may read the operation it names.'
        revertData:
          type: string
          description: Raw revert bytes when the chain produced any — public on-chain data the client can decode.
        reason:
          type: string
          description: Failure detail when the relay has one; absent while the operation is in flight.
        txHash:
          type: string
        status:
          $ref: '#/components/schemas/RelayStatus'
        taskId:
          type: string
      required:
      - status
      - taskId
      type: object
    RelaySubmitResponse:
      properties:
        status:
          $ref: '#/components/schemas/RelayStatus'
        taskId:
          type: string
      required:
      - status
      - taskId
      type: object