{
  "components": {
    "callbacks": {},
    "examples": {},
    "headers": {},
    "links": {},
    "parameters": {},
    "pathItems": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {
      "Provider3F1A62754080_Address": {
        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
        "pattern": "^0x[a-fA-F0-9]{40}$",
        "type": "string"
      },
      "Provider3F1A62754080_SignatureParams": {
        "properties": {
          "baseGas": {
            "description": "Base gas",
            "example": "0",
            "type": "string"
          },
          "gasPrice": {
            "description": "Gas price",
            "example": "0",
            "type": "string"
          },
          "gasToken": {
            "$ref": "#/components/schemas/Provider3F1A62754080_Address"
          },
          "operation": {
            "description": "Operation type",
            "example": "0",
            "type": "string"
          },
          "refundReceiver": {
            "$ref": "#/components/schemas/Provider3F1A62754080_Address"
          },
          "safeTxnGas": {
            "description": "Safe transaction gas",
            "example": "0",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Provider3F1A62754080_SubmitRequest": {
        "properties": {
          "data": {
            "description": "Encoded transaction data (0x-prefixed hex string)",
            "example": "0x...",
            "type": "string"
          },
          "from": {
            "$ref": "#/components/schemas/Provider3F1A62754080_Address"
          },
          "nonce": {
            "description": "Transaction nonce",
            "example": "60",
            "type": "string"
          },
          "proxyWallet": {
            "$ref": "#/components/schemas/Provider3F1A62754080_Address"
          },
          "signature": {
            "description": "Transaction signature (0x-prefixed hex string)",
            "example": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
            "type": "string"
          },
          "signatureParams": {
            "$ref": "#/components/schemas/Provider3F1A62754080_SignatureParams"
          },
          "to": {
            "$ref": "#/components/schemas/Provider3F1A62754080_Address"
          },
          "type": {
            "description": "Transaction type",
            "enum": [
              "SAFE",
              "PROXY"
            ],
            "example": "SAFE",
            "type": "string"
          }
        },
        "required": [
          "from",
          "to",
          "proxyWallet",
          "data",
          "nonce",
          "signature",
          "signatureParams",
          "type"
        ],
        "type": "object"
      },
      "Response3F1A62754080_Address": {
        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
        "pattern": "^0x[a-fA-F0-9]{40}$",
        "type": "string"
      },
      "Response3F1A62754080_DeployedResponse": {
        "properties": {
          "deployed": {
            "description": "Whether the wallet is deployed",
            "example": true,
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Response3F1A62754080_NonceResponse": {
        "properties": {
          "nonce": {
            "description": "Current nonce value",
            "example": "31",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Response3F1A62754080_RelayPayloadResponse": {
        "properties": {
          "address": {
            "$ref": "#/components/schemas/Response3F1A62754080_Address"
          },
          "nonce": {
            "description": "Current nonce value",
            "example": "31",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Response3F1A62754080_RelayerApiKey": {
        "properties": {
          "address": {
            "$ref": "#/components/schemas/Response3F1A62754080_Address"
          },
          "apiKey": {
            "description": "The relayer API key",
            "example": "01967c03-b8c8-7000-8f68-8b8eaec6fd3d",
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp when the key was created",
            "example": "2026-02-24T18:20:11.237485Z",
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "description": "Timestamp when the key was last updated",
            "example": "2026-02-24T18:20:11.237485Z",
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Response3F1A62754080_RelayerTransaction": {
        "properties": {
          "createdAt": {
            "description": "Timestamp when the transaction was created",
            "example": "2024-07-14T21:13:08.819782Z",
            "format": "date-time",
            "type": "string"
          },
          "data": {
            "description": "Encoded transaction data (0x-prefixed hex string)",
            "example": "0x...",
            "type": "string"
          },
          "from": {
            "$ref": "#/components/schemas/Response3F1A62754080_Address"
          },
          "metadata": {
            "description": "Transaction metadata",
            "example": "",
            "type": "string"
          },
          "nonce": {
            "description": "Transaction nonce",
            "example": "60",
            "type": "string"
          },
          "owner": {
            "$ref": "#/components/schemas/Response3F1A62754080_Address"
          },
          "proxyAddress": {
            "$ref": "#/components/schemas/Response3F1A62754080_Address"
          },
          "signature": {
            "description": "Transaction signature (0x-prefixed hex string)",
            "example": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
            "type": "string"
          },
          "state": {
            "description": "Current state of the transaction",
            "enum": [
              "STATE_NEW",
              "STATE_EXECUTED",
              "STATE_MINED",
              "STATE_CONFIRMED",
              "STATE_INVALID",
              "STATE_FAILED"
            ],
            "example": "STATE_CONFIRMED",
            "type": "string"
          },
          "to": {
            "$ref": "#/components/schemas/Response3F1A62754080_Address"
          },
          "transactionHash": {
            "description": "Onchain transaction hash (available once confirmed)",
            "example": "0x38cbfbeae8fffa4e2b187ee5978d3ee9cafc53af0363ed90a35b7ea9016535d8",
            "type": "string"
          },
          "transactionID": {
            "description": "Unique identifier for the transaction",
            "example": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
            "type": "string"
          },
          "type": {
            "description": "Transaction type",
            "enum": [
              "SAFE",
              "PROXY"
            ],
            "example": "SAFE",
            "type": "string"
          },
          "updatedAt": {
            "description": "Timestamp when the transaction was last updated",
            "example": "2024-07-14T21:13:46.576639Z",
            "format": "date-time",
            "type": "string"
          },
          "value": {
            "description": "Transaction value",
            "example": "",
            "type": "string"
          }
        },
        "type": "object"
      },
      "RetainedHistory_Response0D96414269Ca_Address": {
        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
        "pattern": "^0x[a-fA-F0-9]{40}$",
        "type": "string"
      },
      "RetainedHistory_Response0D96414269Ca_RelayerTransaction": {
        "properties": {
          "createdAt": {
            "description": "Timestamp when the transaction was created",
            "example": "2024-07-14T21:13:08.819782Z",
            "format": "date-time",
            "type": "string"
          },
          "data": {
            "description": "Encoded transaction data (0x-prefixed hex string)",
            "example": "0x...",
            "type": "string"
          },
          "from": {
            "$ref": "#/components/schemas/RetainedHistory_Response0D96414269Ca_Address"
          },
          "metadata": {
            "description": "Transaction metadata",
            "example": "",
            "type": "string"
          },
          "nonce": {
            "description": "Transaction nonce",
            "example": "60",
            "type": "string"
          },
          "owner": {
            "$ref": "#/components/schemas/RetainedHistory_Response0D96414269Ca_Address"
          },
          "proxyAddress": {
            "$ref": "#/components/schemas/RetainedHistory_Response0D96414269Ca_Address"
          },
          "signature": {
            "description": "Transaction signature (0x-prefixed hex string)",
            "example": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
            "type": "string"
          },
          "state": {
            "description": "Current state of the transaction",
            "enum": [
              "STATE_NEW",
              "STATE_EXECUTED",
              "STATE_MINED",
              "STATE_CONFIRMED",
              "STATE_INVALID",
              "STATE_FAILED"
            ],
            "example": "STATE_CONFIRMED",
            "type": "string"
          },
          "to": {
            "$ref": "#/components/schemas/RetainedHistory_Response0D96414269Ca_Address"
          },
          "transactionHash": {
            "description": "Onchain transaction hash (available once confirmed)",
            "example": "0x38cbfbeae8fffa4e2b187ee5978d3ee9cafc53af0363ed90a35b7ea9016535d8",
            "type": "string"
          },
          "transactionID": {
            "description": "Unique identifier for the transaction",
            "example": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
            "type": "string"
          },
          "type": {
            "description": "Transaction type",
            "enum": [
              "SAFE",
              "PROXY"
            ],
            "example": "SAFE",
            "type": "string"
          },
          "updatedAt": {
            "description": "Timestamp when the transaction was last updated",
            "example": "2024-07-14T21:13:46.576639Z",
            "format": "date-time",
            "type": "string"
          },
          "value": {
            "description": "Transaction value",
            "example": "",
            "type": "string"
          }
        },
        "type": "object"
      },
      "RetainedHistory_Response0D96414269Ca_SubmitResponse": {
        "properties": {
          "state": {
            "description": "Current state of the transaction",
            "example": "STATE_NEW",
            "type": "string"
          },
          "transactionID": {
            "description": "Unique identifier for the submitted transaction",
            "example": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "",
    "title": "Polymarket Relayer",
    "version": "1",
    "x-aisa-capabilities": {
      "idempotency": "Idempotency-Key",
      "max_price": "X-AISA-Max-Price-USD",
      "quote": {
        "header": "X-AISA-Cost-Mode",
        "value": "quote"
      }
    },
    "x-aisa-catalogs": {
      "polymarket-relayer": {
        "description": "",
        "title": "Polymarket Relayer",
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        },
        "x-aisa-document": {
          "facts_hash": "6a8cddd39f2cef473352a59aaa6b3fe6c0058fb9df5c02362f168034643de17b",
          "generator_version": "3",
          "protocol_version": "1",
          "schema_version": "1"
        },
        "x-aisa-plans": {
          "builder": 1.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        }
      }
    },
    "x-aisa-configured-paths": [
      "/apis/v1/polymarket/deployed",
      "/apis/v1/polymarket/nonce",
      "/apis/v1/polymarket/relay-payload",
      "/apis/v1/polymarket/relayer/api/keys",
      "/apis/v1/polymarket/submit",
      "/apis/v1/polymarket/transaction",
      "/apis/v1/polymarket/transactions"
    ],
    "x-aisa-document": {
      "composer_version": "31",
      "document_hash": "sha256:cda42db9cdf4400a075bcae41e084ad4df6431f10167992dda46530d643b8f46",
      "facts_hash": "6a8cddd39f2cef473352a59aaa6b3fe6c0058fb9df5c02362f168034643de17b",
      "generator_version": "3",
      "protocol_version": "1",
      "response_pending": [],
      "schema_version": "1"
    },
    "x-aisa-plans": {
      "builder": 1.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "polymarket-relayer"
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "paths": {
    "/apis/v1/polymarket/deployed": {
      "get": {
        "description": "Returns whether the wallet at the given address is deployed onchain.\n\nUse the `type` query parameter to choose which wallet type to check:\n\n- Pass user's Polymarket `SAFE` address (default): Gnosis Safe (SignatureType `2`).\n- Pass user's Polymarket `WALLET` Deposit Wallet address: Deposit Wallet (signatureType `3`). See the [Deposit Wallet Guide](/trading/deposit-wallets) for setup.\n\nOmitting `type` is equivalent to `type=SAFE`.\n\nReturns a payload that determines if a safe is deployed. Takes in the user's Polymarket proxy address.",
        "operationId": "any_polymarket_relayer_apis_v1_polymarket_deployed",
        "parameters": [
          {
            "description": "Address of the wallet to check",
            "example": "0x6d8c4e9aDF5748Af82Dabe2C6225207770d6B4fa",
            "in": "query",
            "name": "address",
            "required": true,
            "schema": {
              "description": "Ethereum address (0x-prefixed, 40 hex chars)",
              "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          {
            "description": "Wallet type to check. Defaults to `SAFE` when omitted.",
            "example": "WALLET",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "default": "SAFE",
              "enum": [
                "SAFE",
                "WALLET"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "deployed": true
                },
                "schema": {
                  "$ref": "#/components/schemas/Response3F1A62754080_DeployedResponse"
                }
              }
            },
            "description": "Deployment status retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Check if a safe is deployed",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "polymarket-relayer",
        "x-aisa-category": "9",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-relayer/any_polymarket_relayer_apis_v1_polymarket_deployed",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.012,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:2d7a52506c1cead739126ff4c8ef65b4311ac35e91650e88e3e449a4655c9c70",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
            "converter": "scripts/import_upstream.py@4-relayer-address-example",
            "fetched_at": "2026-10-16T11:32:33.370290+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
            "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "026adf0467fa"
        },
        "x-aisa-runtime-operation": {
          "method": "GET",
          "operation_id": "any_polymarket_relayer_apis_v1_polymarket_deployed",
          "path": "/apis/v1/polymarket/deployed"
        },
        "x-aisa-source": {
          "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
          "converter": "scripts/import_upstream.py@4-relayer-address-example",
          "fetched_at": "2026-10-16T11:32:33.370290+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
          "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/deployed",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/polymarket/deployed?address=0x6d8c4e9aDF5748Af82Dabe2C6225207770d6B4fa&type=WALLET' \\\n  --header 'Authorization: Bearer <token>'"
          }
        ]
      }
    },
    "/apis/v1/polymarket/nonce": {
      "get": {
        "description": "Gets the current Proxy or Safe nonce for a user. Takes in the user's signer address and the type of nonce to retrieve.\n\nGets the current Proxy or Safe nonce for a user.",
        "operationId": "any_polymarket_relayer_apis_v1_polymarket_nonce",
        "parameters": [
          {
            "description": "User's signer address",
            "example": "0x77837466dd64fb52ECD00C737F060d0ff5CCB575",
            "in": "query",
            "name": "address",
            "required": true,
            "schema": {
              "description": "Ethereum address (0x-prefixed, 40 hex chars)",
              "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          {
            "description": "Type of nonce to retrieve",
            "example": "PROXY",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "PROXY",
                "SAFE"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "nonce": "31"
                },
                "schema": {
                  "$ref": "#/components/schemas/Response3F1A62754080_NonceResponse"
                }
              }
            },
            "description": "Nonce retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get current nonce for a user",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "polymarket-relayer",
        "x-aisa-category": "9",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-relayer/any_polymarket_relayer_apis_v1_polymarket_nonce",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.012,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:dd9e3c325acf675d23595db1d6d76c4b4898fb88115f5442a95987996e7187ea",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
            "converter": "scripts/import_upstream.py@4-relayer-address-example",
            "fetched_at": "2026-10-16T11:32:33.370290+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
            "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "507052e86dbd"
        },
        "x-aisa-runtime-operation": {
          "method": "GET",
          "operation_id": "any_polymarket_relayer_apis_v1_polymarket_nonce",
          "path": "/apis/v1/polymarket/nonce"
        },
        "x-aisa-source": {
          "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
          "converter": "scripts/import_upstream.py@4-relayer-address-example",
          "fetched_at": "2026-10-16T11:32:33.370290+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
          "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/nonce",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/polymarket/nonce?address=0x77837466dd64fb52ECD00C737F060d0ff5CCB575&type=PROXY' \\\n  --header 'Authorization: Bearer <token>'"
          }
        ]
      }
    },
    "/apis/v1/polymarket/relay-payload": {
      "get": {
        "description": "Fetches the relayer address and nonce for a specific user. Takes in the user's signer address and the type of nonce to retrieve.\n\nFetches the relayer address and nonce for a specific user.",
        "operationId": "any_polymarket_relayer_apis_v1_polymarket_relay_payload",
        "parameters": [
          {
            "description": "User's signer address",
            "example": "0x77837466dd64fb52ECD00C737F060d0ff5CCB575",
            "in": "query",
            "name": "address",
            "required": true,
            "schema": {
              "description": "Ethereum address (0x-prefixed, 40 hex chars)",
              "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          {
            "description": "Type of nonce to retrieve",
            "example": "PROXY",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "PROXY",
                "SAFE"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "address": "0x4da9395388791c22684e03779c3de10934eb9cfb",
                  "nonce": "31"
                },
                "schema": {
                  "$ref": "#/components/schemas/Response3F1A62754080_RelayPayloadResponse"
                }
              }
            },
            "description": "Relay payload retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get relayer address and nonce",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "polymarket-relayer",
        "x-aisa-category": "9",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-relayer/any_polymarket_relayer_apis_v1_polymarket_relay_payload",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.012,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:4ce422c249aea43067e089b1c4b67f2b8438a56f08e5c942011f0a2d57972296",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
            "converter": "scripts/import_upstream.py@4-relayer-address-example",
            "fetched_at": "2026-10-16T11:32:33.370290+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
            "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "c55bfb8e9dd5"
        },
        "x-aisa-runtime-operation": {
          "method": "GET",
          "operation_id": "any_polymarket_relayer_apis_v1_polymarket_relay_payload",
          "path": "/apis/v1/polymarket/relay-payload"
        },
        "x-aisa-source": {
          "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
          "converter": "scripts/import_upstream.py@4-relayer-address-example",
          "fetched_at": "2026-10-16T11:32:33.370290+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
          "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/relay-payload",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/polymarket/relay-payload?address=0x77837466dd64fb52ECD00C737F060d0ff5CCB575&type=PROXY' \\\n  --header 'Authorization: Bearer <token>'"
          }
        ]
      }
    },
    "/apis/v1/polymarket/relayer/api/keys": {
      "get": {
        "description": "Returns all relayer API keys for the authenticated address. Auth allowed: Gamma auth or Relayer API key auth (`RELAYER_API_KEY` + `RELAYER_API_KEY_ADDRESS`).\n\nReturns all relayer API keys for the authenticated address. Auth allowed: Gamma auth or Relayer API key auth (RELAYER_API_KEY and RELAYER_API_KEY_ADDRESS).",
        "operationId": "any_polymarket_relayer_apis_v1_polymarket_relayer_f3537f",
        "parameters": [
          {
            "description": "Relayer API key (when using relayer API key auth)",
            "in": "header",
            "name": "RELAYER_API_KEY",
            "required": true,
            "schema": {
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Address that owns the key (when using relayer API key auth). Must match the address that owns the key.",
            "in": "header",
            "name": "RELAYER_API_KEY_ADDRESS",
            "required": true,
            "schema": {
              "description": "Ethereum address (0x-prefixed, 40 hex chars)",
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": [
                  {
                    "address": "0xabc...",
                    "apiKey": "01967c03-b8c8-7000-8f68-8b8eaec6fd3d",
                    "createdAt": "2026-02-24T18:20:11.237485Z",
                    "updatedAt": "2026-02-24T18:20:11.237485Z"
                  }
                ],
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Response3F1A62754080_RelayerApiKey"
                  },
                  "type": "array"
                }
              }
            },
            "description": "API keys retrieved successfully. Returns an empty array if no keys exist for the authenticated address."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get all relayer API keys",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "polymarket-relayer",
        "x-aisa-category": "9",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-relayer/any_polymarket_relayer_apis_v1_polymarket_relayer_f3537f",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.012,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": false
        },
        "x-aisa-request-auth": {
          "credential_source": "caller_request_headers",
          "driver": "polymarket_relayer_key_list_caller_v1",
          "required_headers": [
            "RELAYER_API_KEY",
            "RELAYER_API_KEY_ADDRESS"
          ],
          "schema_version": 1,
          "scheme": "polymarket_relayer_api_key",
          "upstream_method": "GET",
          "upstream_origin_sha256": "afe99d91b534daadf725e74987c78b4e30eebe4bc3d476294ccaa92f9199339f",
          "upstream_path_sha256": "59a1102ac8bdabf174591240740793e865ccf27f1e638a8901df921b959d56b6"
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:1f4892d09caee437749885ac6c219de53e28f00e55ac2852759c3af04241d7c8",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
            "converter": "scripts/import_upstream.py@4-relayer-address-example",
            "fetched_at": "2026-10-16T11:32:33.370290+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
            "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "91d584e57b20"
        },
        "x-aisa-runtime-operation": {
          "method": "GET",
          "operation_id": "any_polymarket_relayer_apis_v1_polymarket_relayer_f3537f",
          "path": "/apis/v1/polymarket/relayer/api/keys"
        },
        "x-aisa-source": {
          "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
          "converter": "scripts/import_upstream.py@4-relayer-address-example",
          "fetched_at": "2026-10-16T11:32:33.370290+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
          "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/relayer/api/keys",
        "x-aisa-validation": "provider"
      }
    },
    "/apis/v1/polymarket/submit": {
      "post": {
        "description": "Submit a transaction request to the Relayer. Authenticated using Builder API Keys or Relayer API Keys. Returns immediately with the transactionID and a state of STATE_NEW. Poll GET /transaction with the returned transactionID to retrieve the transactionHash once broadcast.",
        "operationId": "any_polymarket_relayer_apis_v1_polymarket_submit",
        "parameters": [
          {
            "description": "Builder API key (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_API_KEY",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Builder passphrase (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_PASSPHRASE",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "HMAC-SHA256 signature (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_SIGNATURE",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unix timestamp (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_TIMESTAMP",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Relayer API key (when using Relayer API Key auth)",
            "in": "header",
            "name": "RELAYER_API_KEY",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Address that owns the key (when using Relayer API Key auth)",
            "in": "header",
            "name": "RELAYER_API_KEY_ADDRESS",
            "required": false,
            "schema": {
              "description": "Ethereum address (0x-prefixed, 40 hex chars)",
              "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "data": "0x...",
                "from": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                "nonce": "60",
                "proxyWallet": "0x6d8c4e9aDF5748Af82Dabe2C6225207770d6B4fa",
                "signature": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
                "signatureParams": {
                  "baseGas": "0",
                  "gasPrice": "0",
                  "gasToken": "0x0000000000000000000000000000000000000000",
                  "operation": "0",
                  "refundReceiver": "0x0000000000000000000000000000000000000000",
                  "safeTxnGas": "0"
                },
                "to": "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB",
                "type": "SAFE"
              },
              "schema": {
                "properties": {
                  "data": {
                    "description": "Encoded transaction data (0x-prefixed hex string)",
                    "example": "0x...",
                    "type": "string"
                  },
                  "from": {
                    "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                    "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "nonce": {
                    "description": "Transaction nonce",
                    "example": "60",
                    "type": "string"
                  },
                  "proxyWallet": {
                    "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                    "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "signature": {
                    "description": "Transaction signature (0x-prefixed hex string)",
                    "example": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
                    "type": "string"
                  },
                  "signatureParams": {
                    "properties": {
                      "baseGas": {
                        "description": "Base gas",
                        "example": "0",
                        "type": "string"
                      },
                      "gasPrice": {
                        "description": "Gas price",
                        "example": "0",
                        "type": "string"
                      },
                      "gasToken": {
                        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "operation": {
                        "description": "Operation type",
                        "example": "0",
                        "type": "string"
                      },
                      "refundReceiver": {
                        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "safeTxnGas": {
                        "description": "Safe transaction gas",
                        "example": "0",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "to": {
                    "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                    "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "type": {
                    "description": "Transaction type",
                    "enum": [
                      "SAFE",
                      "PROXY"
                    ],
                    "example": "SAFE",
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to",
                  "proxyWallet",
                  "data",
                  "nonce",
                  "signature",
                  "signatureParams",
                  "type"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "state": "STATE_NEW",
                  "transactionID": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620"
                },
                "schema": {
                  "properties": {
                    "state": {
                      "description": "Current state of the transaction",
                      "example": "STATE_NEW",
                      "type": "string"
                    },
                    "transactionID": {
                      "description": "Unique identifier for the submitted transaction",
                      "example": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Transaction submitted successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "security": [],
        "summary": "Submit a transaction",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD",
            "OPTIONS",
            "TRACE"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "polymarket-relayer",
        "x-aisa-category": "9",
        "x-aisa-contract-pending": "source header parameters are not forwarded by runtime: POLY_BUILDER_API_KEY, POLY_BUILDER_PASSPHRASE, POLY_BUILDER_SIGNATURE, POLY_BUILDER_TIMESTAMP, RELAYER_API_KEY, RELAYER_API_KEY_ADDRESS",
        "x-aisa-contract-state": "retained_pending",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-relayer/any_polymarket_relayer_apis_v1_polymarket_submit",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.012,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:c4bf6f36f46cad3c42f1595c83878442941d7a8b81f7842902db7b290fcd8e10",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
            "converter": "scripts/import_upstream.py@1",
            "fetched_at": "2026-09-29T15:09:49.609933+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "981a74d5cd84"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "any_polymarket_relayer_apis_v1_polymarket_submit",
          "path": "/apis/v1/polymarket/submit"
        },
        "x-aisa-source": {
          "content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
          "converter": "scripts/import_upstream.py@1",
          "fetched_at": "2026-09-29T15:09:49.609933+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
        },
        "x-aisa-status": "disabled",
        "x-aisa-upstream-path": "/submit",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request POST \\\n  --url https://api.aisa.one/apis/v1/polymarket/submit \\\n  --header 'Authorization: Bearer <token>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"from\": \"0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5\",\n  \"to\": \"0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB\",\n  \"proxyWallet\": \"0x6d8c4e9aDF5748Af82Dabe2C6225207770d6B4fa\",\n  \"data\": \"0x...\",\n  \"nonce\": \"60\",\n  \"signature\": \"0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20\",\n  \"signatureParams\": {\n    \"gasPrice\": \"0\",\n    \"operation\": \"0\",\n    \"safeTxnGas\": \"0\",\n    \"baseGas\": \"0\",\n    \"gasToken\": \"0x0000000000000000000000000000000000000000\",\n    \"refundReceiver\": \"0x0000000000000000000000000000000000000000\"\n  },\n  \"type\": \"SAFE\"\n}'"
          }
        ]
      }
    },
    "/apis/v1/polymarket/transaction": {
      "get": {
        "description": "Gets a transaction submitted to the Relayer. Takes in a required transaction ID as a query parameter.\n\nPoll this endpoint with the `transactionID` returned from `POST /submit` to retrieve the onchain `transactionHash` once the transaction has been broadcast.\n\nGets a transaction submitted to the Relayer. Poll this endpoint with the transactionID returned from POST /submit to retrieve the onchain transactionHash once the transaction has been broadcast.",
        "operationId": "any_polymarket_relayer_apis_v1_polymarket_transaction",
        "parameters": [
          {
            "description": "Transaction ID",
            "example": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": [
                  {
                    "createdAt": "2024-07-14T21:13:08.819782Z",
                    "data": "0x...",
                    "from": "0x6e0c80c90ea6c15917308f820eac91ce2724b5b5",
                    "metadata": "",
                    "nonce": "60",
                    "owner": "0x6e0c80c90ea6c15917308f820eac91ce2724b5b5",
                    "proxyAddress": "0x6d8c4e9adf5748af82dabe2c6225207770d6b4fa",
                    "signature": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
                    "state": "STATE_CONFIRMED",
                    "to": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
                    "transactionHash": "0x38cbfbeae8fffa4e2b187ee5978d3ee9cafc53af0363ed90a35b7ea9016535d8",
                    "transactionID": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
                    "type": "SAFE",
                    "updatedAt": "2024-07-14T21:13:46.576639Z",
                    "value": ""
                  }
                ],
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Response3F1A62754080_RelayerTransaction"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Transaction retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get a transaction by ID",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "polymarket-relayer",
        "x-aisa-category": "9",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-relayer/any_polymarket_relayer_apis_v1_polymarket_transaction",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.012,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:72c28775eba58173da50b32270e5e1a7d9f48eceb7b29ab48cccbfcd220be1ca",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
            "converter": "scripts/import_upstream.py@4-relayer-address-example",
            "fetched_at": "2026-10-16T11:32:33.370290+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
            "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "a9866e1ebdb0"
        },
        "x-aisa-runtime-operation": {
          "method": "GET",
          "operation_id": "any_polymarket_relayer_apis_v1_polymarket_transaction",
          "path": "/apis/v1/polymarket/transaction"
        },
        "x-aisa-source": {
          "content_hash": "sha256:4f1deeac8de60b5013b1a48de8963eee6b2dd2c4787df91b3f5ca1c5d3afe5f2",
          "converter": "scripts/import_upstream.py@4-relayer-address-example",
          "fetched_at": "2026-10-16T11:32:33.370290+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "upstream_content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
          "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/transaction",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/polymarket/transaction?id=0190b317-a1d3-7bec-9b91-eeb6dcd3a620' \\\n  --header 'Authorization: Bearer <token>'"
          }
        ]
      }
    },
    "/apis/v1/polymarket/transactions": {
      "get": {
        "description": "Gets the most recent transactions submitted to the Relayer, owned by a specific user. Authenticated using Builder API Keys or Relayer API Keys.",
        "operationId": "any_polymarket_relayer_apis_v1_polymarket_transactions",
        "parameters": [
          {
            "description": "Builder API key (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_API_KEY",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Builder passphrase (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_PASSPHRASE",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "HMAC-SHA256 signature (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_SIGNATURE",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unix timestamp (when using Builder API Key auth)",
            "in": "header",
            "name": "POLY_BUILDER_TIMESTAMP",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Relayer API key (when using Relayer API Key auth)",
            "in": "header",
            "name": "RELAYER_API_KEY",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Address that owns the key (when using Relayer API Key auth)",
            "in": "header",
            "name": "RELAYER_API_KEY_ADDRESS",
            "required": false,
            "schema": {
              "description": "Ethereum address (0x-prefixed, 40 hex chars)",
              "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": [
                  {
                    "createdAt": "2024-07-14T21:13:08.819782Z",
                    "data": "0x...",
                    "from": "0x6e0c80c90ea6c15917308f820eac91ce2724b5b5",
                    "metadata": "",
                    "nonce": "60",
                    "owner": "0x6e0c80c90ea6c15917308f820eac91ce2724b5b5",
                    "proxyAddress": "0x6d8c4e9adf5748af82dabe2c6225207770d6b4fa",
                    "signature": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
                    "state": "STATE_CONFIRMED",
                    "to": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
                    "transactionHash": "0x38cbfbeae8fffa4e2b187ee5978d3ee9cafc53af0363ed90a35b7ea9016535d8",
                    "transactionID": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
                    "type": "SAFE",
                    "updatedAt": "2024-07-14T21:13:46.576639Z",
                    "value": ""
                  },
                  {
                    "createdAt": "2024-07-12T15:32:08.254831Z",
                    "data": "0x...",
                    "from": "0x6e0c80c90ea6c15917308f820eac91ce2724b5b5",
                    "metadata": "",
                    "nonce": "58",
                    "owner": "0x6e0c80c90ea6c15917308f820eac91ce2724b5b5",
                    "proxyAddress": "0x6d8c4e9adf5748af82dabe2c6225207770d6b4fa",
                    "signature": "0x9d99a48b6552183dc44018dbbab0e196fa59511e5661b961416e93138870814f3c474367362524ccc6865a8558f2543cc8e1b2e7336e39e6cdb4ad6f09d0db6a20",
                    "state": "STATE_CONFIRMED",
                    "to": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
                    "transactionHash": "0x0b2ff276b65382fc5593cdd965168c878006684a7fc8d2d011eddeddccd87335",
                    "transactionID": "0190a792-b5be-7cad-9eae-9941f2b47ebf",
                    "type": "SAFE",
                    "updatedAt": "2024-07-12T15:32:45.265257Z",
                    "value": ""
                  }
                ],
                "schema": {
                  "items": {
                    "properties": {
                      "createdAt": {
                        "description": "Timestamp when the transaction was created",
                        "example": "2024-07-14T21:13:08.819782Z",
                        "format": "date-time",
                        "type": "string"
                      },
                      "data": {
                        "description": "Encoded transaction data (0x-prefixed hex string)",
                        "example": "0x...",
                        "type": "string"
                      },
                      "from": {
                        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "metadata": {
                        "description": "Transaction metadata",
                        "example": "",
                        "type": "string"
                      },
                      "nonce": {
                        "description": "Transaction nonce",
                        "example": "60",
                        "type": "string"
                      },
                      "owner": {
                        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "proxyAddress": {
                        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "signature": {
                        "description": "Transaction signature (0x-prefixed hex string)",
                        "example": "0x01a060c734d7bdf4adde50c4a7e574036b1f8b12890911bdd1c1cfdcd77502381b89fa8a47c36f62a0b9f1cdfee7b260fd8108536db9f6b2089c02637e7de9fc20",
                        "type": "string"
                      },
                      "state": {
                        "description": "Current state of the transaction",
                        "enum": [
                          "STATE_NEW",
                          "STATE_EXECUTED",
                          "STATE_MINED",
                          "STATE_CONFIRMED",
                          "STATE_INVALID",
                          "STATE_FAILED"
                        ],
                        "example": "STATE_CONFIRMED",
                        "type": "string"
                      },
                      "to": {
                        "description": "Ethereum address (0x-prefixed, 40 hex chars)",
                        "example": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string"
                      },
                      "transactionHash": {
                        "description": "Onchain transaction hash (available once confirmed)",
                        "example": "0x38cbfbeae8fffa4e2b187ee5978d3ee9cafc53af0363ed90a35b7ea9016535d8",
                        "type": "string"
                      },
                      "transactionID": {
                        "description": "Unique identifier for the transaction",
                        "example": "0190b317-a1d3-7bec-9b91-eeb6dcd3a620",
                        "type": "string"
                      },
                      "type": {
                        "description": "Transaction type",
                        "enum": [
                          "SAFE",
                          "PROXY"
                        ],
                        "example": "SAFE",
                        "type": "string"
                      },
                      "updatedAt": {
                        "description": "Timestamp when the transaction was last updated",
                        "example": "2024-07-14T21:13:46.576639Z",
                        "format": "date-time",
                        "type": "string"
                      },
                      "value": {
                        "description": "Transaction value",
                        "example": "",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Transactions retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "security": [],
        "summary": "Get recent transactions for a user",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD",
            "OPTIONS",
            "TRACE"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "polymarket-relayer",
        "x-aisa-category": "9",
        "x-aisa-contract-pending": "source header parameters are not forwarded by runtime: POLY_BUILDER_API_KEY, POLY_BUILDER_PASSPHRASE, POLY_BUILDER_SIGNATURE, POLY_BUILDER_TIMESTAMP, RELAYER_API_KEY, RELAYER_API_KEY_ADDRESS",
        "x-aisa-contract-state": "retained_pending",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/polymarket-relayer/any_polymarket_relayer_apis_v1_polymarket_transactions",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.012,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:325afdacc1e89fcc682277fc9a1509198f1c3665d6b2d4c427885a689c2531bc",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
            "converter": "scripts/import_upstream.py@1",
            "fetched_at": "2026-09-29T15:09:49.609933+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "4ac6db68e88d",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "1e23152abbb3"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "any_polymarket_relayer_apis_v1_polymarket_transactions",
          "path": "/apis/v1/polymarket/transactions"
        },
        "x-aisa-source": {
          "content_hash": "sha256:59d10ecc3fa13a67de2843e861b5f9517c4da1b84484075c9e22dc8da3a42fb6",
          "converter": "scripts/import_upstream.py@1",
          "fetched_at": "2026-09-29T15:09:49.609933+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:c0a7ef85d4b9b36cfb5a7eff00b9fdf90e0b76ec76b6b5459069cbef00b80561",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "url": "https://docs.polymarket.com/api-spec/relayer-openapi.yaml"
        },
        "x-aisa-status": "disabled",
        "x-aisa-upstream-path": "/transactions",
        "x-aisa-validation": "provider"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ]
}
