{
  "openapi": "3.0.3",
  "info": {
    "title": "SavvyIQ API",
    "version": "2026-08-05",
    "description": "The SavvyIQ API resolves business identity. Give it a name or a domain; get back a stable\nentity ID anchored to a government registration, plus the record we hold for that company.\n\n### How the endpoints fit together\n\nTwo entry points resolve an identity; one endpoint returns the record.\n\n| You have | Call | You get |\n| --- | --- | --- |\n| A company name | `POST /v3/entity-resolution/async`, then `GET /v3/runs/{run_id}` | A `siq_` entity ID |\n| A domain | `GET /v3/domain-intelligence` | A `siq_` entity ID, plus what the domain is |\n| A `siq_` entity ID | `GET /v3/entities/{id}` | The full record |\n\nResolve once, store the `siq_` ID, and read the record from `/v3/entities/{id}` from then on.\nIDs are stable.\n\nFrom a resolved ID, ultimate parent research traces ownership upward under Entity hierarchy.\nEntity search and the MCP server for AI agents round out the surface.\n\n### One entity shape\n\nThe three record endpoints serve the same identity core: `legal_name` and `display_name`,\n`status`, `description`, `website`, `headquarters`, typed `identifiers[]`, and\n`primary_legal_entity`, the government registration that anchors the record.\n\nThey differ only in how much they add on top. Entity resolution adds `facets`\n(ownership and legal form) and scheme-keyed industry codes under `industry.schemes`.\n`/v3/entities/{id}` adds those plus the enrichment: firmographics, classification labels,\noperational footprint, social profiles. `/v3/domain-intelligence` serves the identity core\nalone, next to everything it knows about the domain itself.\n",
    "contact": {
      "name": "SavvyIQ",
      "url": "https://savvyiq.ai",
      "email": "help@savvyiq.ai"
    }
  },
  "servers": [
    {
      "url": "https://api.savvyiq.ai"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Entity Resolution",
      "description": "Resolve a company name to a canonical entity. Research runs asynchronously: kick off a job,\nthen poll for the result.\n"
    },
    {
      "name": "Entity Record",
      "description": "Read the full record for an entity ID. Never blocks: serves what exists now and builds\nmissing enrichment in the background.\n"
    },
    {
      "name": "Domain Intelligence",
      "description": "Resolve a domain to the business behind it, along with the domain's own signals: what kind\nof site it is, how it relates to that business, its industry breakdown, and reachability.\n"
    },
    {
      "name": "Codes & enums",
      "description": "Closed vocabularies used across `/v3` responses. Values may be **added** in a minor version.\nWithin a major version no value is removed or redefined. Tolerate values you do not\nrecognise.\n\n## Resolution status\n\n<ul class=\"code-grid\"><li>matched</li><li>partial_match</li><li>inconclusive</li><li>no_match</li><li>not_found</li><li>pending</li><li>merged</li></ul>\n\n## Entity status\n\n`null` when unknown.\n\n<ul class=\"code-grid\"><li>active</li><li>inactive</li></ul>\n\n## Enrichment status\n\nOn `enrichment.status`, and on the top-level `status` of a domain lookup.\n\n<ul class=\"code-grid\"><li>pending</li><li>building</li><li>refreshing</li><li>complete</li><li>failed</li></ul>\n\n## Entity type\n\n`type`\n\n<ul class=\"code-grid\"><li>business</li><li>nonprofit</li><li>government</li><li>person</li><li>other</li><li>unknown</li></ul>\n\n`subtype`\n\n<ul class=\"code-grid\"><li>incorporated_entity</li><li>unincorporated_entity</li><li>nonprofit_entity</li><li>government_entity</li><li>natural_person</li><li>complex_business_structure</li><li>trading_name_only</li><li>other_entity</li><li>unknown</li></ul>\n\n## Facets\n\n`facets` describes ownership and legal form, not industry. Industry codes live under\n`industry.schemes`.\n\n`sector`\n\n<ul class=\"code-grid\"><li>private</li><li>public</li><li>government</li><li>nonprofit</li></ul>\n\n`legal_form`. `corporation` is the generic incorporated form. `c_corp` and `s_corp` are used\nonly when a source states the election explicitly.\n\n<ul class=\"code-grid\"><li>llc</li><li>corporation</li><li>c_corp</li><li>s_corp</li><li>lp</li><li>llp</li><li>gp</li><li>sole_proprietorship</li><li>nonprofit_corp</li><li>pllc</li><li>pc</li><li>cooperative</li><li>municipal_agency</li><li>government_entity</li><li>trust</li><li>unknown</li></ul>\n\n## Business model axes\n\nOn `classification`, ordered most-material-first. Index 0 is the dominant value, so group on\nit rather than exploding the array. `[]` means undetermined. `market_segments` returns at\nmost two values and `revenue_models` at most three. `b2b2c` is never returned alongside\n`b2b` or `b2c`. Both axes describe the resource that returns them: a domain describes that\ndomain's motion, an entity describes the whole company.\n\n`market_segments`\n\n<ul class=\"code-grid\"><li>b2b</li><li>b2c</li><li>b2g</li><li>b2b2c</li></ul>\n\n`revenue_models`\n\n<ul class=\"code-grid\"><li>subscription</li><li>usage_based</li><li>transaction_fee</li><li>marketplace</li><li>product_sales</li><li>services</li><li>advertising</li><li>licensing</li><li>lending_and_deposits</li><li>insurance_premium</li><li>leasing_rental</li><li>grants_donations</li></ul>\n\n## Industry schemes\n\n`industry.schemes` is keyed by scheme: `naics_2022` and `sic`. A scheme that was not\nclassified is absent, and an empty key is never returned. Within a scheme, the primary code\ncomes first.\n\n## Identifier types\n\nReturned in this order, canonicalized per type.\n\n| Type | Format |\n| --- | --- |\n| `registration_id` | As issued by the registry, with the issuing `jurisdiction` |\n| `cik` | Zero-padded to 10 digits |\n| `lei` | 20 alphanumerics |\n| `bic` | 8 or 11 characters |\n| `ein` | `##-#######` |\n| `duns` | 9 bare digits |\n| `ticker` | Uppercase symbol |\n\n## Basis provenance\n\nWith `include=basis`, each entry's `confidence` is `high`, `medium` or `low`, and every\ncitation carries a `source_type` and an `authority_tier`.\n\n| `source_type` | `authority_tier` |\n| --- | --- |\n| `government_registry` | 1 |\n| `public_profile` | 2 |\n| `company_website` | 3 |\n| `web` | 3 |\n\n## Factor codes\n\n`factors[]` entries have a `type` of `strength` or `limitation` and a stable `code`. Each\nentry also carries its own `description` and `impact`, so you rarely need to map codes\nyourself. `other` is the escape hatch on both lists.\n\nStrengths\n\n<ul class=\"code-grid\"><li>name_exact_match</li><li>name_close_match</li><li>location_confirmed</li><li>jurisdiction_match</li><li>industry_match</li><li>registration_number_match</li><li>multiple_sources_corroboration</li><li>legal_entity_confirmed</li><li>headquarters_match</li><li>foreign_branch_match</li><li>branch_vs_subsidiary_clarity</li><li>legal_registration_verified</li><li>registry_identifier_anchored</li><li>legal_entity_confirmed_on_website</li><li>domain_content_matches_entity</li><li>consistent_entity_references</li><li>current_ownership_verified</li><li>website_official_status</li><li>authoritative_legal_documentation</li></ul>\n\nLimitations\n\n<ul class=\"code-grid\"><li>no_location_provided</li><li>location_mismatch</li><li>multiple_potential_entities</li><li>name_too_generic</li><li>name_mismatch</li><li>numeric_identifier_only</li><li>insufficient_data</li><li>max_iterations_reached</li><li>no_legal_entity_confirmed</li><li>unsupported_entity_type</li><li>limited_entity_type_support</li><li>parent_entity_confusion</li><li>jurisdiction_mismatch</li><li>no_branch_registration_found</li><li>separate_legal_entities</li><li>product_vs_company</li><li>brand_vs_legal_entity_confusion</li><li>no_legal_entity_on_website</li><li>limited_domain_information</li><li>multiple_entities_mentioned</li><li>domain_ownership_changed</li><li>conflicting_ownership_info</li><li>domain_parked_or_inactive</li><li>entity_merged_redirect</li><li>reasoning_degraded</li></ul>\n\n## Action codes\n\n`actions[]` suggests how to sharpen an ambiguous query.\n\n<ul class=\"code-grid\"><li>add_location</li><li>clarify_name</li><li>provide_full_legal_name</li><li>specify_entity_relationship</li><li>specify_identifier_type</li><li>include_industry_context</li><li>search_for_parent_company</li><li>include_entity_name</li><li>add_jurisdiction</li></ul>\n\n## Domain context\n\n`domain_type`\n\n<ul class=\"code-grid\"><li>corporate_website</li><li>infrastructure</li><li>service_platform</li><li>email_domain</li><li>api_endpoint</li><li>cdn_domain</li><li>subdomain</li><li>parked_domain</li><li>personal_site</li><li>content_platform</li><li>placeholder_page</li><li>non_business</li><li>other</li></ul>\n\n`domain_relationship`\n\n<ul class=\"code-grid\"><li>direct_owner</li><li>parent_company</li><li>infrastructure_provider</li><li>service_provider</li><li>email_provider</li><li>platform_provider</li></ul>\n"
    },
    {
      "name": "Entity hierarchy",
      "description": "AI-researched corporate structure, upward. **Ultimate parent** answers who controls an entity: ownership chains up to the ultimate controlling entity, with evidence sources. Runs typically complete in 10-20 minutes.\n"
    },
    {
      "name": "Entity search",
      "description": "Search by name across 140+ government registries. Returns raw legal entity registrations with optional global SIQ ID (entity_id). Use it to look up a company before triggering deep research.\n"
    },
    {
      "name": "MCP (beta)",
      "description": "Model Context Protocol server for AI agents. Currently supports Entity search. Additional APIs (Entity Resolution, Business Intelligence) coming soon.\n"
    }
  ],
  "paths": {
    "/v3/entity-resolution/async": {
      "get": {
        "tags": [
          "Entity Resolution"
        ],
        "summary": "Resolve a company name (query string)",
        "operationId": "resolveEntityAsync",
        "description": "Starts a resolution job and returns immediately with a job ID. Research typically takes one\nto five minutes; poll `GET /v3/runs/{run_id}` for the result.\n\nResolution finds the company through government registries and live web research, then\nanchors it to an official registration. Use `context` to say *which* company you mean when\na name is ambiguous.\n\nAlso accepts `POST` with the same parameters as a JSON body.\n",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "Company name, legal or brand. At least 2 characters.",
            "schema": {
              "type": "string",
              "minLength": 2
            },
            "example": "Datadog"
          },
          {
            "name": "location",
            "in": "query",
            "description": "Free-text location hint: city, state, country, or any combination. Narrows an\nambiguous name considerably.\n",
            "schema": {
              "type": "string"
            },
            "example": "New York, NY"
          },
          {
            "name": "context",
            "in": "query",
            "description": "Free text describing which company you mean: industry, products, customers, anything\ndistinguishing. Used only to choose between same-name candidates. It never overrides\ngovernment-registry evidence and never changes what is searched.\n\n`name=Delta` on its own is ambiguous. `name=Delta` with\n`context=major commercial passenger airline` resolves to Delta Air Lines, Inc.\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "website",
            "in": "query",
            "description": "Optional. The company's website, as a full address or just the domain. Send it here\nrather than inside `context` or `location`.\n",
            "schema": {
              "type": "string"
            },
            "example": "datadoghq.com"
          },
          {
            "name": "custom_id",
            "in": "query",
            "description": "Your own identifier for this request — an order id, an account id, a row id. Returned\non this `202`, on every `GET /v3/runs/{run_id}`, and on the webhook event, so you can\nmatch our response to your record without keeping a `run_id` table.\n\nA label only: it does not route the webhook, does not have to be unique, and cannot be\nused to look a request up. Rejected with `400` rather than trimmed if it is too long or\ncontains anything outside printable ASCII.\n",
            "schema": {
              "type": "string",
              "maxLength": 200,
              "pattern": "^[\\x20-\\x7E]+$"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Set to `basis` to attach the provenance plane to the result: per-field confidence,\nreasoning, and citations back to the sources.\n\n**Pass it on the poll as well.** Asking here is what makes the job record provenance;\nasking again on `GET /v3/runs/{run_id}` is what puts it in the response body. A job\nkicked off without `basis` cannot gain it later, and a poll without `basis` omits the\nplane even when the job recorded one.\n",
            "schema": {
              "type": "string",
              "enum": [
                "basis"
              ]
            },
            "example": "basis"
          }
        ],
        "responses": {
          "202": {
            "description": "Job accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PendingJob"
                },
                "example": {
                  "status": "pending",
                  "run_id": "run_344tSxhAVACWbuENINJ9D",
                  "custom_id": "order_88213"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/InsufficientCredits"
          },
          "403": {
            "$ref": "#/components/responses/NotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "tags": [
          "Entity Resolution"
        ],
        "summary": "Resolve a company name",
        "operationId": "resolveEntityAsyncPost",
        "description": "Starts a resolution job and returns immediately with a job ID. Research typically takes one\nto five minutes; poll `GET /v3/runs/{run_id}` for the result.\n\nResolution finds the company through government registries and live web research, then\nanchors it to an official registration. Use `context` to say *which* company you mean when\na name is ambiguous.\n\nAlso accepts `GET` with the same parameters as a query string.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveEntityRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Job accepted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PendingJob"
                },
                "example": {
                  "status": "pending",
                  "run_id": "run_344tSxhAVACWbuENINJ9D",
                  "custom_id": "order_88213"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/InsufficientCredits"
          },
          "403": {
            "$ref": "#/components/responses/NotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v3/runs/{run_id}": {
      "get": {
        "tags": [
          "Entity Resolution"
        ],
        "summary": "Poll a resolution job",
        "operationId": "getJob",
        "description": "Returns `202` while the job is running and `200` once it finishes. Read-only: polling\nnever starts or repeats work.\n\nAccepts the `run_id` from the kickoff. The pre-release `reqa_` form and a bare UUID are\nalso accepted, so anything already issued keeps resolving.\n",
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "description": "The `run_id` returned by the kickoff.",
            "schema": {
              "type": "string"
            },
            "example": "019fe975-186e-707c-b59a-b0a6c9914221"
          },
          {
            "name": "include",
            "in": "query",
            "description": "Set to `basis` to receive the provenance plane. Required here to get it in the body,\nand it only works if the kickoff also asked for `basis`. Provenance is stored with the\nresult, so polling never re-runs research to produce it.\n",
            "schema": {
              "type": "string",
              "enum": [
                "basis"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The job finished. A failed job is also a `200`, so check `status`.\n\nWhen `status` is `failed` the body carries only `status`, `run_id`, `custom_id` (if\nyou sent one) and `error`, with no `entity` or other result fields. The failure is\nfinal: polling again returns the same body. Submit a new request to retry.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolutionResult"
                },
                "examples": {
                  "matched": {
                    "$ref": "#/components/examples/ResolutionMatched"
                  },
                  "failed": {
                    "summary": "The job failed",
                    "value": {
                      "status": "failed",
                      "run_id": "run_344tSxhAVACWbuENINJ9D",
                      "error": {
                        "type": "resolution_failed",
                        "message": "The resolution job failed. Submit a new request to retry."
                      }
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Still running. Poll again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PendingJob"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Unknown run ID, a run belonging to another account, or a finished run whose result is\nno longer stored. All three return the same body. If you still need the answer, submit\na new request.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "type": "not_found",
                    "message": "The resource does not exist."
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "502": {
            "description": "We could not read the run's status: the read took longer than 15 seconds, or our job\nstore answered with an error. The `type` is `timeout` in both cases. The run itself is\nunaffected; poll again. If the job store cannot be reached at all, the poll answers\n`500` instead.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "type": "timeout",
                    "message": "An error occured with our API."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v3/entities/{id}": {
      "get": {
        "tags": [
          "Entity Record"
        ],
        "summary": "Get an entity record",
        "operationId": "getEntity",
        "description": "Returns the full record for an entity: the identity core plus enrichment, meaning\nfirmographics, classification labels, operational footprint and social profiles.\n\nThis endpoint never blocks. It serves what exists now and reports the build state in\n`enrichment.status`. If the record has never been enriched, the first read starts the\nbuild in the background; poll until `enrichment.status` is `complete`.\n\nIf the ID was merged into another entity, `status` is `merged`, `merged_into` carries the\ncanonical ID, and the body is the canonical entity. Store the new ID.\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "A `siq_` entity ID. Legal-entity (`le_`) and operational-presence (`op_`) IDs are not\naccepted.\n",
            "schema": {
              "type": "string"
            },
            "example": "siq_33d67jj0wJESjEdFHMhuQ"
          }
        ],
        "responses": {
          "200": {
            "description": "The entity record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityRecordResponse"
                },
                "examples": {
                  "matched": {
                    "$ref": "#/components/examples/EntityRecord"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Malformed ID, or an ID that is not a `siq_` entity ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "type": "bad_request",
                    "message": "Invalid entity id prefix 'LEGAL_ENTITY_'. Expected 'MASTER_ENTITY_'."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No entity with that ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v3/domain-intelligence": {
      "get": {
        "tags": [
          "Domain Intelligence"
        ],
        "summary": "Resolve a domain",
        "operationId": "getDomainIntelligence",
        "description": "Resolves a domain to the business behind it and describes the domain itself: what kind of\nsite it is, how it relates to that business, its industry breakdown, reachability, and\nsocial profiles.\n\nSynchronous, and **always returns `200`**. Check the top-level `status`. `complete` means\n`data` is populated. `building` and `pending` mean research is still running and `data` is\n`null`, so call again shortly.\n\nAlso accepts `POST` with the same parameters as a JSON body.\n",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "A domain, a full URL, or an email address. All are normalized to the root domain, so\n`https://www.datadoghq.com/pricing`, `datadoghq.com` and `jane@datadoghq.com` are equivalent.\n",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 255
            },
            "example": "datadoghq.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Always returned, including while research is still running. Check `status`.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainIntelligenceResponse"
                },
                "examples": {
                  "complete": {
                    "$ref": "#/components/examples/DomainIntelligence"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/InsufficientCredits"
          },
          "403": {
            "$ref": "#/components/responses/NotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "tags": [
          "Domain Intelligence"
        ],
        "summary": "Resolve a domain (JSON body)",
        "operationId": "postDomainIntelligence",
        "description": "Same as `GET`, with the parameters in a JSON body.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainIntelligenceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Always returned, including while research is still running. Check `status`.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainIntelligenceResponse"
                },
                "examples": {
                  "complete": {
                    "$ref": "#/components/examples/DomainIntelligence"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/InsufficientCredits"
          },
          "403": {
            "$ref": "#/components/responses/NotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/entity/{entity_id}/ultimate-parent": {
      "get": {
        "tags": [
          "Entity hierarchy"
        ],
        "summary": "Get ultimate parent research",
        "description": "Retrieve upward ownership research for an entity: ownership chains, parent companies, and the ultimate controlling entity.\n\nReturns 200 for all states; check the `status` field:\n- **not_started**: no research exists yet. Submit a request with the POST endpoint.\n- **in_progress**: research is running. Poll this endpoint every 5-10 seconds.\n- **completed**: full hierarchy data available in `data`.\n- **failed**: research encountered an error; see `message`.\n\nFirst-time research typically takes 10-20 minutes.\n",
        "operationId": "getUltimateParent",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "description": "The SIQ entity ID (e.g., \"siq_303bOyvScnpCchGvOckDr\")",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "siq_303bOyvScnpCchGvOckDr"
          }
        ],
        "responses": {
          "200": {
            "description": "OK - Returns hierarchy research in any state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HierarchyResponse"
                },
                "examples": {
                  "Completed": {
                    "$ref": "#/components/examples/HierarchyResponse_Completed"
                  },
                  "InProgress": {
                    "$ref": "#/components/examples/HierarchyResponse_InProgress"
                  },
                  "NotStarted": {
                    "$ref": "#/components/examples/HierarchyResponse_NotStarted"
                  },
                  "Failed": {
                    "$ref": "#/components/examples/HierarchyResponse_Failed"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid entity ID format",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Entity hierarchy"
        ],
        "summary": "Submit ultimate parent research request",
        "description": "Submit upward ownership research for an entity: who controls it, up to the ultimate controlling entity. Research typically takes 10-20 minutes.\n\nIf research is already in progress for this entity, the existing request is returned instead of creating a duplicate.\n\nAfter submission, poll the GET endpoint every 5-10 seconds until `status` is `completed`.\n",
        "operationId": "submitUltimateParentResearch",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "description": "The SIQ entity ID to research (e.g., \"siq_303bOyvScnpCchGvOckDr\")",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "siq_303bOyvScnpCchGvOckDr"
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted - Research request submitted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HierarchyResponse"
                },
                "examples": {
                  "Accepted": {
                    "$ref": "#/components/examples/HierarchyResponse_POST_Accepted"
                  },
                  "AlreadyInProgress": {
                    "$ref": "#/components/examples/HierarchyResponse_POST_AlreadyInProgress"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid entity ID format",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v2/search": {
      "get": {
        "tags": [
          "Entity search"
        ],
        "summary": "Search across legal and master entities",
        "description": "Dual-index search that searches both legal entity registrations (200M+ records, exact name matching) and master entity profiles (curated enriched records, fuzzy/phonetic matching) in parallel.\n\n**Dual-ID pattern:** Every result has an `id` (always a legal entity ID, `le_xxx`) and an `entity_id` (master entity ID, `siq_xxx`) when the entity has been consolidated into the master graph. Results with a non-null `entity_id` are enriched profiles sourced from the master entities index and are returned first. Legal-entity-only results (null `entity_id`) follow.\n\nIf `entity_id` is null, trigger Entity Resolution to create a master record.\n\n**Graceful degradation:** If the master entities index is temporarily unavailable, the endpoint silently falls back to legal entities only.\n\nAlso accepts `POST` with the same parameters as a JSON body.\n",
        "operationId": "entitySearch",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "description": "Entity name to search for (minimum 2 characters)",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Google LLC"
          },
          {
            "name": "country_code",
            "in": "query",
            "description": "Filter by ISO country code (e.g., US, GB, CA). Also filters master entities by primary legal entity jurisdiction and headquarters country.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "US"
          },
          {
            "name": "region_code",
            "in": "query",
            "description": "Filter by region/state/province code for US state-level filtering (e.g., CA, NY, DE)",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "DE"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results to return (1–10, default 10)",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 10
            },
            "example": 10
          },
          {
            "name": "bypass_cache",
            "in": "query",
            "description": "Bypass the response cache and force a fresh query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "example": false
          }
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "Curl",
            "source": "curl -X GET \"https://api.savvyiq.ai/v2/search?name=Google%20LLC&country_code=US\" \\\n  -H \"apikey: YOUR_API_KEY\"\n"
          },
          {
            "lang": "javascript",
            "label": "Node.js",
            "source": "fetch('https://api.savvyiq.ai/v2/search?name=Google%20LLC&country_code=US', {\n  headers: {\n    'apikey': 'YOUR_API_KEY'\n  }\n})\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "requests.get(\n    \"https://api.savvyiq.ai/v2/search?name=Google%20LLC&country_code=US\",\n    headers={\n      \"apikey\": \"YOUR_API_KEY\"\n    }\n)\n"
          },
          {
            "lang": "java",
            "label": "Java",
            "source": "HttpRequest request = HttpRequest.newBuilder()\n    .uri(URI.create(\"https://api.savvyiq.ai/v2/search?name=Google%20LLC&country_code=US\"))\n    .header(\"apikey\", \"YOUR_API_KEY\")\n    .method(\"GET\", HttpRequest.BodyPublishers.noBody())\n    .build();\nHttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"
          },
          {
            "lang": "go",
            "label": "Go",
            "source": "package main\n\nimport (\n  \"fmt\"\n  \"io\"\n  \"net/http\"\n)\n\nfunc main() {\n  url := \"https://api.savvyiq.ai/v2/search?name=Google%20LLC&country_code=US\"\n\n  req, _ := http.NewRequest(\"GET\", url, nil)\n\n  req.Header.Add(\"apikey\", \"YOUR_API_KEY\")\n\n  res, _ := http.DefaultClient.Do(req)\n\n  defer res.Body.Close()\n  body, _ := io.ReadAll(res.Body)\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n\n}\n"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntitySearchResponse"
                },
                "examples": {
                  "EntitySearchResponse": {
                    "$ref": "#/components/examples/EntitySearchResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Entity search"
        ],
        "summary": "Entity search (JSON body)",
        "operationId": "entitySearchPost",
        "description": "Same as `GET`, with the parameters in a JSON body.\n",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntitySearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntitySearchResponse"
                },
                "examples": {
                  "EntitySearchResponse": {
                    "$ref": "#/components/examples/EntitySearchResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/mcp": {
      "post": {
        "tags": [
          "MCP (beta)"
        ],
        "summary": "Model Context Protocol server",
        "description": "MCP (Model Context Protocol) endpoint for AI agents. Returns available tools and executes tool calls using JSON-RPC 2.0 protocol.\n\n**Beta Notice:** This endpoint is in beta. Currently supports Entity search only. Entity Resolution and Business Intelligence coming soon.\n\n**Available Tools:**\n- `search_legal_entities`: Search by name across 140+ government registries\n\n**Protocol:** Implements MCP JSON-RPC 2.0. Supports `tools/list`, `tools/call`, `initialize`, and `notifications/initialized` methods.\n\n**Learn more:** [Model Context Protocol](https://modelcontextprotocol.io/)\n",
        "operationId": "mcpHandler",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "enum": [
                      "2.0"
                    ],
                    "description": "JSON-RPC version",
                    "example": "2.0"
                  },
                  "id": {
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ],
                    "description": "Request ID (optional for notifications)",
                    "example": 1
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "tools/list",
                      "tools/call",
                      "initialize",
                      "notifications/initialized"
                    ],
                    "description": "MCP method to invoke",
                    "example": "tools/list"
                  },
                  "params": {
                    "type": "object",
                    "description": "Method parameters",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Tool name (for tools/call)",
                        "example": "search_legal_entities"
                      },
                      "arguments": {
                        "type": "object",
                        "description": "Tool arguments (for tools/call)",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Entity name to search",
                            "example": "Google LLC"
                          },
                          "country_code": {
                            "type": "string",
                            "description": "ISO country code filter",
                            "example": "US"
                          },
                          "region_code": {
                            "type": "string",
                            "description": "Region/state code filter",
                            "example": "CA"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "examples": {
                "listTools": {
                  "summary": "List available tools",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/list"
                  }
                },
                "callTool": {
                  "summary": "Search legal entities",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "method": "tools/call",
                    "params": {
                      "name": "search_legal_entities",
                      "arguments": {
                        "name": "Google LLC",
                        "country_code": "US"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "Curl",
            "source": "curl -X POST \"https://api.savvyiq.ai/v1/mcp\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"apikey: YOUR_API_KEY\" \\\n  -d '{\n    \"jsonrpc\": \"2.0\",\n    \"id\": 1,\n    \"method\": \"tools/list\"\n  }'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nrequests.post(\n    \"https://api.savvyiq.ai/v1/mcp\",\n    headers={\n        \"Content-Type\": \"application/json\",\n        \"apikey\": \"YOUR_API_KEY\"\n    },\n    json={\n        \"jsonrpc\": \"2.0\",\n        \"id\": 1,\n        \"method\": \"tools/list\"\n    }\n)\n"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "example": "2.0"
                    },
                    "id": {
                      "oneOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ],
                      "example": 1
                    },
                    "result": {
                      "type": "object",
                      "description": "Method result"
                    },
                    "error": {
                      "type": "object",
                      "description": "Error object (if method failed)",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "example": -32600
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid Request"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "toolsList": {
                    "summary": "Tools list response",
                    "value": {
                      "jsonrpc": "2.0",
                      "id": 1,
                      "result": {
                        "tools": [
                          {
                            "name": "search_legal_entities",
                            "description": "Search for legal entities (companies) by name with optional geographic and other filters. Returns detailed company information including registration details, addresses, and business status.",
                            "inputSchema": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "Company name to search for (required, minimum 2 characters after sanitization)"
                                },
                                "country_code": {
                                  "type": "string",
                                  "description": "ISO country code filter (2-3 characters, e.g., 'US', 'GB', 'CA'). Case insensitive.",
                                  "pattern": "^[A-Za-z]{2,3}$"
                                },
                                "region_code": {
                                  "type": "string",
                                  "description": "Region/province/state code filter (2-10 alphanumeric characters). Examples: US states ('CA', 'NY'), Canadian provinces ('ON', 'BC'), etc. Case insensitive.",
                                  "pattern": "^[A-Za-z0-9]{2,10}$"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey",
        "description": "Your API key. Find it in the [dashboard](https://savvyiq.ai/api-keys)."
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid or missing parameters.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "type": "bad_request",
                "message": "Name is required"
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Missing or invalid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InsufficientCredits": {
        "description": "Credit balance exhausted.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "type": "insufficient_credits",
                "message": "Insufficient credit balance. Please add credits to continue."
              }
            }
          }
        }
      },
      "NotEnabled": {
        "description": "This account is not enabled for the v3 API.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": {
                "type": "no_pricing_configured",
                "message": "This API is not enabled for your account. Contact support to enable access."
              }
            }
          }
        }
      },
      "RateLimited": {
        "description": "Rate limit exceeded.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ServerError": {
        "description": "Something went wrong on our side.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "ResolveEntityRequest": {
        "type": "object",
        "description": "What to resolve. The same fields are accepted as query parameters on `GET`.",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "description": "Company name, legal or brand. At least 2 characters.\n",
            "type": "string",
            "minLength": 2,
            "example": "Datadog"
          },
          "location": {
            "description": "Free-text location hint: city, state, country, or any combination. Narrows an\nambiguous name considerably.\n",
            "type": "string",
            "example": "New York, NY"
          },
          "context": {
            "description": "Free text describing which company you mean: industry, products, customers, anything\ndistinguishing. Used only to choose between same-name candidates. It never overrides\ngovernment-registry evidence and never changes what is searched.\n\n`name=Delta` on its own is ambiguous. `name=Delta` with\n`context=major commercial passenger airline` resolves to Delta Air Lines, Inc.\n",
            "type": "string",
            "example": "cloud monitoring and security platform"
          },
          "website": {
            "description": "Optional. The company's website, as a full address or just the domain. Send it here\nrather than inside `context` or `location`.\n",
            "type": "string",
            "example": "datadoghq.com"
          },
          "custom_id": {
            "description": "Your own identifier for this request — an order id, an account id, a row id. Returned\non this `202`, on every `GET /v3/runs/{run_id}`, and on the webhook event, so you can\nmatch our response to your record without keeping a `run_id` table.\n\nA label only: it does not route the webhook, does not have to be unique, and cannot be\nused to look a request up. Rejected with `400` rather than trimmed if it is too long or\ncontains anything outside printable ASCII.\n",
            "type": "string",
            "maxLength": 200,
            "pattern": "^[\\x20-\\x7E]+$",
            "example": "order_88213"
          },
          "include": {
            "description": "Set to `basis` to attach the provenance plane to the result: per-field confidence,\nreasoning, and citations back to the sources.\n\n**Pass it on the poll as well.** Asking here is what makes the job record provenance;\nasking again on `GET /v3/runs/{run_id}` is what puts it in the response body. A job\nkicked off without `basis` cannot gain it later, and a poll without `basis` omits the\nplane even when the job recorded one.\n",
            "type": "string",
            "enum": [
              "basis"
            ]
          }
        }
      },
      "DomainIntelligenceRequest": {
        "type": "object",
        "description": "The query parameters of `GET /v3/domain-intelligence`, as a JSON body.",
        "required": [
          "domain"
        ],
        "properties": {
          "domain": {
            "description": "A domain, a full URL, or an email address. All are normalized to the root domain, so\n`https://www.datadoghq.com/pricing`, `datadoghq.com` and `jane@datadoghq.com` are equivalent.\n",
            "type": "string",
            "minLength": 3,
            "maxLength": 255,
            "example": "datadoghq.com"
          }
        }
      },
      "EntitySearchRequest": {
        "type": "object",
        "description": "The query parameters of `GET /v2/search`, as a JSON body.",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "description": "Entity name to search for (minimum 2 characters)\n",
            "type": "string",
            "example": "Google LLC"
          },
          "country_code": {
            "description": "Filter by ISO country code (e.g., US, GB, CA). Also filters master entities by primary legal entity jurisdiction and headquarters country.\n",
            "type": "string",
            "example": "US"
          },
          "region_code": {
            "description": "Filter by region/state/province code for US state-level filtering (e.g., CA, NY, DE)\n",
            "type": "string",
            "example": "DE"
          },
          "limit": {
            "description": "Maximum number of results to return (1–10, default 10)\n",
            "type": "integer",
            "minimum": 1,
            "maximum": 10,
            "default": 10
          },
          "bypass_cache": {
            "description": "Bypass the response cache and force a fresh query\n",
            "type": "boolean",
            "default": false
          }
        }
      },
      "EntitySearchResponse": {
        "type": "object",
        "description": "Response from the entity search endpoint",
        "properties": {
          "results": {
            "type": "array",
            "description": "Array of matching entities. Master entity results (non-null entity_id) are returned first (higher quality curated matches), followed by legal-entity-only results.\n",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Legal entity ID. Always an `le_xxx` identifier.",
                  "example": "le_2Zp3YaC1I4wgYZpQDPgx8"
                },
                "entity_id": {
                  "type": "string",
                  "nullable": true,
                  "description": "Master entity ID (`siq_xxx`). Non-null when this entity has been consolidated into the master graph. Null for legal-entity-only results.",
                  "example": "siq_2ZYEAh7VdPkWsvlsqW9lG"
                },
                "name": {
                  "type": "string",
                  "description": "Entity name",
                  "example": "Google"
                },
                "status": {
                  "type": "string",
                  "nullable": true,
                  "description": "Current status",
                  "example": "active"
                },
                "is_branch": {
                  "type": "boolean",
                  "description": "Indicates if this is likely a branch/foreign qualification of another entity",
                  "example": false
                },
                "jurisdiction": {
                  "type": "object",
                  "properties": {
                    "country": {
                      "type": "string",
                      "nullable": true,
                      "example": "United States of America"
                    },
                    "country_code": {
                      "type": "string",
                      "nullable": true,
                      "example": "US"
                    },
                    "jurisdiction_code": {
                      "type": "string",
                      "nullable": true,
                      "description": "Combined country/state jurisdiction code (e.g. us_de for Delaware)",
                      "example": "us_de"
                    }
                  }
                }
              }
            }
          },
          "metadata": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "description": "Total number of results returned",
                "example": 5
              },
              "returned": {
                "type": "integer",
                "description": "Number of results in this response",
                "example": 5
              },
              "query_time_ms": {
                "type": "integer",
                "description": "Query execution time in milliseconds",
                "example": 42
              }
            }
          },
          "request_id": {
            "type": "string",
            "description": "Unique request identifier",
            "example": "req_31ffecAT4FNPZDDVD1gZw"
          }
        }
      },
      "HierarchyResponse": {
        "type": "object",
        "description": "Response for entity hierarchy research",
        "properties": {
          "entity_id": {
            "type": "string",
            "description": "The SIQ entity ID that was researched",
            "example": "siq_303bOyvScnpCchGvOckDr"
          },
          "status": {
            "type": "string",
            "description": "Current status of the research",
            "enum": [
              "not_started",
              "in_progress",
              "completed",
              "failed"
            ],
            "example": "completed"
          },
          "data": {
            "nullable": true,
            "description": "Hierarchy data (null if not completed)",
            "oneOf": [
              {
                "$ref": "#/components/schemas/HierarchyData"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_researched_at": {
            "type": "string",
            "nullable": true,
            "description": "ISO 8601 timestamp of when research was completed",
            "example": "2025-10-14T21:37:51.095Z"
          },
          "request_id": {
            "type": "string",
            "description": "Request ID for tracking",
            "example": "req_31ktmKZbyd9zqFCNxlwhc"
          },
          "message": {
            "type": "string",
            "description": "Optional message with additional context",
            "example": "Research submitted. Expected completion in 10-20 minutes."
          }
        },
        "required": [
          "entity_id",
          "status"
        ]
      },
      "HierarchyData": {
        "type": "object",
        "description": "Complete hierarchy research data",
        "properties": {
          "entities": {
            "type": "array",
            "description": "All entities in the corporate structure",
            "items": {
              "$ref": "#/components/schemas/HierarchyEntity"
            }
          },
          "relationships": {
            "type": "array",
            "description": "All relationships between entities",
            "items": {
              "$ref": "#/components/schemas/HierarchyRelationship"
            }
          },
          "ownership_chain": {
            "type": "array",
            "description": "Direct ownership path from target entity to ultimate parent",
            "items": {
              "$ref": "#/components/schemas/HierarchyOwnershipChain"
            }
          },
          "evidence": {
            "type": "array",
            "description": "URLs of evidence sources used in research",
            "items": {
              "type": "string",
              "example": "https://find-and-update.company-information.service.gov.uk/company/05779958"
            }
          },
          "summary_short": {
            "type": "string",
            "description": "Brief summary of the ownership structure (1-2 sentences)"
          },
          "summary_long": {
            "type": "string",
            "description": "Detailed summary of the ownership structure and corporate history"
          },
          "mermaid_diagram": {
            "type": "string",
            "description": "Mermaid diagram code for visualizing the hierarchy"
          },
          "target_entity": {
            "type": "object",
            "description": "The entity that was researched",
            "properties": {
              "id": {
                "type": "string",
                "example": "e1"
              },
              "name": {
                "type": "string",
                "example": "MG MOTOR UK LTD"
              }
            }
          },
          "ultimate_parent": {
            "type": "object",
            "nullable": true,
            "description": "The ultimate controlling entity (null if none found)",
            "properties": {
              "id": {
                "type": "string",
                "example": "e6"
              },
              "name": {
                "type": "string",
                "example": "Shanghai State-owned Assets Supervision and Administration Commission (Shanghai SASAC)"
              }
            }
          }
        }
      },
      "HierarchyEntity": {
        "type": "object",
        "description": "An entity in the corporate hierarchy",
        "properties": {
          "id": {
            "type": "string",
            "description": "Internal entity identifier used in relationships",
            "example": "e1"
          },
          "name": {
            "type": "string",
            "description": "Legal entity name",
            "example": "MG MOTOR UK LTD"
          },
          "country_code": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code",
            "example": "GB"
          },
          "jurisdiction": {
            "type": "string",
            "description": "Full jurisdiction name",
            "example": "England and Wales"
          },
          "organization_type": {
            "type": "string",
            "description": "Type of organization",
            "enum": [
              "business",
              "government",
              "nonprofit",
              "individual"
            ],
            "example": "business"
          },
          "is_publicly_traded": {
            "type": "boolean",
            "description": "Whether the entity is publicly traded",
            "example": false
          }
        }
      },
      "HierarchyRelationship": {
        "type": "object",
        "description": "Relationship between two entities in the hierarchy",
        "properties": {
          "id": {
            "type": "string",
            "description": "Relationship identifier",
            "example": "r1"
          },
          "from": {
            "type": "string",
            "description": "ID of the parent/controlling entity",
            "example": "e2"
          },
          "to": {
            "type": "string",
            "description": "ID of the subsidiary/controlled entity",
            "example": "e1"
          },
          "relationship_type": {
            "type": "string",
            "description": "Type of relationship",
            "enum": [
              "owns",
              "majority_owns",
              "minority_owns",
              "holding_company",
              "government_owns",
              "parent_of",
              "subsidiary_of"
            ],
            "example": "owns"
          },
          "ownership_percentage": {
            "type": "number",
            "nullable": true,
            "description": "Ownership percentage if known",
            "example": 62.69
          },
          "established_date": {
            "type": "string",
            "nullable": true,
            "description": "Date the relationship was established, as a partial ISO 8601 date — \"YYYY\", \"YYYY-MM\", or \"YYYY-MM-DD\", as precisely as the sources evidence it.",
            "example": "2005-02-15"
          }
        }
      },
      "HierarchyOwnershipChain": {
        "type": "object",
        "description": "A link in the ownership chain from target to ultimate parent",
        "properties": {
          "entity_id": {
            "type": "string",
            "description": "Entity ID at this level",
            "example": "e1"
          },
          "parent_id": {
            "type": "string",
            "description": "Parent entity ID",
            "example": "e2"
          },
          "relationship_type": {
            "type": "string",
            "description": "Type of relationship to parent",
            "example": "owns"
          },
          "ownership_percentage": {
            "type": "number",
            "nullable": true,
            "description": "Ownership percentage if known",
            "example": 62.69
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Stable, machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation. Do not match on this."
              }
            }
          }
        }
      },
      "PendingJob": {
        "type": "object",
        "description": "Returned by the kickoff, and by a poll while the job is still running.",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "pending"
            ]
          },
          "run_id": {
            "type": "string",
            "description": "The run's identifier, and what you poll with. Distinct from `request_id`, which\nidentifies a single HTTP call: a run outlives the call that started it.\n"
          },
          "custom_id": {
            "type": "string",
            "description": "Your `custom_id` from the request that started this job. Absent if you did not send one.\n"
          }
        }
      },
      "Facets": {
        "type": "object",
        "description": "Ownership and legal form, not industry. Industry codes live under `industry.schemes`.\n",
        "properties": {
          "sector": {
            "type": "string",
            "nullable": true,
            "enum": [
              "private",
              "public",
              "government",
              "nonprofit"
            ]
          },
          "legal_form": {
            "type": "string",
            "nullable": true,
            "enum": [
              "llc",
              "corporation",
              "c_corp",
              "s_corp",
              "lp",
              "llp",
              "gp",
              "sole_proprietorship",
              "nonprofit_corp",
              "pllc",
              "pc",
              "cooperative",
              "municipal_agency",
              "government_entity",
              "trust",
              "unknown"
            ]
          }
        }
      },
      "ClassificationCode": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "513210"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "is_primary": {
            "type": "boolean",
            "description": "One code per scheme is primary. Primary codes are returned first."
          },
          "confidence": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 100
          }
        }
      },
      "Industry": {
        "type": "object",
        "description": "Industry codes keyed by scheme. A scheme that was not classified is absent; an empty key\nis never returned.\n",
        "properties": {
          "schemes": {
            "type": "object",
            "properties": {
              "naics_2022": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ClassificationCode"
                }
              },
              "sic": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ClassificationCode"
                }
              }
            }
          }
        }
      },
      "Identifier": {
        "type": "object",
        "description": "On `/v3/entity-resolution` and `/v3/entities/{id}` the array is canonicalized: types come\nfrom the list below, values are normalized per type (a CIK is zero-padded to 10 digits), and\n`jurisdiction` is scoped from `primary_legal_entity`.\n\n**`/v3/domain-intelligence` serves the stored array as-is** — no `jurisdiction` key, values\nuncanonicalized, and a type may be a storage spelling (`sec_cik` for `cik`). Treat the\ndomain endpoint's identifiers as a hint and read the canonical set from `/v3/entities/{id}`.\n",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "registration_id",
              "cik",
              "sec_cik",
              "lei",
              "bic",
              "ein",
              "duns",
              "ticker"
            ]
          },
          "value": {
            "type": "string",
            "description": "Canonicalized for its type on the resolution and record endpoints. See [Codes & enums](#codes-enums)."
          },
          "jurisdiction": {
            "type": "string",
            "nullable": true,
            "description": "ISO jurisdiction, where the identifier type is jurisdictional. Absent entirely on\n`/v3/domain-intelligence`.\n"
          }
        }
      },
      "RegistrationAuthority": {
        "type": "object",
        "nullable": true,
        "description": "The government register this entity is recorded in.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "code": {
            "type": "string",
            "nullable": true,
            "example": "RA000602"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "nullable": true
          },
          "jurisdiction": {
            "type": "string",
            "nullable": true,
            "example": "Delaware"
          },
          "country_code": {
            "type": "string",
            "nullable": true,
            "example": "US"
          },
          "website": {
            "type": "string",
            "nullable": true,
            "example": "https://corp.delaware.gov/"
          }
        }
      },
      "PrimaryLegalEntity": {
        "type": "object",
        "nullable": true,
        "description": "The government registration that anchors this entity.",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "example": "le_2Zp3Yy6S7O6Btccq56WOH"
          },
          "jurisdiction": {
            "type": "string",
            "nullable": true,
            "example": "US-DE"
          },
          "country_code": {
            "type": "string",
            "nullable": true,
            "example": "US"
          },
          "state_code": {
            "type": "string",
            "nullable": true,
            "example": "DE"
          },
          "registration_authority": {
            "$ref": "#/components/schemas/RegistrationAuthority"
          }
        }
      },
      "Headquarters": {
        "type": "object",
        "nullable": true,
        "description": "The headquarters address, always as the nested `address` object — there are no flat alias fields. Every key below is always present; unknown values are `null` rather than omitted, so the key set is stable across responses and endpoints.",
        "properties": {
          "address": {
            "type": "object",
            "nullable": true,
            "properties": {
              "street_address": {
                "type": "string",
                "nullable": true
              },
              "street_number": {
                "type": "string",
                "nullable": true
              },
              "sub_premise": {
                "type": "string",
                "nullable": true
              },
              "city": {
                "type": "string",
                "nullable": true
              },
              "state": {
                "type": "string",
                "nullable": true,
                "description": "Subdivision as written (\"California\"), when we hold it."
              },
              "state_code": {
                "type": "string",
                "nullable": true,
                "description": "ISO-3166-2 subdivision code (\"CA\"). Derived from `state` when we can map it confidently; `null` rather than guessed when we cannot."
              },
              "postal_code": {
                "type": "string",
                "nullable": true
              },
              "country": {
                "type": "string",
                "nullable": true
              },
              "country_code": {
                "type": "string",
                "nullable": true
              },
              "formatted_address": {
                "type": "string",
                "nullable": true,
                "description": "Single-line rendering of the parts above. Composed from them when we hold no stored formatting."
              }
            }
          }
        }
      },
      "MinimalEntity": {
        "type": "object",
        "description": "The identity core: who the company is and which government registration anchors it. Every\nendpoint serves at least this. `GET /v3/domain-intelligence` serves exactly this and nothing\nmore; `GET /v3/entities/{id}` adds the enrichment on top.\n",
        "properties": {
          "id": {
            "type": "string",
            "example": "siq_33d67jj0wJESjEdFHMhuQ"
          },
          "display_name": {
            "type": "string",
            "nullable": true,
            "description": "The brand or common name.",
            "example": "Datadog"
          },
          "legal_name": {
            "type": "string",
            "nullable": true,
            "description": "The registered name, as it appears on the government record.",
            "example": "DATADOG, INC."
          },
          "status": {
            "type": "string",
            "nullable": true,
            "enum": [
              "active",
              "inactive"
            ]
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "headquarters": {
            "$ref": "#/components/schemas/Headquarters"
          },
          "primary_legal_entity": {
            "$ref": "#/components/schemas/PrimaryLegalEntity"
          },
          "identifiers": {
            "type": "array",
            "description": "Typed external identifiers, in a stable order.",
            "items": {
              "$ref": "#/components/schemas/Identifier"
            }
          },
          "matching_branch": {
            "type": "object",
            "nullable": true,
            "description": "Set when the query matched a specific branch or foreign registration rather than the\nentity's home registration.\n"
          }
        }
      },
      "Entity": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MinimalEntity"
          },
          {
            "type": "object",
            "description": "The identity core plus the resolution-time classification planes.",
            "properties": {
              "facets": {
                "$ref": "#/components/schemas/Facets"
              },
              "industry": {
                "$ref": "#/components/schemas/Industry"
              },
              "parent_entity": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        ]
      },
      "Factor": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable code. See [Codes & enums](#codes-enums)."
          },
          "type": {
            "type": "string",
            "enum": [
              "strength",
              "limitation"
            ]
          },
          "description": {
            "type": "string"
          },
          "impact": {
            "type": "string"
          }
        }
      },
      "Action": {
        "type": "object",
        "description": "A suggestion for sharpening an ambiguous query.",
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "BasisCitation": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "excerpt": {
            "type": "string",
            "nullable": true
          },
          "source_type": {
            "type": "string",
            "enum": [
              "government_registry",
              "company_website",
              "public_profile",
              "web"
            ]
          },
          "authority_tier": {
            "type": "integer",
            "enum": [
              1,
              2,
              3
            ],
            "description": "1 government registry, 2 public profile, 3 company website or general web."
          }
        }
      },
      "FieldBasis": {
        "type": "object",
        "description": "Provenance for one field. Carries no value: it addresses a field of `entity` by path and\nexplains where that value came from.\n",
        "properties": {
          "field": {
            "type": "string",
            "description": "Dot-path into `entity`, for example `legal_name`, `facets.sector`,\n`primary_legal_entity.jurisdiction`, or `identifiers.0.value`.\n",
            "example": "legal_name"
          },
          "confidence": {
            "type": "string",
            "nullable": true,
            "enum": [
              "high",
              "medium",
              "low"
            ]
          },
          "reasoning": {
            "type": "string"
          },
          "citations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BasisCitation"
            }
          }
        }
      },
      "Candidate": {
        "type": "object",
        "nullable": true,
        "description": "Our best hypothesis when an entity could not be confirmed. A response populates `entity`\nor `candidate`, never both.\n",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "legal_name": {
            "type": "string",
            "nullable": true
          },
          "jurisdiction": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "primary_address": {
            "type": "object",
            "nullable": true,
            "properties": {
              "full_address": {
                "type": "string",
                "nullable": true
              },
              "state_code": {
                "type": "string",
                "nullable": true
              },
              "country_code": {
                "type": "string",
                "nullable": true
              }
            }
          }
        }
      },
      "ResolutionResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "matched",
              "partial_match",
              "inconclusive",
              "no_match",
              "not_found",
              "merged",
              "failed"
            ]
          },
          "match_confidence": {
            "type": "integer",
            "nullable": true,
            "minimum": 0,
            "maximum": 100,
            "description": "How certain we are this is the entity you asked for."
          },
          "type": {
            "type": "string",
            "nullable": true,
            "enum": [
              "business",
              "nonprofit",
              "government",
              "person",
              "other",
              "unknown"
            ]
          },
          "subtype": {
            "type": "string",
            "nullable": true,
            "enum": [
              "incorporated_entity",
              "unincorporated_entity",
              "nonprofit_entity",
              "government_entity",
              "natural_person",
              "complex_business_structure",
              "trading_name_only",
              "other_entity",
              "unknown"
            ]
          },
          "entity": {
            "$ref": "#/components/schemas/Entity"
          },
          "candidate": {
            "$ref": "#/components/schemas/Candidate"
          },
          "factors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Factor"
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Action"
            }
          },
          "merged_into": {
            "type": "string",
            "nullable": true,
            "description": "Set when `status` is `merged`. The canonical entity ID to store instead."
          },
          "basis": {
            "type": "array",
            "description": "Present only when the request was made with `include=basis`.",
            "items": {
              "$ref": "#/components/schemas/FieldBasis"
            }
          },
          "request_id": {
            "type": "string",
            "nullable": true,
            "description": "The HTTP call that produced this body. Present on a direct serve; absent when polling\n`GET /v3/runs/{run_id}`, where `run_id` is the identifier that matters.\n"
          },
          "run_id": {
            "type": "string",
            "description": "Present when this result came from a run — polled from `GET /v3/runs/{run_id}`, or\ndelivered by webhook. A run outlives the request that started it, which is why it has\nits own identifier.\n"
          },
          "custom_id": {
            "type": "string",
            "description": "Your `custom_id` from the request that started this job. Absent if you did not send one.\n"
          },
          "error": {
            "type": "object",
            "description": "Present only when `status` is `failed`, on a polled run. `type` is `resolution_failed`.\n",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "resolution_failed"
                ]
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation. Do not match on this."
              }
            }
          },
          "metadata": {
            "type": "object",
            "properties": {
              "query": {
                "type": "object",
                "description": "The query as we interpreted it.",
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "location": {
                    "type": "string",
                    "nullable": true
                  },
                  "context": {
                    "type": "string",
                    "nullable": true
                  },
                  "classification": {
                    "type": "string",
                    "nullable": true,
                    "description": "How we judged the query itself, for example `ambiguous` when the name alone\ncould match several companies. Useful for deciding whether to retry with more\n`context`.\n"
                  },
                  "mode": {
                    "type": "string",
                    "nullable": true,
                    "description": "Internal echo. Always `standard` on `/v3`; carried for parity with older\nsurfaces. Do not branch on it.\n"
                  }
                }
              },
              "resolved_at": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "When this resolution ran."
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "nullable": true,
                "description": "When the underlying record was last updated."
              },
              "from_cache": {
                "type": "boolean",
                "description": "Whether the response came from the response cache."
              },
              "cache_hit_type": {
                "type": "string",
                "nullable": true,
                "description": "Which cache served the response, or `null` when none did."
              }
            }
          }
        }
      },
      "EnrichmentLifecycle": {
        "type": "object",
        "description": "Build state of the record. Omitted entirely if the lifecycle could not be read; treat an\nabsent block as unknown, not as failed.\n",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "building",
              "refreshing",
              "complete",
              "failed"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "SocialHandle": {
        "type": "object",
        "nullable": true,
        "properties": {
          "handle": {
            "type": "string",
            "nullable": true,
            "example": "company/datadog"
          }
        }
      },
      "EntityRecord": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Entity"
          },
          {
            "type": "object",
            "description": "The identity core plus the enrichment extensions.",
            "properties": {
              "type": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "business",
                  "nonprofit",
                  "government",
                  "person",
                  "other",
                  "unknown"
                ]
              },
              "subtype": {
                "type": "string",
                "nullable": true
              },
              "attributes": {
                "type": "object",
                "description": "Firmographics. Every field is nullable until enrichment fills it.",
                "properties": {
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "website": {
                    "type": "string",
                    "nullable": true
                  },
                  "domain": {
                    "type": "string",
                    "nullable": true
                  },
                  "employee_count": {
                    "type": "integer",
                    "nullable": true
                  },
                  "employee_range": {
                    "type": "string",
                    "nullable": true,
                    "example": "1K-5K"
                  },
                  "revenue": {
                    "type": "integer",
                    "nullable": true
                  },
                  "revenue_range": {
                    "type": "string",
                    "nullable": true,
                    "example": "$1B-$10B"
                  },
                  "founding_date": {
                    "type": "string",
                    "nullable": true,
                    "example": "2010-01-01"
                  },
                  "stock_ticker": {
                    "type": "string",
                    "nullable": true
                  },
                  "exchange": {
                    "type": "string",
                    "nullable": true
                  },
                  "is_public": {
                    "type": "boolean",
                    "nullable": true
                  },
                  "market_cap": {
                    "type": "integer",
                    "nullable": true
                  },
                  "funding_total_usd": {
                    "type": "integer",
                    "nullable": true
                  },
                  "funding_rounds_count": {
                    "type": "integer",
                    "nullable": true
                  }
                }
              },
              "classification": {
                "type": "object",
                "description": "Human-readable labels and the controlled business-model axes. Numeric industry\ncodes live under `industry.schemes`, not here.\n",
                "properties": {
                  "sector": {
                    "type": "string",
                    "nullable": true,
                    "example": "Technology"
                  },
                  "industry": {
                    "type": "string",
                    "nullable": true,
                    "example": "Computer Software"
                  },
                  "sub_industry": {
                    "type": "string",
                    "nullable": true
                  },
                  "business_tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "market_segments": {
                    "type": "array",
                    "description": "Most-material-first, max 2. `b2b2c` never appears with `b2b` or `b2c`.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "b2b",
                        "b2c",
                        "b2g",
                        "b2b2c"
                      ]
                    }
                  },
                  "revenue_models": {
                    "type": "array",
                    "description": "Most-material-first, max 3.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "subscription",
                        "usage_based",
                        "transaction_fee",
                        "marketplace",
                        "product_sales",
                        "services",
                        "advertising",
                        "licensing",
                        "lending_and_deposits",
                        "insurance_premium",
                        "leasing_rental",
                        "grants_donations"
                      ]
                    }
                  },
                  "products_services": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "operational_presence": {
                "type": "array",
                "description": "Where the entity operates, one entry per country.",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "nullable": true,
                      "example": "op_33ZbC5x7TWMqjRnGBE88L"
                    },
                    "country_code": {
                      "type": "string",
                      "nullable": true
                    },
                    "country": {
                      "type": "string",
                      "nullable": true
                    },
                    "count": {
                      "type": "integer",
                      "description": "Registrations known in that country."
                    },
                    "is_home_jurisdiction": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "social_profiles": {
                "type": "object",
                "properties": {
                  "linkedin": {
                    "$ref": "#/components/schemas/SocialHandle"
                  },
                  "facebook": {
                    "$ref": "#/components/schemas/SocialHandle"
                  },
                  "crunchbase": {
                    "$ref": "#/components/schemas/SocialHandle"
                  }
                }
              }
            }
          }
        ]
      },
      "EntityRecordResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "matched",
              "merged"
            ]
          },
          "merged_into": {
            "type": "string",
            "nullable": true,
            "description": "Set when `status` is `merged`. Store this ID instead of the one you asked for.\n"
          },
          "entity": {
            "$ref": "#/components/schemas/EntityRecord"
          },
          "enrichment": {
            "$ref": "#/components/schemas/EnrichmentLifecycle"
          },
          "request_id": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "WebsiteStatus": {
        "type": "object",
        "nullable": true,
        "description": "Reachability of the domain when we last checked it.",
        "properties": {
          "status": {
            "type": "integer",
            "nullable": true,
            "description": "HTTP status code observed."
          },
          "is_resolvable": {
            "type": "boolean",
            "nullable": true
          },
          "is_webserver_responsive": {
            "type": "boolean",
            "nullable": true
          },
          "has_content": {
            "type": "boolean",
            "nullable": true
          },
          "failure_reason": {
            "type": "string",
            "nullable": true
          },
          "last_checked": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "DomainContext": {
        "type": "object",
        "nullable": true,
        "description": "What this domain is, and how it relates to the business behind it.",
        "properties": {
          "domain_type": {
            "type": "string",
            "nullable": true,
            "enum": [
              "corporate_website",
              "infrastructure",
              "service_platform",
              "email_domain",
              "api_endpoint",
              "cdn_domain",
              "subdomain",
              "parked_domain",
              "personal_site",
              "content_platform",
              "placeholder_page",
              "non_business",
              "other"
            ]
          },
          "domain_relationship": {
            "type": "string",
            "nullable": true,
            "enum": [
              "direct_owner",
              "parent_company",
              "infrastructure_provider",
              "service_provider",
              "email_provider",
              "platform_provider"
            ]
          },
          "domain_purpose": {
            "type": "string",
            "nullable": true
          },
          "business_relevance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "DomainIntelligence": {
        "type": "object",
        "description": "What we know about the domain itself, as distinct from the company behind it.",
        "properties": {
          "domain": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "domain_aliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "tranco_rank": {
            "type": "integer",
            "nullable": true,
            "description": "Global traffic rank. Lower is bigger."
          },
          "website_status": {
            "$ref": "#/components/schemas/WebsiteStatus"
          },
          "domain_context": {
            "$ref": "#/components/schemas/DomainContext"
          },
          "is_disposable_email_provider": {
            "type": "boolean",
            "nullable": true
          },
          "is_email_provider": {
            "type": "boolean",
            "nullable": true,
            "description": "The domain is a mailbox provider, free (gmail.com) or disposable (mailinator.com). Any entity returned is the provider that owns the domain, never a sender's employer."
          },
          "industry": {
            "$ref": "#/components/schemas/Industry"
          },
          "classification": {
            "type": "object",
            "description": "Scoped to this domain's observable motion, which can legitimately differ from the whole\ncompany's. Compare with `classification` on `/v3/entities/{id}`.\n",
            "properties": {
              "sector": {
                "type": "string",
                "nullable": true
              },
              "industry": {
                "type": "string",
                "nullable": true
              },
              "sub_industry": {
                "type": "string",
                "nullable": true
              },
              "business_tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "market_segments": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "b2b",
                    "b2c",
                    "b2g",
                    "b2b2c"
                  ]
                }
              },
              "revenue_models": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "products_services": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "social_profiles": {
            "type": "object",
            "description": "The accounts this site links to. Same `{handle}` shape as the entity record, so one\nparser reads both. The entity record's set is the entity's best-known handles; this set\nis what the domain itself advertises, and the two can differ.\n",
            "properties": {
              "linkedin": {
                "$ref": "#/components/schemas/SocialHandle"
              },
              "facebook": {
                "$ref": "#/components/schemas/SocialHandle"
              },
              "crunchbase": {
                "$ref": "#/components/schemas/SocialHandle"
              },
              "twitter": {
                "$ref": "#/components/schemas/SocialHandle"
              }
            }
          }
        }
      },
      "DomainIntelligenceResponse": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "description": "The normalized root domain."
          },
          "status": {
            "type": "string",
            "enum": [
              "complete",
              "building",
              "pending",
              "refreshing",
              "failed"
            ],
            "description": "`complete` means `data` is populated. `building` and `pending` mean research is still\nrunning and `data` is `null`.\n"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "request_id": {
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "properties": {
              "last_updated": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "processing_started_at": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              },
              "estimated_completion": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          },
          "data": {
            "type": "object",
            "nullable": true,
            "description": "Null until `status` is `complete`.",
            "properties": {
              "status": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "matched",
                  "partial_match",
                  "inconclusive",
                  "no_match"
                ]
              },
              "confidence": {
                "type": "integer",
                "nullable": true
              },
              "type": {
                "type": "string",
                "nullable": true
              },
              "subtype": {
                "type": "string",
                "nullable": true
              },
              "entity": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MinimalEntity"
                  },
                  {
                    "description": "Domain intelligence serves the identity core only — enough to key off and to\nconfirm you have the right company. `facets`, `industry` and the enrichment\nplanes come from `GET /v3/entities/{id}` with the ID returned here.\n"
                  }
                ]
              },
              "candidate": {
                "$ref": "#/components/schemas/Candidate"
              },
              "factors": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Factor"
                }
              },
              "actions": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Action"
                }
              },
              "domain_intelligence": {
                "$ref": "#/components/schemas/DomainIntelligence"
              },
              "redirect_info": {
                "type": "object",
                "nullable": true,
                "description": "Present only when the requested domain redirected elsewhere.",
                "properties": {
                  "is_redirect": {
                    "type": "boolean"
                  },
                  "original_domain": {
                    "type": "string"
                  },
                  "final_domain": {
                    "type": "string"
                  },
                  "redirect_status_code": {
                    "type": "integer"
                  },
                  "redirect_type": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "examples": {
      "EntitySearchResponse": {
        "summary": "Entity search results for Google LLC",
        "value": {
          "results": [
            {
              "id": "le_2Zp3YaC1I4wgYZpQDPgx8",
              "entity_id": "siq_2ZYEAh7VdPkWsvlsqW9lG",
              "name": "Google",
              "status": "active",
              "is_branch": false,
              "jurisdiction": {
                "country": "United States of America",
                "country_code": "US",
                "jurisdiction_code": "us_de"
              }
            },
            {
              "id": "le_2ZoQ891RD9mDRM1E8bnDf",
              "entity_id": "siq_2ZYEAh7VdPkWsvlsqW9lG",
              "name": "Google LLC",
              "status": "active",
              "is_branch": true,
              "jurisdiction": {
                "country": "United States of America",
                "country_code": "US",
                "jurisdiction_code": "us_sc"
              }
            },
            {
              "id": "le_2ZARUQAF1lba0EhCFyRfl",
              "entity_id": null,
              "name": "GOOGLE LLC",
              "status": "active",
              "is_branch": false,
              "jurisdiction": {
                "country": "United States of America",
                "country_code": "US",
                "jurisdiction_code": "us_ct"
              }
            }
          ],
          "metadata": {
            "total": 5,
            "returned": 5,
            "query_time_ms": 42
          },
          "request_id": "req_31ffecAT4FNPZDDVD1gZw"
        }
      },
      "HierarchyResponse_NotStarted": {
        "summary": "No research exists yet",
        "value": {
          "entity_id": "siq_303bOyvScnpCchGvOckDr",
          "status": "not_started",
          "data": null,
          "last_researched_at": null,
          "request_id": "req_31ktmKZbyd9zqFCNxlwhc"
        }
      },
      "HierarchyResponse_InProgress": {
        "summary": "Research currently running",
        "value": {
          "entity_id": "siq_303bOyvScnpCchGvOckDr",
          "status": "in_progress",
          "data": null,
          "last_researched_at": null,
          "request_id": "req_31ktmKZbyd9zqFCNxlwhc"
        }
      },
      "HierarchyResponse_Failed": {
        "summary": "Research failed",
        "value": {
          "entity_id": "siq_303bOyvScnpCchGvOckDr",
          "status": "failed",
          "data": null,
          "last_researched_at": null,
          "request_id": "req_31ktmKZbyd9zqFCNxlwhc",
          "message": "Research failed due to insufficient data sources"
        }
      },
      "HierarchyResponse_POST_Accepted": {
        "summary": "New research request submitted",
        "value": {
          "entity_id": "siq_303bOyvScnpCchGvOckDr",
          "status": "in_progress",
          "data": null,
          "last_researched_at": null,
          "request_id": "req_31ktmKZbyd9zqFCNxlwhc",
          "message": "Research submitted. Expected completion in 10-20 minutes."
        }
      },
      "HierarchyResponse_POST_AlreadyInProgress": {
        "summary": "Research already in progress (deduplication)",
        "value": {
          "entity_id": "siq_303bOyvScnpCchGvOckDr",
          "status": "in_progress",
          "data": null,
          "last_researched_at": null,
          "request_id": "req_31ktmKZbyd9zqFCNxlwhc",
          "message": "Research already in progress"
        }
      },
      "HierarchyResponse_Completed": {
        "summary": "Completed research with full hierarchy data (MG Motor UK example)",
        "value": {
          "entity_id": "siq_303bOyvScnpCchGvOckDr",
          "status": "completed",
          "data": {
            "entities": [
              {
                "id": "e1",
                "name": "MG MOTOR UK LTD",
                "country_code": "GB",
                "jurisdiction": "England and Wales",
                "organization_type": "business",
                "is_publicly_traded": false
              },
              {
                "id": "e2",
                "name": "SAIC MOTOR UK HOLDING CO., LTD.",
                "country_code": "GB",
                "jurisdiction": "England and Wales",
                "organization_type": "business",
                "is_publicly_traded": false
              },
              {
                "id": "e3",
                "name": "SAIC MOTOR INTERNATIONAL UK LTD",
                "country_code": "GB",
                "jurisdiction": "England and Wales",
                "organization_type": "business",
                "is_publicly_traded": false
              },
              {
                "id": "e4",
                "name": "SAIC Motor Corporation Limited",
                "country_code": "CN",
                "jurisdiction": "People's Republic of China",
                "organization_type": "business",
                "is_publicly_traded": true
              },
              {
                "id": "e5",
                "name": "Shanghai Automotive Industry Corporation (Group)",
                "country_code": "CN",
                "jurisdiction": "People's Republic of China",
                "organization_type": "business",
                "is_publicly_traded": false
              },
              {
                "id": "e6",
                "name": "Shanghai State-owned Assets Supervision and Administration Commission (Shanghai SASAC)",
                "country_code": "CN",
                "jurisdiction": "Shanghai Municipality, People's Republic of China",
                "organization_type": "government",
                "is_publicly_traded": false
              },
              {
                "id": "e7",
                "name": "MG Sales Centre Limited",
                "country_code": "GB",
                "jurisdiction": "England and Wales",
                "organization_type": "business",
                "is_publicly_traded": false
              }
            ],
            "relationships": [
              {
                "id": "r1",
                "to": "e1",
                "from": "e2",
                "established_date": "2005-02-15",
                "relationship_type": "owns",
                "ownership_percentage": null
              },
              {
                "id": "r2",
                "to": "e7",
                "from": "e1",
                "established_date": "2018",
                "relationship_type": "owns",
                "ownership_percentage": null
              },
              {
                "id": "r3",
                "to": "e2",
                "from": "e4",
                "established_date": null,
                "relationship_type": "holding_company",
                "ownership_percentage": null
              },
              {
                "id": "r4",
                "to": "e3",
                "from": "e4",
                "established_date": null,
                "relationship_type": "owns",
                "ownership_percentage": null
              },
              {
                "id": "r5",
                "to": "e4",
                "from": "e5",
                "established_date": null,
                "relationship_type": "majority_owns",
                "ownership_percentage": 62.69
              },
              {
                "id": "r6",
                "to": "e5",
                "from": "e6",
                "established_date": null,
                "relationship_type": "government_owns",
                "ownership_percentage": null
              }
            ],
            "evidence": [
              "http://companycheck.co.uk/company/05779958/MG-MOTOR-UK-LTD",
              "https://en.wikipedia.org/wiki/MG_Cars",
              "https://en.wikipedia.org/wiki/MG_Motor",
              "https://en.wikipedia.org/wiki/SAIC_Motor",
              "https://find-and-update.company-information.service.gov.uk/company/05586826",
              "https://find-and-update.company-information.service.gov.uk/company/05779958",
              "https://www.saicmotor.com/english/images/investor_relations/annual_report/2024/5/31/DE63B019CA9A441FA0801360B6121A6E.pdf"
            ],
            "summary_short": "MG Motor UK Ltd is a subsidiary of SAIC Motor Corporation Limited, which holds a 62.69% majority stake. Ultimate control lies with Shanghai Automotive Industry Corporation (Group), overseen by the Shanghai State-owned Assets Supervision and Administration Commission.",
            "summary_long": "MG Motor UK Ltd is a private limited company operating in the retail automotive sector, specifically the sale of new cars and light motor vehicles. Its immediate parent company is SAIC Motor UK Holding Co., LTD. The ownership structure extends beyond SAIC Motor UK Holding Co., LTD. SAIC Motor Corporation Limited holds a 62.69% majority stake in Shanghai Automotive Industry Corporation (Group). This indicates an indirect ownership of MG Motor UK LTD by SAIC Motor Corporation Limited through its control of SAIC Motor UK Holding Co., LTD. The ultimate controlling entity is the Shanghai Automotive Industry Corporation (Group), which is under the oversight of the Shanghai State-owned Assets Supervision and Administration Commission (SASAC). SASAC, a government agency directly under the Municipal Government of Shanghai, is authorized to supervise municipal state-owned assets.",
            "ownership_chain": [
              {
                "entity_id": "e1",
                "parent_id": "e2",
                "relationship_type": "owns",
                "ownership_percentage": null
              },
              {
                "entity_id": "e2",
                "parent_id": "e4",
                "relationship_type": "holding_company",
                "ownership_percentage": null
              },
              {
                "entity_id": "e4",
                "parent_id": "e5",
                "relationship_type": "majority_owns",
                "ownership_percentage": 62.69
              },
              {
                "entity_id": "e5",
                "parent_id": "e6",
                "relationship_type": "government_owns",
                "ownership_percentage": null
              }
            ],
            "target_entity": {
              "id": "e1",
              "name": "MG MOTOR UK LTD"
            },
            "ultimate_parent": {
              "id": "e6",
              "name": "Shanghai State-owned Assets Supervision and Administration Commission (Shanghai SASAC)"
            },
            "mermaid_diagram": "graph TD\n  e2[SAIC MOTOR UK HOLDING CO., LTD.]-->|2005-02-15|e1[MG MOTOR UK LTD]\n  e1[MG MOTOR UK LTD]-->|2018|e7[MG Sales Centre Limited]\n  e4[SAIC Motor Corporation Limited]-->e2[SAIC MOTOR UK HOLDING CO., LTD.]\n  e4[SAIC Motor Corporation Limited]-->e3[SAIC MOTOR INTERNATIONAL UK LTD]\n  e5[Shanghai Automotive Industry Corporation Group]-->|62.69%|e4[SAIC Motor Corporation Limited]\n  e6[Shanghai State-owned Assets Supervision and Administration Commission Shanghai SASAC]-->e5[Shanghai Automotive Industry Corporation Group]"
          },
          "last_researched_at": "2025-10-14T21:37:51.095Z",
          "request_id": "req_31ktmKZbyd9zqFCNxlwhc"
        }
      },
      "ResolutionMatched": {
        "summary": "Datadog resolved by name and location, with include=basis",
        "value": {
          "type": "business",
          "basis": [
            {
              "field": "description",
              "citations": [
                {
                  "url": "https://www.linkedin.com/company/datadog",
                  "excerpt": "Datadog is the essential monitoring platform for cloud applications. We bring together data from servers, containers, databases, and third-party services to make your stack entirely observable. These capabilities help DevOps teams avoid downtime, resolve performance issues, and ensure customers are getting the best user experience.",
                  "source_type": "public_profile",
                  "authority_tier": 2
                },
                {
                  "url": "https://datadoghq.com",
                  "excerpt": "Datadog, Inc. provides software solutions. The Company offers cloud-based monitoring and analytics platform which integrates and automates infrastructure monitoring, application performance monitoring, and log management for real-time observability of customers. Datadog operates worldwide.",
                  "source_type": "public_profile",
                  "authority_tier": 2
                },
                {
                  "url": "https://www.crunchbase.com/organization/datadog",
                  "excerpt": "Datadog is an observability and security platform that offers infrastructure, applications, software development, and monitoring services. It brings together data from servers, containers, databases, and third-party services to make your stack entirely observable. These capabilities help DevOps teams avoid downtime, resolve performance issues, and ensure customers are getting the best user experience.",
                  "source_type": "public_profile",
                  "authority_tier": 2
                },
                {
                  "url": "https://en.wikipedia.org/wiki/Datadog",
                  "excerpt": "Datadog, Inc. is an American company that provides an observability service for cloud-scale applications, providing monitoring of servers, databases, tools, ...",
                  "source_type": "web",
                  "authority_tier": 3
                },
                {
                  "url": "kg:Datadog",
                  "excerpt": "Software company",
                  "source_type": "web",
                  "authority_tier": 3
                },
                {
                  "url": "sec-registrant:1561550",
                  "excerpt": "SEC EDGAR: \"Datadog, Inc.\" is the registered public-company name (CIK 1561550, ticker DDOG), incorporated in NV, USA. If resolving this registrant, the legal identity and home jurisdiction above are authoritative; a same-name registration in another state is a different entity unless it is this company's own filing.",
                  "source_type": "web",
                  "authority_tier": 3
                }
              ],
              "reasoning": "Corroborated by the cited public sources below.",
              "confidence": "high"
            },
            {
              "field": "facets.legal_form",
              "citations": [
                {
                  "url": "https://corp.delaware.gov/",
                  "excerpt": "DATADOG, INC. — Delaware registration 4832851, status ACTIVE",
                  "source_type": "government_registry",
                  "authority_tier": 1
                }
              ],
              "reasoning": "Mapped from the resolved entity's legal-structure classification.",
              "confidence": "high"
            },
            {
              "field": "facets.sector",
              "citations": [],
              "reasoning": "Public: a public-markets identifier (CIK / ticker) is present on the resolved entity.",
              "confidence": "medium"
            },
            {
              "field": "identifiers.0.value",
              "citations": [
                {
                  "url": "https://corp.delaware.gov/",
                  "excerpt": "DATADOG, INC. — Delaware registration 4832851, status ACTIVE",
                  "source_type": "government_registry",
                  "authority_tier": 1
                }
              ],
              "reasoning": "Registration number from the matched government registry record.",
              "confidence": "high"
            },
            {
              "field": "industry",
              "citations": [
                {
                  "url": "https://www.linkedin.com/company/datadog",
                  "excerpt": "Datadog is the essential monitoring platform for cloud applications. We bring together data from servers, containers, databases, and third-party services to make your stack entirely observable. These capabilities help DevOps teams avoid downtime, resolve performance issues, and ensure customers are getting the best user experience.",
                  "source_type": "public_profile",
                  "authority_tier": 2
                },
                {
                  "url": "https://datadoghq.com",
                  "excerpt": "Datadog, Inc. provides software solutions. The Company offers cloud-based monitoring and analytics platform which integrates and automates infrastructure monitoring, application performance monitoring, and log management for real-time observability of customers. Datadog operates worldwide.",
                  "source_type": "public_profile",
                  "authority_tier": 2
                },
                {
                  "url": "https://www.crunchbase.com/organization/datadog",
                  "excerpt": "Datadog is an observability and security platform that offers infrastructure, applications, software development, and monitoring services. It brings together data from servers, containers, databases, and third-party services to make your stack entirely observable. These capabilities help DevOps teams avoid downtime, resolve performance issues, and ensure customers are getting the best user experience.",
                  "source_type": "public_profile",
                  "authority_tier": 2
                },
                {
                  "url": "https://en.wikipedia.org/wiki/Datadog",
                  "excerpt": "Datadog, Inc. is an American company that provides an observability service for cloud-scale applications, providing monitoring of servers, databases, tools, ...",
                  "source_type": "web",
                  "authority_tier": 3
                },
                {
                  "url": "kg:Datadog",
                  "excerpt": "Software company",
                  "source_type": "web",
                  "authority_tier": 3
                },
                {
                  "url": "sec-registrant:1561550",
                  "excerpt": "SEC EDGAR: \"Datadog, Inc.\" is the registered public-company name (CIK 1561550, ticker DDOG), incorporated in NV, USA. If resolving this registrant, the legal identity and home jurisdiction above are authoritative; a same-name registration in another state is a different entity unless it is this company's own filing.",
                  "source_type": "web",
                  "authority_tier": 3
                }
              ],
              "reasoning": "Industry classification: NAICS from the cited business activity; SIC (when present) derived from NAICS via crosswalk.",
              "confidence": "medium"
            },
            {
              "field": "legal_name",
              "citations": [
                {
                  "url": "https://corp.delaware.gov/",
                  "excerpt": "DATADOG, INC. — Delaware registration 4832851, status ACTIVE",
                  "source_type": "government_registry",
                  "authority_tier": 1
                },
                {
                  "url": "https://datadoghq.com",
                  "excerpt": "Datadog, Inc. provides software solutions. The Company offers cloud-based monitoring and analytics platform which integrates and automates infrastructure monitoring, application performance monitoring, and log management for real-time observability of customers. Datadog operates worldwide.",
                  "source_type": "public_profile",
                  "authority_tier": 2
                },
                {
                  "url": "https://en.wikipedia.org/wiki/Datadog",
                  "excerpt": "Datadog, Inc. is an American company that provides an observability service for cloud-scale applications, providing monitoring of servers, databases, tools, ...",
                  "source_type": "web",
                  "authority_tier": 3
                },
                {
                  "url": "sec-registrant:1561550",
                  "excerpt": "SEC EDGAR: \"Datadog, Inc.\" is the registered public-company name (CIK 1561550, ticker DDOG), incorporated in NV, USA. If resolving this registrant, the legal identity and home jurisdiction above are authoritative; a same-name registration in another state is a different entity unless it is this company's own filing.",
                  "source_type": "web",
                  "authority_tier": 3
                }
              ],
              "reasoning": "Government records provide a clear legal name and jurisdiction. Multiple web sources corroborate the legal name and provide detailed business activity descriptions. The primary legal name 'DATADOG, INC.' is consistently found in authoritative government records with active status. Delaware is identified as the formation jurisdiction in multiple sources. While some SEC filings mention NV, Delaware is more consistently cited as the primary incorporation state in the provided government records. The business activity is well-described across multiple high-confidence web sources. The presence of a branch in Massachusetts is noted.",
              "confidence": "high"
            },
            {
              "field": "primary_legal_entity.jurisdiction",
              "citations": [
                {
                  "url": "https://corp.delaware.gov/",
                  "excerpt": "DATADOG, INC. — Delaware registration 4832851, status ACTIVE",
                  "source_type": "government_registry",
                  "authority_tier": 1
                }
              ],
              "reasoning": "Formation jurisdiction from the matched government registry record.",
              "confidence": "high"
            },
            {
              "field": "status",
              "citations": [
                {
                  "url": "https://corp.delaware.gov/",
                  "excerpt": "DATADOG, INC. — Delaware registration 4832851, status ACTIVE",
                  "source_type": "government_registry",
                  "authority_tier": 1
                }
              ],
              "reasoning": "Status taken from the matched government registry record.",
              "confidence": "high"
            }
          ],
          "entity": {
            "id": "siq_33d67jj0wJESjEdFHMhuQ",
            "facets": {
              "sector": "public",
              "legal_form": "corporation"
            },
            "status": "active",
            "website": "https://www.datadoghq.com/",
            "industry": {
              "schemes": {
                "sic": [
                  {
                    "code": "7372",
                    "label": "Prepackaged Software",
                    "confidence": 95,
                    "is_primary": true
                  }
                ],
                "naics_2022": [
                  {
                    "code": "513210",
                    "label": "Software Publishers",
                    "confidence": 95,
                    "is_primary": true
                  },
                  {
                    "code": "541511",
                    "label": "Custom Computer Programming Services",
                    "confidence": 80,
                    "is_primary": false
                  },
                  {
                    "code": "51",
                    "label": "Information",
                    "confidence": 90,
                    "is_primary": false
                  }
                ]
              }
            },
            "legal_name": "DATADOG, INC.",
            "description": "Datadog is a leading cloud monitoring and security platform that provides AI-powered observability solutions for cloud-scale applications. Its SaaS-based data analytics platform enables businesses to gain comprehensive visibility into their entire technology stack, from infrastructure to applications, helping DevOps teams prevent downtime, resolve performance issues, and ensure optimal user experience.",
            "identifiers": [
              {
                "type": "registration_id",
                "value": "4832851",
                "jurisdiction": "US-DE"
              },
              {
                "type": "cik",
                "value": "0001561550",
                "jurisdiction": null
              },
              {
                "type": "lei",
                "value": "549300F6JNO0KRPO1K63",
                "jurisdiction": null
              }
            ],
            "display_name": "Datadog",
            "headquarters": {
              "address": {
                "street_address": "620 8th Ave, 45th Floor",
                "street_number": null,
                "sub_premise": null,
                "city": "New York",
                "state": "New York",
                "state_code": "NY",
                "postal_code": "10018",
                "country": "United States",
                "country_code": "US",
                "formatted_address": "620 8th Ave, 45th Floor, New York, New York 10018, United States"
              }
            },
            "matching_branch": null,
            "primary_legal_entity": {
              "id": "le_2Zp3Yy6S7O6Btccq56WOH",
              "state_code": "DE",
              "country_code": "US",
              "jurisdiction": "US-DE",
              "registration_authority": {
                "id": 1024,
                "code": "RA000602",
                "name": "Division of Corporations, Department of State",
                "website": "https://corp.delaware.gov/",
                "country_code": "US",
                "jurisdiction": "Delaware",
                "organization": "Division of Corporations, Department of State"
              }
            }
          },
          "status": "matched",
          "actions": [],
          "factors": [
            {
              "code": "name_exact_match",
              "type": "strength",
              "impact": "Strong identifier for the correct entity.",
              "description": "The name 'Datadog' provided in the query exactly matches the entity's common name."
            },
            {
              "code": "headquarters_match",
              "type": "strength",
              "impact": "Confirms this is the primary legal entity location.",
              "description": "The requested location 'New York, NY' precisely matches the entity's registered headquarters."
            },
            {
              "code": "legal_entity_confirmed",
              "type": "strength",
              "impact": "Confirms a valid legal entity through official sources.",
              "description": "This has been definitively confirmed as the primary legal entity through official registration sources."
            },
            {
              "code": "registry_identifier_anchored",
              "type": "strength",
              "impact": "Safe to use for deterministic record matching and deduplication.",
              "description": "The match is anchored by a stable government registry identifier."
            }
          ],
          "subtype": "incorporated_entity",
          "metadata": {
            "query": {
              "mode": "standard",
              "name": "Datadog",
              "context": null,
              "location": "New York, NY",
              "classification": "specific"
            },
            "from_cache": true,
            "updated_at": "2026-07-31T19:22:05.042Z",
            "cache_hit_type": "exact"
          },
          "candidate": null,
          "run_id": "run_344tSxhAVACWbuENINJ9D",
          "match_confidence": 100
        }
      },
      "EntityRecord": {
        "summary": "The full record for the resolved entity",
        "value": {
          "status": "matched",
          "merged_into": null,
          "entity": {
            "id": "siq_33d67jj0wJESjEdFHMhuQ",
            "status": "active",
            "description": "Datadog is a leading cloud monitoring and security platform that provides AI-powered observability solutions for cloud-scale applications. Its SaaS-based data analytics platform enables businesses to gain comprehensive visibility into their entire technology stack, from infrastructure to applications, helping DevOps teams prevent downtime, resolve performance issues, and ensure optimal user experience.",
            "headquarters": {
              "address": {
                "street_address": "620 8th Ave, 45th Floor",
                "street_number": null,
                "sub_premise": null,
                "city": "New York",
                "state": "New York",
                "state_code": "NY",
                "postal_code": "10018",
                "country": "United States",
                "country_code": "US",
                "formatted_address": "620 8th Ave, 45th Floor, New York, New York 10018, United States"
              }
            },
            "website": "https://www.datadoghq.com/",
            "primary_legal_entity": {
              "id": "le_2Zp3Yy6S7O6Btccq56WOH",
              "jurisdiction": "US-DE",
              "state_code": "DE",
              "country_code": "US",
              "registration_authority": {
                "id": 1024,
                "code": "RA000602",
                "name": "Division of Corporations, Department of State",
                "organization": "Division of Corporations, Department of State",
                "jurisdiction": "Delaware",
                "country_code": "US",
                "website": "https://corp.delaware.gov/"
              }
            },
            "identifiers": [
              {
                "type": "registration_id",
                "value": "4832851",
                "jurisdiction": "US-DE"
              },
              {
                "type": "cik",
                "value": "0001561550",
                "jurisdiction": null
              },
              {
                "type": "lei",
                "value": "549300F6JNO0KRPO1K63",
                "jurisdiction": null
              }
            ],
            "matching_branch": null,
            "type": "business",
            "subtype": "incorporated_entity",
            "attributes": {
              "domain": "datadoghq.com",
              "employee_count": 3001,
              "employee_range": "1K-5K",
              "revenue": 3672030976,
              "revenue_range": "$1B-$10B",
              "founding_date": "2010-01-01",
              "stock_ticker": "DDOG",
              "exchange": "NASDAQ",
              "is_public": true,
              "market_cap": 91027922944,
              "funding_total_usd": null,
              "funding_rounds_count": 10
            },
            "classification": {
              "sector": "Technology",
              "industry": "Computer Software",
              "sub_industry": "Cloud Software",
              "business_tags": [
                "Cloud Monitoring",
                "Observability",
                "SaaS",
                "AIOps",
                "Application Performance Monitoring",
                "Cloud Security",
                "IT Infrastructure Monitoring",
                "DevOps Tools"
              ],
              "market_segments": [
                "b2b"
              ],
              "revenue_models": [
                "subscription"
              ],
              "products_services": [
                "Infrastructure Monitoring",
                "Application Performance Monitoring (APM)",
                "Log Management",
                "Cloud Security",
                "Digital Experience Monitoring",
                "Network Performance Monitoring"
              ]
            },
            "operational_presence": [
              {
                "id": "op_33ZbC5x7TWMqjRnGBE88L",
                "country_code": "US",
                "country": "United States of America",
                "count": 4,
                "is_home_jurisdiction": true
              }
            ],
            "social_profiles": {
              "crunchbase": {
                "handle": "datadog"
              },
              "linkedin": {
                "handle": "company/datadog"
              },
              "facebook": {
                "handle": "datadoghq"
              }
            },
            "facets": {
              "sector": "public",
              "legal_form": "corporation"
            },
            "industry": {
              "schemes": {
                "naics_2022": [
                  {
                    "code": "513210",
                    "label": "Software Publishers",
                    "is_primary": true,
                    "confidence": 95
                  },
                  {
                    "code": "541511",
                    "label": "Custom Computer Programming Services",
                    "is_primary": false,
                    "confidence": 80
                  },
                  {
                    "code": "51",
                    "label": "Information",
                    "is_primary": false,
                    "confidence": 90
                  }
                ],
                "sic": [
                  {
                    "code": "7372",
                    "label": "Prepackaged Software",
                    "is_primary": true,
                    "confidence": 95
                  }
                ]
              }
            },
            "legal_name": "DATADOG, INC.",
            "display_name": "Datadog"
          },
          "request_id": "req_344u0qy2y3M8aaO9EGfL4",
          "enrichment": {
            "status": "complete",
            "updated_at": "2026-07-31T19:22:05.042Z"
          }
        }
      },
      "DomainIntelligence": {
        "summary": "Datadog, resolved from its domain",
        "value": {
          "domain": "datadoghq.com",
          "status": "complete",
          "data": {
            "status": "matched",
            "confidence": 98,
            "type": "business",
            "subtype": "incorporated_entity",
            "entity": {
              "id": "siq_33d67jj0wJESjEdFHMhuQ",
              "display_name": "Datadog",
              "legal_name": "Datadog, Inc.",
              "status": "active",
              "description": "Datadog, Inc. is an American company that provides an AI-powered observability and security platform for cloud-scale applications. Its SaaS-based data analytics platform enables businesses to monitor servers, containers, databases, and third-party services, offering solutions for infrastructure monitoring, application performance monitoring, log management, and cloud security. The platform helps DevOps teams prevent downtime, resolve performance issues, and ensure optimal user experience by making their entire technology stack observable.",
              "website": "https://www.datadoghq.com/",
              "headquarters": {
                "address": {
                  "street_address": "620 8th Ave, 45th Floor",
                  "street_number": "620",
                  "sub_premise": "45th Floor",
                  "city": "New York",
                  "state": "New York",
                  "state_code": "NY",
                  "postal_code": "10018",
                  "country": "United States",
                  "country_code": "US",
                  "formatted_address": "620 8th Ave, 45th Floor, New York, New York 10018, United States"
                }
              },
              "primary_legal_entity": {
                "id": "le_33ZaMFuXb9ypDhieUu9ld",
                "jurisdiction": "US-NV",
                "state_code": "NV",
                "country_code": "US"
              },
              "identifiers": [
                {
                  "type": "registration_id",
                  "value": "NV20263564978",
                  "jurisdiction": "US-NV"
                },
                {
                  "type": "cik",
                  "value": "0001561550",
                  "jurisdiction": null
                },
                {
                  "type": "lei",
                  "value": "549300F6JNO0KRPO1K63",
                  "jurisdiction": null
                },
                {
                  "type": "ticker",
                  "value": "DDOG",
                  "jurisdiction": null
                }
              ],
              "matching_branch": null
            },
            "candidate": null,
            "factors": [
              {
                "code": "website_official_status",
                "type": "strength",
                "impact": "Confirms this is the entity's official website.",
                "description": "The domain 'datadoghq.com' clearly functions as the official website for Datadog."
              },
              {
                "code": "legal_entity_confirmed_on_website",
                "type": "strength",
                "impact": "Confirms the legal entity operating this domain.",
                "description": "The legal entity 'DATADOG, INC.' is identified and confirmed within the domain's legal information."
              },
              {
                "code": "domain_content_matches_entity",
                "type": "strength",
                "impact": "Confirms this is the entity's official domain.",
                "description": "Domain content, branding, and services on 'datadoghq.com' strongly align with Datadog's operations."
              },
              {
                "code": "consistent_entity_references",
                "type": "strength",
                "impact": "Eliminates ambiguity about domain ownership.",
                "description": "Multiple pages across 'datadoghq.com' consistently reference Datadog and its corporate identity."
              }
            ],
            "actions": [],
            "domain_intelligence": {
              "domain": "datadoghq.com",
              "url": "https://www.datadoghq.com/",
              "domain_aliases": [],
              "description": "Datadog, Inc. is an American technology company that provides a cloud monitoring and analytics platform. Its core business involves offering software solutions for infrastructure monitoring, application performance management, log management, and security monitoring. The company helps businesses gain comprehensive visibility into their cloud applications and IT environments, enabling them to optimize performance, enhance security, and manage costs.",
              "tranco_rank": 739,
              "website_status": {
                "status": 200,
                "is_resolvable": true,
                "is_webserver_responsive": true,
                "has_content": true,
                "failure_reason": null,
                "last_checked": "2026-08-27T21:11:59.190Z"
              },
              "social_profiles": {
                "linkedin": {
                  "handle": "company/datadog"
                },
                "facebook": {
                  "handle": null
                },
                "crunchbase": {
                  "handle": null
                },
                "twitter": {
                  "handle": "datadoghq"
                }
              },
              "classification": {
                "sector": "Technology",
                "industry": "Software & Services",
                "sub_industry": "Enterprise Software",
                "market_segments": [
                  "b2b"
                ],
                "revenue_models": [
                  "subscription",
                  "usage_based"
                ],
                "products_services": [
                  "Infrastructure Monitoring",
                  "Application Performance Monitoring (APM)",
                  "Log Management",
                  "Security Monitoring",
                  "Real User Monitoring (RUM)",
                  "Synthetic Monitoring",
                  "Cloud Cost Management",
                  "AI Integrations"
                ],
                "business_tags": [
                  "Cloud Monitoring",
                  "Observability Platform",
                  "DevOps Tools",
                  "IT Operations Management",
                  "Performance Management",
                  "Security Analytics",
                  "SaaS",
                  "Data Analytics",
                  "Cloud Computing",
                  "AI-powered Monitoring"
                ]
              },
              "domain_context": {
                "domain_type": "corporate_website",
                "domain_relationship": "direct_owner",
                "domain_purpose": "The primary online presence for Datadog, Inc., used for marketing products, providing customer support, and corporate communications.",
                "business_relevance": "This domain is central to Datadog's business operations, serving as the main channel for customer engagement, product information dissemination, and brand identity."
              },
              "is_disposable_email_provider": false,
              "industry": {
                "schemes": {
                  "naics_2022": [
                    {
                      "code": "513210",
                      "label": "Software Publishers",
                      "is_primary": true,
                      "confidence": 95
                    },
                    {
                      "code": "541511",
                      "label": "Custom Computer Programming Services",
                      "is_primary": false,
                      "confidence": 80
                    },
                    {
                      "code": "51",
                      "label": "Information",
                      "is_primary": false,
                      "confidence": 90
                    }
                  ]
                }
              }
            }
          },
          "message": null,
          "metadata": {
            "last_updated": "2026-08-20T18:43:39.219Z",
            "processing_started_at": null,
            "estimated_completion": null
          }
        }
      }
    }
  }
}