{
  "openapi": "3.1.0",
  "info": {
    "title": "GetCryptoDomains Inventory, Reports & MCP API",
    "version": "1.1",
    "description": "Source-audited site API. Public reads require no login. Paid report retrieval requires an owner-scoped account bearer token and confirmed payment. The former marketplace page is retired; read-only inventory remains available. Report checkout and AI appraisals use internal authenticated server functions, not public REST endpoints."
  },
  "servers": [
    {
      "url": "https://getcryptodomains.com"
    }
  ],
  "externalDocs": {
    "url": "https://getcryptodomains.com/llms-full.txt"
  },
  "tags": [
    {
      "name": "Discovery"
    },
    {
      "name": "Reports"
    },
    {
      "name": "MCP",
      "description": "Streamable HTTP MCP transport; use an MCP client for session negotiation and protocol headers."
    },
    {
      "name": "Retired"
    },
    {
      "name": "Transport"
    }
  ],
  "paths": {
    "/api/public/v1/listings": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "listDomains",
        "summary": "Public DNS inventory and asking prices",
        "description": "Owner-supplied inventory, not verified ownership. Preserves legacy price-estimate fields; no purchase execution.",
        "responses": {
          "200": {
            "description": "Inventory and terms",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "tags": [
          "Transport"
        ],
        "responses": {
          "204": {
            "description": "No content. Allows GET and OPTIONS with Content-Type; origin *."
          }
        }
      }
    },
    "/api/public/v1/check": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "checkDomain",
        "summary": "Inventory and RDAP registration estimate",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 253,
              "example": "flashloan.click"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "for_sale | registered | likely_available | unknown. Unknown is not available; no reservation or price guarantee.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid domain",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "tags": [
          "Transport"
        ],
        "responses": {
          "204": {
            "description": "No content. Allows GET and OPTIONS with Content-Type; origin *."
          }
        }
      }
    },
    "/api/public/v1/compare": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "compareDomains",
        "summary": "Comparison facts for one to five .botid labels",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "minItems": 1,
              "maxItems": 5,
              "items": {
                "type": "string",
                "maxLength": 253,
                "example": "flashloan.click"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Name lengths, asking prices, legacy brokerage estimates and unverified risk flags",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Provide one to five valid .botid labels using repeated domain parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "tags": [
          "Transport"
        ],
        "responses": {
          "204": {
            "description": "No content. Allows GET and OPTIONS with Content-Type; origin *."
          }
        }
      }
    },
    "/api/public/v1/suggestions": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "registrationIdeas",
        "summary": "Crypto DNS naming ideas and registrar search links",
        "responses": {
          "200": {
            "description": "Ideas only; availability and current prices are not verified",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "tags": [
          "Transport"
        ],
        "responses": {
          "204": {
            "description": "No content. Allows GET and OPTIONS with Content-Type; origin *."
          }
        }
      }
    },
    "/api/public/v1/services": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "listServices",
        "summary": "Service catalog, pricing and account requirements",
        "responses": {
          "200": {
            "description": "The public catalog includes free discovery, a separate $5 one-time report and metered prepaid agent API access. Per-tool prepaid rates are not published in the external specification; confirm current rates in the secure billing portal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "tags": [
          "Transport"
        ],
        "responses": {
          "204": {
            "description": "No content. Allows GET and OPTIONS with Content-Type; origin *."
          }
        }
      }
    },
    "/api/public/v1/names": {
      "get": {
        "tags": [
          "Retired"
        ],
        "deprecated": true,
        "operationId": "retiredClickNames",
        "summary": "Retired on-chain .click lookup — always 410",
        "description": "This legacy route is not the live Base .botid registry. Use the external research API botid_lookup and botid_price tools for .botid.",
        "responses": {
          "410": {
            "description": "On-chain naming is paused. Use /api/public/v1/listings for DNS domains.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "options": {
        "summary": "CORS preflight",
        "tags": [
          "Transport"
        ],
        "responses": {
          "204": {
            "description": "No content. Allows GET and OPTIONS with Content-Type; origin *."
          }
        }
      }
    },
    "/api/v1/research": {
      "get": {
        "tags": [
          "Reports"
        ],
        "operationId": "readPaidComparison",
        "summary": "Retrieve a confirmed paid report owned by the account",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "order_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Private rule-based comparison report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            },
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                },
                "description": "Private reports must not be cached"
              }
            }
          },
          "400": {
            "description": "Valid order_id required",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "Valid account bearer token required",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "No report owned by this account with confirmed ETH payment",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "Account service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "tags": [
          "MCP"
        ],
        "operationId": "mcpRequest",
        "summary": "Public MCP JSON-RPC discovery and tool calls",
        "description": "Tools: list_domains, check_domain, compare_domains, registration_ideas, list_services. Protocol transport, not a domain transaction API. Send Accept: application/json, text/event-stream. An MCP client handles protocol version, initialization, session headers and any negotiated authorization.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "examples": [
                      "initialize",
                      "tools/list",
                      "tools/call"
                    ]
                  },
                  "params": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/list",
                "params": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC result or event stream, negotiated by MCP transport",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "description": "Notification accepted when supported by transport"
          },
          "default": {
            "description": "Protocol, negotiation or authorization error from the MCP handler",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "MCP"
        ],
        "operationId": "mcpStream",
        "summary": "MCP streaming transport negotiation",
        "description": "Use an MCP-compatible client; support and session requirements are determined by the generated MCP handler.",
        "responses": {
          "default": {
            "description": "MCP stream or transport-specific response"
          }
        }
      },
      "delete": {
        "tags": [
          "MCP"
        ],
        "operationId": "mcpEndSession",
        "summary": "MCP session termination negotiation",
        "description": "Session lifecycle is managed by the generated MCP handler; stateless transports may reject session deletion.",
        "responses": {
          "default": {
            "description": "Transport-specific session lifecycle response"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Account token for owner-scoped report retrieval. Never paste in chat."
      }
    }
  }
}