{
  "openapi": "3.0.0",
  "info": {
    "title": "DeFi Meta-Aggregation REST API API",
    "description": "A REST API that allows pulling executable quotes for token swaps on Solana, with quotes sourced from multiple providers.",
    "version": "1.0.0",
    "contact": {
      "email": "support@titan.exchange",
      "url": "https://discord.gg/titanexchange"
    }
  },
  "servers": [
    {
      "url": "https://{quicknode_endpoint}",
      "description": "Your Quicknode endpoint",
      "variables": {
        "quicknode_endpoint": {
          "default": "your-endpoint.quiknode.pro",
          "description": "Your Quicknode endpoint URL"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "REST API",
      "description": "endpoints for the add-on"
    }
  ],
  "paths": {
    "/addon/1147/api/v1/quote/swap": {
      "get": {
        "summary": "Returns swap quotes with executable instructions and address lookup tables. The response body is MessagePack-encoded",
        "description": "Returns swap quotes with executable instructions and address lookup tables. The response body is MessagePack-encoded",
        "externalDocs": {
          "url": "https://titan-exchange.gitbook.io/titan/developer-doc/swap-api/reference/gateway/gateway-quote-swap"
        },
        "parameters": [
          {
            "name": "inputMint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "So11111111111111111111111111111111111111112"
          },
          {
            "name": "outputMint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "1000000000"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "tags": [
          "REST API"
        ]
      }
    },
    "/addon/1147/api/v1/quote/price": {
      "get": {
        "summary": "Returns a price quote without instructions or transaction data. Use it when you need to display prices without the overhead of building executable transactions. The Gateway equivalent of GetSwapPrice. The response body is MessagePack-encoded",
        "description": "Returns a price quote without instructions or transaction data. Use it when you need to display prices without the overhead of building executable transactions. The Gateway equivalent of GetSwapPrice. The response body is MessagePack-encoded",
        "externalDocs": {
          "url": "https://titan-exchange.gitbook.io/titan/developer-doc/swap-api/reference/gateway/gateway-quote-price"
        },
        "parameters": [
          {
            "name": "inputMint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "So11111111111111111111111111111111111111112"
          },
          {
            "name": "outputMint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "1000000000"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "tags": [
          "REST API"
        ]
      }
    },
    "/addon/1147/api/v1/venues": {
      "get": {
        "summary": "Returns the list of on-chain venues available for routing. Each label is a valid value for the dexes and excludeDexes query parameters on Quote Swap and Quote Price. The response body is MessagePack-encoded",
        "description": "Returns the list of on-chain venues available for routing. Each label is a valid value for the dexes and excludeDexes query parameters on Quote Swap and Quote Price. The response body is MessagePack-encoded",
        "externalDocs": {
          "url": "https://titan-exchange.gitbook.io/titan/developer-doc/swap-api/reference/gateway/gateway-info#venue"
        },
        "parameters": [
          {
            "name": "includeProgramIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "tags": [
          "REST API"
        ]
      }
    },
    "/addon/1147/api/v1/info": {
      "get": {
        "summary": "Returns server settings, protocol version, and configurable parameter bounds. The REST equivalent of GetInfo. Call it to read the defaults and limits you'll need when configuring swap requests. The response body is MessagePack-encoded",
        "description": "Returns server settings, protocol version, and configurable parameter bounds. The REST equivalent of GetInfo. Call it to read the defaults and limits you'll need when configuring swap requests. The response body is MessagePack-encoded",
        "externalDocs": {
          "url": "https://titan-exchange.gitbook.io/titan/developer-doc/swap-api/reference/gateway/gateway-info"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "tags": [
          "REST API"
        ]
      }
    },
    "/addon/1147/api/v1/providers": {
      "get": {
        "summary": "Returns the list of active quote providers. Each id is a valid value for the providers query parameter on Quote Swap. Each provider independently competes to deliver the best-priced route. The response body is MessagePack-encoded",
        "description": "Returns the list of active quote providers. Each id is a valid value for the providers query parameter on Quote Swap. Each provider independently competes to deliver the best-priced route. The response body is MessagePack-encoded",
        "externalDocs": {
          "url": "https://titan-exchange.gitbook.io/titan/developer-doc/swap-api/reference/gateway/gateway-info#providers"
        },
        "parameters": [
          {
            "name": "includeIcons",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "tags": [
          "REST API"
        ]
      }
    }
  },
  "externalDocs": {
    "description": "Support Documentation",
    "url": "https://discord.gg/titanexchange"
  }
}