{
  "openapi": "3.0.3",
  "info": {
    "title": "Domain Reputation API: RDAP Lookup, DNS & DMARC Checker",
    "version": "1.0.1",
    "summary": "Domain reputation checker API with RDAP lookup, DNS, SPF and DMARC checks.",
    "description": "Real public data only: RDAP from the registry (via the IANA bootstrap), DNS over HTTPS (A, AAAA, MX, NS, TXT, CAA, DS), SPF and DMARC parsing, the homepage's HTTPS redirect and security headers, and deterministic, explained scores (risk, hygiene, investor heuristic). No AI, no guessing, no personal data: registrant names, emails and phones are never returned. Built by Lycorax Technologies.",
    "contact": {
      "name": "Lycorax Technologies",
      "email": "freejosephe@gmail.com"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://lycorax-domain-api.j0l30.workers.dev"
    }
  ],
  "security": [
    {
      "RapidAPIProxySecret": []
    },
    {
      "GatewayKey": []
    }
  ],
  "tags": [
    {
      "name": "Domain"
    },
    {
      "name": "Meta"
    }
  ],
  "paths": {
    "/v1/domain/check": {
      "get": {
        "tags": [
          "Domain"
        ],
        "operationId": "checkDomain",
        "summary": "Full domain reputation check",
        "description": "RDAP lookup + 8 DNS queries + SPF/DMARC/DNSSEC/CAA + homepage HTTPS and security headers + phishing/typosquat heuristics. Cached for 1 hour.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Registrable domain or URL (IDN allowed), e.g. example.com",
            "schema": {
              "type": "string",
              "maxLength": 300
            },
            "example": "wikipedia.org"
          },
          {
            "name": "brands",
            "in": "query",
            "required": false,
            "description": "Optional, comma separated (max 10): brand names to test this domain against for typosquats/homoglyphs, e.g. paypal,google. Used only for phishing_signals and echoed in brand_check; not stored.",
            "schema": {
              "type": "string",
              "maxLength": 450
            }
          },
          {
            "name": "owned",
            "in": "query",
            "required": false,
            "description": "Optional, comma separated (max 10): domains you own (paypal.com), URLs (https://www.paypal.com/) or brand names (paypal = every TLD with that exact name is yours). If the checked domain matches one, no brand alert is raised (brand_check.is_owned_domain = true). Not stored.",
            "schema": {
              "type": "string",
              "maxLength": 450
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Domain report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/domain/bulk": {
      "post": {
        "tags": [
          "Domain"
        ],
        "operationId": "bulkCheck",
        "summary": "Bulk check up to 10 domains (lite profile)",
        "description": "Per domain: RDAP (registrar, dates, status, nameservers, DNSSEC) + MX + SPF + DMARC + phishing heuristics + risk score. Duplicates and invalid inputs are reported, not charged by us.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "domains"
                ],
                "properties": {
                  "domains": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  },
                  "brands": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    }
                  },
                  "owned": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    }
                  }
                }
              },
              "example": {
                "domains": [
                  "example.com",
                  "wikipedia.org"
                ],
                "brands": [
                  "paypal"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Lite results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "413": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "415": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/domain/availability": {
      "get": {
        "tags": [
          "Domain"
        ],
        "operationId": "availability",
        "summary": "Domain availability across TLDs (RDAP)",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "Name without TLD, 1-63 letters, digits or hyphens",
            "schema": {
              "type": "string",
              "maxLength": 63
            },
            "example": "lycorax"
          },
          {
            "name": "tlds",
            "in": "query",
            "required": false,
            "description": "Comma separated, max 10. Default com,net,org,io,app",
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "example": "com,net,io"
          }
        ],
        "responses": {
          "200": {
            "description": "Availability per TLD",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Meta"
        ],
        "operationId": "health",
        "summary": "Health check (no auth)",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "Meta"
        ],
        "operationId": "openapi",
        "summary": "This OpenAPI document (no auth)",
        "security": [],
        "responses": {
          "200": {
            "description": "OpenAPI 3.1",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "RapidAPIProxySecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Proxy-Secret",
        "description": "Set by RapidAPI on every proxied call."
      },
      "GatewayKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Lycorax-Gateway-Key",
        "description": "Shared secret configured in the other marketplaces' gateways."
      }
    }
  }
}