{
  "openapi": "3.1.0",
  "info": {
    "title": "Netstate KYB API",
    "version": "1.0.0",
    "description": "Netstate is a KYB API and business verification platform for US and Canadian companies, built to discover, verify and monitor them against the official public record. It covers 128 million companies across every US state, DC, Puerto Rico and Canada — registration status and good standing, officers, EIN, UCC liens, licenses and permits, federal contractor, loan and filing history, plus OpenSanctions and PEP screening — with every field cited to its government source. Teams use it for KYB, onboarding, underwriting and due diligence: Netstate resolves and screens the record; your people review it and make the decisions.\n\nThis document covers netstate.co: company and people search, the query taxonomy, sanctions & PEP screening and monitoring. Registry records on api.netstate.co (Secretary of State filings, UCC liens, licenses, permits and federal records) are in https://netstate.co/openapi/production.json; https://netstate.co/apis.json lists both.\n\nCall the API from a server, where the API key stays private: browsers cannot send the X-API-Key header, or make PUT and DELETE requests, cross-origin.\n\nPrices are per request at standard rates; Build pays 10% less and Growth 25% less.\n\n**Can I use Netstate data for credit or hiring decisions?** No. Netstate is not a consumer reporting agency, and its data may not be used for any purpose covered by the FCRA — decisions about credit, insurance, employment or housing. It is built for research and business due diligence, where your team reviews the records and makes the call.",
    "termsOfService": "https://netstate.co/terms",
    "contact": {
      "name": "Netstate",
      "url": "https://netstate.co/",
      "email": "hello@netstate.co"
    }
  },
  "servers": [
    {
      "url": "https://netstate.co"
    }
  ],
  "paths": {
    "/v1/search": {
      "get": {
        "operationId": "search_companies",
        "summary": "Search companies",
        "description": "Company search by name, officer or director, phone, email or website — same filters and facet counts as the website.\n\nSend q, a filter, or both; neither gets 400 missing_query. Values in one list filter OR together, filters AND together, and has needs every value listed.\n\nAccess: API key.",
        "tags": [
          "search"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Company name or name fragment, an officer or director name, or an exact phone number, email or website. Optional when a filter is set: the response then browses the filtered companies.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Registration jurisdictions: \"us-\" or \"ca-\" plus the two-letter state or province code, e.g. us-de,ca-on.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Registry status.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "active",
                  "inactive",
                  "dissolved",
                  "suspended",
                  "revoked",
                  "withdrawn",
                  "canceled",
                  "merged",
                  "expired",
                  "pending",
                  "unknown",
                  "other"
                ]
              }
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Entity type.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "llc",
                  "corporation",
                  "nonprofit",
                  "lp",
                  "llp",
                  "professional_corporation",
                  "professional_llc",
                  "other"
                ]
              }
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "naics",
            "in": "query",
            "required": false,
            "description": "Industry: a NAICS sector slug (23, or 31-33 for a sector spanning several codes) or a 2–6 digit NAICS code. Codes currently match at their 2-digit sector, so 7225 returns all of sector 72.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Formation decade.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "2020s",
                  "2010s",
                  "2000s",
                  "1990s",
                  "1980s",
                  "pre-1980"
                ]
              }
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "has",
            "in": "query",
            "required": false,
            "description": "Data on file; a company must have every value listed.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "officers",
                  "ein",
                  "naics",
                  "phone",
                  "revenue"
                ]
              }
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "revenue",
            "in": "query",
            "required": false,
            "description": "Estimated annual revenue band. For now this only requires a revenue estimate; the dollar bounds are not applied yet.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "under-1m",
                  "1m-10m",
                  "10m-100m",
                  "100m-1b",
                  "1b-plus"
                ]
              }
            },
            "style": "form",
            "explode": false
          },
          {
            "name": "rmin",
            "in": "query",
            "required": false,
            "description": "Minimum estimated annual revenue, in whole US dollars. For now this only requires a revenue estimate; the dollar bounds are not applied yet.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "rmax",
            "in": "query",
            "required": false,
            "description": "Maximum estimated annual revenue, in whole US dollars. For now this only requires a revenue estimate; the dollar bounds are not applied yet.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Result order: relevance by default, newest first when browsing without q.",
            "schema": {
              "type": "string",
              "enum": [
                "relevance",
                "newest",
                "oldest",
                "name"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "key"
      }
    },
    "/v1/people": {
      "get": {
        "operationId": "search_people",
        "summary": "Search people",
        "description": "People search — officers and directors grouped by name across the state registers, each with the companies that filed them.\n\nAccess: API key.",
        "tags": [
          "people"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Person name: an officer or director as the state registers file it.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "key"
      }
    },
    "/v1/meta": {
      "get": {
        "operationId": "list_jurisdictions",
        "summary": "List jurisdictions & industries",
        "description": "Taxonomy for building queries: countries, regions, cities, industries, statuses.\n\nAccess: no key required.",
        "tags": [
          "meta"
        ],
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Limit to one country slug, e.g. united-states.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "description": "Also list the cities of this region slug, e.g. pennsylvania; needs country.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [],
        "x-netstate-access": "open"
      }
    },
    "/v1/screen": {
      "get": {
        "operationId": "screen_sanctions",
        "summary": "Sanctions & PEP screening",
        "description": "Sanctions & PEP screening against OpenSanctions, $0.01 per request: a company and its people of record (state and number) or one name (name and kind); exact-name hits come with their list entries.\n\nSend state and number, or name; neither gets 400 missing_params.\n\nAccess: API key.",
        "tags": [
          "screen"
        ],
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Registration jurisdiction slug: \"us-\" or \"ca-\" plus the two-letter state or province code, e.g. us-de. With number, screens that company and its people of record.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "query",
            "required": false,
            "description": "Registration number in that jurisdiction.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "One name to screen instead of a company, up to 200 characters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "What name is: company (the default) or person.",
            "schema": {
              "type": "string",
              "enum": [
                "company",
                "person"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "key"
      }
    },
    "/v1/watchlists": {
      "get": {
        "operationId": "list_watchlist",
        "summary": "List monitored companies",
        "description": "Monitoring: the companies you watch, your plan's limit (Build 100, Growth 1,000) and where changes go.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "watchlists"
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      },
      "post": {
        "operationId": "watch_company",
        "summary": "Monitor a company",
        "description": "Watch a company — body { state, number }; it is re-checked daily for changes in status, officers, agent, address, filings, UCC liens, licenses, permits and sanctions/PEP matches.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "watchlists"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "description": "Registration jurisdiction slug: \"us-\" or \"ca-\" plus the two-letter state or province code, e.g. us-de."
                  },
                  "number": {
                    "type": "string",
                    "description": "Registration number in that jurisdiction."
                  }
                },
                "required": [
                  "state",
                  "number"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/watchlists/{state}/{number}": {
      "delete": {
        "operationId": "unwatch_company",
        "summary": "Stop monitoring a company",
        "description": "Stop watching a company (GET on the same path says whether you watch it).\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "watchlists"
        ],
        "parameters": [
          {
            "name": "state",
            "in": "path",
            "required": true,
            "description": "Registration jurisdiction slug: \"us-\" or \"ca-\" plus the two-letter state or province code, e.g. us-de.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "path",
            "required": true,
            "description": "Registration number in that jurisdiction.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    },
    "/v1/watchlists/events": {
      "get": {
        "operationId": "watchlist_events",
        "summary": "Changes in monitored companies",
        "description": "Change events for your watched companies, oldest first — the same events the webhook delivers.\n\nAccess: API key on a Build or Growth plan.",
        "tags": [
          "watchlists"
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Return events after this event id, e.g. evt_120, to page forward.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Events to return, 1–200 (default 50).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success: a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          },
          {
            "Bearer": []
          }
        ],
        "x-netstate-access": "plan"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your Netstate API key, from https://netstate.co/account."
      },
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "The same API key, sent as Authorization: Bearer <key>."
      }
    }
  },
  "externalDocs": {
    "description": "The Netstate KYB API",
    "url": "https://netstate.co/products/kyb-api"
  }
}