{"openapi":"3.1.0","info":{"title":"iGregulator API","version":"1.35.0","description":"REST API for gambling-licence verification: domain → operator → licence → status,\nread daily from fourteen regulator registers (UKGC, MGA, CW, KH, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA). Every status\ncarries the regulator page that published it and when we last read it there.\nA licence a register stops listing is reported as `not_in_register` — an\nobservation, never \"revoked\"; and a domain we do not find is \"not in the\nregisters we cover\", never \"unlicensed\".\n\n**Legal notice.** Information returned by this API is sourced from public\ngambling-regulator registers and is provided for informational purposes only.\nResults do not constitute legal advice or regulatory guidance. Customers are\nresponsible for their own compliance, KYB, and AML decisions and should\nconfirm critical licensing decisions against the issuing regulator. Full terms\nat https://igregulator.io/terms/; coverage methodology at\nhttps://igregulator.io/docs/coverage-methodology/.\n\nSix endpoints work without a key: `/v1/check`, `/v1/operators/search`,\n`/v1/jurisdictions` and `/v1/health/coverage` (10 requests per IP per hour,\ncounted per endpoint), plus `/v1/stats` and `/v1/health` (not limited). Every\nother endpoint needs an API key and is limited by its plan — see\nhttps://igregulator.io/docs/rate-limits/.\n\nAuthentication is `Authorization: Bearer <key>` — create an account at\nhttps://app.igregulator.io/signup, start a plan (Starter: the first 14 days are\nfree, card required) and generate a key at https://app.igregulator.io/api-keys.\n\nEvery error has the same body — `{ error, code, details: { reason, … } }`\n(the `ApiError` schema); an unknown `/v1/*` path is a 404 with\n`details.reason: route_not_found`.","contact":{"email":"founder@igregulator.io","url":"https://igregulator.io"},"license":{"name":"Proprietary","url":"https://igregulator.io/terms/"}},"servers":[{"url":"https://api.igregulator.io","description":"Production"}],"tags":[{"name":"Lookup","description":"Is this domain or licence number licensed, and by whom. The single check works without a key; the batch needs one."},{"name":"Jurisdictions","description":"The regulators we cover and the operators holding a licence record with each."},{"name":"Operators","description":"Operator search, detail, licences and regulatory actions."},{"name":"Licences","description":"One licence, and the history of its status."},{"name":"Geo-checks","description":"Does a domain serve a country? Requested per domain, checked from home internet connections in each country plus a browser render, and — when the answer is \"reachable\" — confirmed by a person on a screenshot before anyone sees it. An observation about what the site served on a date, never a licence status. Business: 10 domains per UTC month; Enterprise: no cap."},{"name":"Watchlist","description":"The operators an account watches, and a polling feed of their events. The watchlist also drives the `watchlist_only` filter on webhooks. API key only — not available to a signed-in MCP connection."},{"name":"Webhooks","description":"Push-based alerts. Create and update endpoints, rotate signing secrets, send a test event, list deliveries. There is no replay endpoint: a failed delivery is retried on its own schedule. Full protocol at https://igregulator.io/docs/webhooks/. API key only."},{"name":"Export","description":"Whole datasets as CSV or NDJSON — Pro and above. Full contract at https://igregulator.io/docs/export/."},{"name":"System","description":"Liveness, register freshness and headline counts. This document itself is served at https://api.igregulator.io/openapi.json."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key created at https://app.igregulator.io/api-keys (on a plan: Starter's first 14 days are free, card required), sent as `Authorization: Bearer <key>`.\n\nLimits are per account, by plan: Starter 10,000 requests / month and 5 / second; Pro 100,000 / month and 20 / second; Business no monthly quota, 100 / second.\nA larger plan is bought at https://app.igregulator.io/billing (by card, or by\ninvoice for three months or more), or email founder@igregulator.io if you need a\nhigher limit. A request that ends in\nan error (4xx / 5xx) is not counted against the monthly quota. See\nhttps://igregulator.io/docs/rate-limits/."}},"schemas":{"ApiErrorDetails":{"type":"object","required":["reason"],"description":"Always present. `reason` is always set; `field` and `suggestion` when they apply; limit errors add the numbers below.","properties":{"reason":{"type":"string","description":"Machine-readable refinement of the top-level `code` — branch on this. Values: `invalid_input`, `missing_required_parameter`, `conflicting_parameters`, `not_a_valid_hostname`, `hostname_too_long`, `invalid_pagination`, `invalid_cursor`, `since_exceeds_retention_window`, `invalid_event_type`, `invalid_jurisdiction`, `as_of_not_supported`, `api_key_missing`, `malformed_header`, `api_key_invalid`, `api_key_revoked`, `plan_inactive`, `plan_ended`, `export_requires_pro`, `geo_checks_require_business`, `watchlist_quota_exceeded`, `webhook_quota_exceeded`, `operator_not_found`, `license_not_found`, `jurisdiction_not_found`, `webhook_not_found`, `dataset_not_found`, `route_not_found`, `method_not_allowed`, `watchlist_duplicate`, `no_active_secret`, `quota_exceeded`, `monthly_request_limit_reached`, `per_second_limit_exceeded`, `watchlist_events_poll_limit`, `export_daily_limit_reached`, `geo_check_quota_exceeded`, `internal_error`. A rejected webhook URL carries the SSRF check's reason (`invalid_url`, `invalid_scheme`, `empty_host`, `blocked_hostname`, `unresolvable_host`, `private_ip_blocked`). New values can be added."},"field":{"type":"string","description":"Present only when the error maps to a specific request input (query param, path param, body key). Omitted for errors that aren't field-scoped (e.g. `rate_limited`, `auth_revoked`)."},"suggestion":{"type":"string","description":"A hint a person or an agent can act on. Present on every error today."},"limit":{"type":"integer","description":"On a limit error (429, and the 403 plan caps): the ceiling that was reached."},"current_usage":{"type":"integer","description":"On a keyed limit error: how much of `limit` is used. Not on the keyless per-IP 429 or the watchlist-poll 429."},"reset_at":{"type":"string","format":"date-time","description":"When the counter starts again — on the keyless per-IP 429, the monthly quota, the watchlist-poll limit and the export daily limit. Not on the per-second limit (retry after one second)."},"plan_tier":{"type":"string","description":"The key's plan, on plan-scoped limit errors and on `export_requires_pro`."},"required_plan":{"type":"string","description":"On `export_requires_pro`: the lowest plan that includes the feature."},"window":{"type":"string","description":"On `watchlist_events_poll_limit`: always `hour`."}},"additionalProperties":true},"ApiError":{"type":"object","required":["error","code","details"],"description":"The body of every non-2xx response.","properties":{"error":{"type":"string","description":"Human-readable summary. The wording can change; do not branch on it."},"code":{"type":"string","enum":["invalid_query","invalid_slug","invalid_license_id","invalid_jurisdiction_code","invalid_pagination","auth_required","auth_invalid","auth_revoked","payment_required","forbidden","not_found","method_not_allowed","conflict","quota_exceeded","rate_limited","server_error"],"description":"The error class. Mostly one per HTTP status, with two exceptions to know: `quota_exceeded` is a 429 for the monthly request quota and a 403 for a plan cap (watchlist size, webhook endpoints). A 409 carries `conflict` (it carried `invalid_query` before 1.24.0). Branch on the HTTP status and `details.reason`. `forbidden` is only ever sent to a signed-in MCP connection, never to an API key."},"details":{"$ref":"#/components/schemas/ApiErrorDetails"}}},"SingleMeta":{"type":"object","required":["scraped_at","source_modified_at","source_url","confidence_hint"],"description":"Single-resource provenance envelope — answers \"where did this come from and how fresh is it?\" for one record.","properties":{"scraped_at":{"type":"string","format":"date-time","description":"ISO-8601 timestamp when iGregulator's scraper last fetched this record."},"source_modified_at":{"type":["string","null"],"format":"date-time","description":"Reserved: when the regulator last modified the record on its register, as opposed to when we fetched it. **Always `null` today, for every jurisdiction** — we do not store an upstream modification time. Kept in the shape so clients need not branch if it is ever populated. For freshness use `scraped_at`; for when a licence's status was last read from its source, `status_observed_at` on the licence."},"source_url":{"type":["string","null"],"format":"uri","description":"The regulator page this answer rests on. For a licence — including a `/v1/check` match — it is the page that published the licence's current STATUS (`status_source_url`: an enforcement register, a revoked-licences list, an advisory notice), falling back to the register the licence is listed in when they are the same page. Null when not attributable to a single URL."},"confidence_hint":{"type":"string","enum":["authoritative","scraped","derived"],"description":"`authoritative` — UKGC: the Commission's own machine-readable register export (a ZIP). `scraped` — every other jurisdiction (MGA, CW, KH, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA): parsed from the published HTML/PDF pages or spreadsheet export; also every operator-search row. `derived` — a computed answer, not a direct lookup: a fuzzy or no-match /v1/check, with no source row behind it."}},"example":{"scraped_at":"2026-04-19T03:00:00Z","source_modified_at":null,"source_url":"https://www.gamblingcommission.gov.uk/downloads/business-licence-data.zip","confidence_hint":"authoritative"}},"ListMeta":{"type":"object","required":["freshness_range","total_sources"],"description":"Aggregate provenance envelope for list responses. Describes the freshness window of the returned rows.","properties":{"freshness_range":{"type":"object","required":["oldest","newest"],"description":"The oldest and newest timestamp among the returned rows — search: when each operator's licences were last verified; history: the events' `changed_at`. Both `null` when no row was returned.","properties":{"oldest":{"type":["string","null"],"format":"date-time"},"newest":{"type":["string","null"],"format":"date-time"}}},"total_sources":{"type":"integer","description":"On `/v1/licenses/{license_id}/history`: the number of distinct `source_url` values among the events. On `/v1/operators/search`: **always `1`** — a placeholder, not a count; do not read it."}},"example":{"freshness_range":{"oldest":"2026-04-18T03:00:00Z","newest":"2026-04-19T03:45:00Z"},"total_sources":1}},"LicenseStatus":{"type":"string","enum":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register"],"description":"Canonical licence status. Only `active` means \"licensed right now\". Every other value is \"not a pass\" — but three of them are **not** enforcement decisions, and a rule that lumps them in with `revoked` publishes a claim about a real business that no regulator made.\n\n**`not_in_register`** — the regulator's public register no longer lists this licence, since `not_listed_since`. An observation about the register, not a decision by the regulator: licences drop off because they expired, were surrendered, were renumbered, or the page had a bad day. Nobody published a reason and we do not invent one. It is **not** a revocation. (Until 2026-09-17 we reported this as `revoked`; that was wrong, every affected record has been corrected, and its history says so.)\n\n**`surrendered`** — the operator gave the licence up (UKGC publishes \"Surrendered\"; Kahnawake \"voluntary termination … in good standing\"; the Isle of Man GSC, on its Former Licence Holders list, \"Surrendered\"). Also not an enforcement decision: nobody took it away. 627 UKGC licences carried `revoked` for this until 2026-09-17.\n\n**`unknown`** — the register lists this licence and published a status we could not classify: a new phrase, a reworded sentence, a typo. We do not guess: two of our scrapers used to default an unreadable status to `active`, and that is precisely the bug this value exists to make impossible. Read `upstream_status` for the regulator's own words. For `UA` it is also what we store when the last thing PlayCity's register prints is a court's ruling on its decision — contested, so neither \"licensed\" nor \"revoked\"; there `upstream_status` is an English rendering of the register's line. (A `UA` licence the register says PlayCity terminated by its decision, with no grounds printed, is `revoked`, its `upstream_status` keeping that wording.)\n\nNone of these is a synonym for any other:\n\n- None of them means \"not licensed\" in the enforcement sense. Do not present them as such.\n- None of them means \"probably fine\". Do not treat them as a pass.\n\nA rule like `if (status === \"revoked\") block()` will silently let `surrendered`, `not_in_register` and `unknown` through. If your flow makes an automated allow/deny decision, **approve only on `active`** and escalate everything else to a human.\n\n`revoked` and `suspended` are only ever set from a regulator publication we actually read — an enforcement register, a revoked-licences page, an explicit status column — never from a licence disappearing. (The Isle of Man's Former Licence Holders list says `Cancelled` for a licence the Commission cancelled under s.13 of the Online Gambling Regulation Act 2001; we store that as `revoked`. Ukraine's PlayCity prints each licence's revocation, with its decision, on the licence's own row in its register; we store that as `revoked`, and a term it says has run out as `expired`.)\n\nSix registers publish nothing a revocation, suspension or exit can be read from, so neither value is ever set there: **`ON`** (iGaming Ontario's operator directory lists current operators and nothing else — a licence is `active` or `not_in_register`), **`SE`** (Spelinspektionen's register lists valid licences only — `active`, `not_in_register`, or `unknown` for a status word other than `Aktiv`), **`ES`** (the DGOJ states licence ends in prose resolutions and fines in a sanctions register, neither read as a status — `active` or `not_in_register`), **`BE`** (the Gaming Commission publishes lists of active licences and no list of warnings, suspensions or withdrawals — `active` or `not_in_register`; a licence still listed past its expiration date stays `active`), **`DE`** (the GGL's whitelist lists permitted operators only, and its public warnings are not licence statuses — `active` or `not_in_register`) and **`CO`** (Coljuegos' page lists its authorised online operators and publishes no structured list of ended concessions — `active` or `not_in_register`). Absence from any of them is `not_in_register`, never a revocation."},"Jurisdiction":{"type":"object","required":["code","name","country_code","website","currency","license_types"],"properties":{"code":{"type":"string","enum":["UKGC","MGA","CW","KH","AN","TGC","IOM","ON","SE","ES","BE","DE","CO","UA"],"description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names."},"name":{"type":"string","description":"The name of the body whose register we read — the same string `/v1/check` returns as `match.regulator_name`. That is the regulator everywhere but `ON`: there it is `iGaming Ontario`, which publishes the operator directory; the regulator that registers Ontario operators is the Alcohol and Gaming Commission of Ontario (AGCO). Do not write \"licensed by iGaming Ontario\"."},"country_code":{"type":"string","description":"ISO 3166-1 alpha-2 (`KM` for Anjouan, `CA` for Kahnawake, Tobique and Ontario)."},"website":{"type":"string","format":"uri","description":"The regulator's site — for `AN`, `TGC`, `IOM`, `ON`, `SE`, `ES`, `DE` and `CO` the register page itself, for `BE` the Gaming Commission's licences page (which links the register's three lists), for `UA` PlayCity's home page (which links the register PDF), for the others the home page. Not necessarily the page a licence's `source_url` cites."},"currency":{"type":"string","description":"ISO 4217 code of the jurisdiction's currency (`ANG` for Curaçao)."},"license_types":{"type":"array","items":{"type":"string"},"description":"A reference list of the regulator's licence categories, set by hand when we added the jurisdiction. **Do not validate a licence's `license_types` against it**: for `UKGC`, `CW`, `AN`, `TGC`, `IOM` and `SE` the two use the same words, but for `MGA` (licences carry `Type 1`–`Type 4` or the class) and `KH` (licences carry `Interactive Gaming Permit` / `CSPA`) they do not; for `ON` the list is empty, as is every Ontario licence's (the directory prints no licence type); for `ES` the list is the three general licences (`Apuestas`, `Concursos`, `Otros juegos`) — the words of a licence's `license_type_raw` — while its `license_types` are the singular licences under it (`Ruleta`, `Póquer`, …); for `BE` (`A+`, `B+`, `F1+`) and `DE` (`Virtuelle Automatenspiele`, `Online-Poker`, `Sportwetten`, `Pferdewetten im Internet`) the list is the classes and game types we load, the same words as a licence's; for `CO` it is the one concession type we load, `Juegos operados por internet`; for `UA` the three licence types we load, in English (`Online casino`, `Online poker`, `Bookmaking`), the same words as a licence's. The values licence records really carry are listed on `License.license_types`."}},"example":{"code":"UKGC","name":"UK Gambling Commission","country_code":"GB","website":"https://www.gamblingcommission.gov.uk","currency":"GBP","license_types":["Remote","Non-Remote","Ancillary Remote"]}},"Operator":{"type":"object","required":["id","slug","display_name","registered_name","country","upstream_ids","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string","description":"Lower-case, URL-safe; the key of `/v1/operators/{slug}`."},"display_name":{"type":"string"},"registered_name":{"type":["string","null"],"description":"The name the register gives next to the entity. For UKGC this is often the trading name (e.g. `bet365`, `paddy power`), not a legal name."},"country":{"type":["string","null"],"description":"`null` for almost every operator: the register loaders do not record a country. Only operators first seen through the Curaçao certificate registry carry one (`CW`). Do not filter on it."},"upstream_ids":{"type":"object","additionalProperties":{"type":"string"},"description":"The operator's id in each register it appears in, keyed by jurisdiction code."},"created_at":{"type":"string","format":"date-time","description":"When we first recorded the operator."},"updated_at":{"type":"string","format":"date-time","description":"When the operator's own row last changed (a rename) — NOT when we last read a register about it; for that use a licence's `last_verified_at` or the search row's `_meta.scraped_at`."}},"example":{"id":"fa30b85c-4749-4f91-9490-2615b76a4832","slug":"888-uk-limited","display_name":"888 UK Limited","registered_name":"888","country":null,"upstream_ids":{"UKGC":"39028"},"created_at":"2026-04-17T15:15:41.414Z","updated_at":"2026-04-17T15:15:41.414Z"}},"License":{"type":"object","required":["id","license_number","license_reference_is_ours","jurisdiction_code","status","status_qualifier","license_types","license_type_raw","license_category","issued_date","expiry_date","last_verified_at","raw_data","source_url","not_listed_since","status_source_url","status_observed_at","last_listed_at"],"properties":{"id":{"type":"string","format":"uuid","description":"The licence's iGregulator id — what `/v1/licenses/{license_id}` takes, and `match.license_id` on `/v1/check`."},"license_number":{"type":"string","examples":["039028-R-319297-014","IOM/OGRA/bm-solutions-iom-limited"],"description":"The licence number as the regulator's register prints it — **except for `KH` (Kahnawake), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario), `SE` (Sweden), `ES` (Spain), `BE` (Belgium), `DE` (Germany) and `UA` (Ukraine), whose registers publish none.** For those nine it is an **iGregulator reference** we assign: `KH/IG/<slug>` or `KH/CSPA/<slug>`, `TGC/B2C/<slug>` or `TGC/B2B/<slug>`, `IOM/OGRA/<company key>`, `ON/IGO/<iGaming Ontario directory id>`, `SE/ONLINE/<holder key>` or `SE/BETTING/<holder key>`, `ES/APUESTAS/<DGOJ profile slug>`, `ES/CONCURSOS/<…>` or `ES/OTROS-JUEGOS/<…>` (one per general licence), `BE/APLUS/<Gaming Commission dossier id>`, `BE/BPLUS/<…>` or `BE/F1PLUS/<…>` (one per licence class and dossier), `DE/SLOTS/<holder key>`, `DE/POKER/<…>`, `DE/SPORTS/<…>` or `DE/HORSES/<…>` (one per GGL game type), `UA/CASINO/<company code>/<decision date>/<decision number>`, `UA/POKER/<…>` or `UA/BETTING/<…>` (one per PlayCity issuing decision). The reference is stable and `/v1/check?license_number=` accepts it, but no regulator issued it: do not present it to a user as the licence number."},"license_reference_is_ours":{"type":"boolean","description":"`true` when `license_number` is an iGregulator reference, not a number the regulator published — every `KH`, `TGC`, `IOM`, `ON`, `SE`, `ES`, `BE`, `DE` and `UA` licence (their registers publish none). Never present such a reference to a user as the licence number. Same field as on a `/v1/check` match."},"jurisdiction_code":{"type":"string","enum":["UKGC","MGA","CW","KH","AN","TGC","IOM","ON","SE","ES","BE","DE","CO","UA"],"description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names."},"status":{"$ref":"#/components/schemas/LicenseStatus"},"status_qualifier":{"type":["string","null"],"enum":["provisional_under_assessment",null],"description":"When `status` is right but not the whole truth; same field as on a `/v1/check` match. `provisional_under_assessment`: a Curaçao licence the CGA register reads as \"Assessment in progress\" past its stated term — `active`, because the CGA keeps such a licence in force until it decides, but a decision is outstanding and `expiry_date` may already be past. Derived from the regulator's wording on every read. `null` otherwise."},"license_types":{"type":"array","items":{"type":"string"},"description":"The licence's type(s), in the register's own words. What each scraper stores today:\n\n- **UKGC** — `Remote`, `Non-Remote`, `Ancillary Remote` (one per licence)\n- **MGA** — the game types of the authorisation, `Type 1` … `Type 4` (several per licence), or its class (`B2C`, `B2B`) when the register gives no type\n- **CW** (Curaçao) — `B2C`, `B2B`\n- **KH** (Kahnawake) — `Interactive Gaming Permit`, `CSPA`\n- **AN** (Anjouan) — `B2C`, `B2B`, `White Labeling`\n- **TGC** (Tobique) — `B2C`, `B2B`\n- **IOM** (Isle of Man) — `Full`, `Network Services`, `Software Supply` (the Online Gambling Regulation Act 2001 licence types, as the register writes them)\n- **ON** (Ontario) — none: iGaming Ontario's operator directory prints no licence type, so the array is empty\n- **SE** (Sweden) — `Kommersiellt online` (commercial online gaming), `Kommersiellt vadhållning` (betting) — the only two of Spelinspektionen's licence types we load\n- **ES** (Spain) — the DGOJ's singular licences under the general one, in Spanish (`Ruleta`, `Black Jack`, `Póquer`, `Apuestas deportivas de contrapartida`, …); `license_type_raw` is the general licence: `Apuestas`, `Concursos` or `Otros juegos`\n- **BE** (Belgium) — `A+` (online casino games), `B+` (online arcade games), `F1+` (online betting): the Gaming Commission's online licence classes, each the online extension of a land licence — the only three we load\n- **DE** (Germany) — `Virtuelle Automatenspiele` (virtual slot games), `Online-Poker`, `Sportwetten` (sports betting), `Pferdewetten im Internet` (online horse-race betting): the four internet game types the GGL itself permits — the only four we load\n- **CO** (Colombia) — `Juegos operados por internet` (online gaming concession): Coljuegos' register prints no type; every licence we load is one online concession contract, and its `license_number` is Coljuegos' own contract number (`2182`, `C2261`)\n- **UA** (Ukraine) — `Online casino`, `Online poker`, `Bookmaking`: PlayCity's three online licence types, in English (the register's Ukrainian section titles are kept in the licence's raw data). One licence per issuing decision; PlayCity prints no licence number, so `license_number` is our reference (`UA/CASINO/<company code>/<decision date>/<decision number>`)\n\nA regulator can publish a value not listed here and we pass it through — do not treat the list as closed. It is per licence: a multi-jurisdiction operator has one licence record per jurisdiction. (`GET /v1/jurisdictions` has a `license_types` list too; it is a hand-set reference and for MGA and KH uses other words — see `Jurisdiction.license_types`.)"},"license_type_raw":{"type":"string","description":"The type cell exactly as the register prints it, before it is split into `license_types` (`Type 1, Type 2`). An empty string when the register gives none."},"not_listed_since":{"type":["string","null"],"format":"date-time","description":"When the regulator's public register stopped listing this licence (first pull that missed it) — the date behind `status: not_in_register`. `null` = listed in the most recent pull. An observation about the register, not a regulator decision: it does not mean revoked. A licence can briefly carry this while still `active` (one missed pull, inside our grace window)."},"license_category":{"type":"string","enum":["remote","non-remote","ancillary","permit","other"],"description":"Cross-jurisdiction harmonised category — derived by `@igregulator/normalizer` so a multi-regulator query can group by it. UKGC `Remote`, MGA `Type 1/2`, CW `B2C`, IOM `Full`, both SE types and every ON, ES, BE, DE, CO and UA entry map to `remote`; UKGC `Non-Remote` to `non-remote`; IOM `Network Services` and `Software Supply` to `ancillary`; etc."},"issued_date":{"type":["string","null"],"format":"date","description":"As the register gives it: a calendar date, `YYYY-MM-DD` (no time, no zone)."},"expiry_date":{"type":["string","null"],"format":"date","description":"As the register gives it: a calendar date, `YYYY-MM-DD`. A past date next to `status: active` is normal for a `provisional_under_assessment` licence (see `status_qualifier`)."},"last_verified_at":{"type":"string","format":"date-time","description":"When a load last wrote this record from a read of its register. For a licence the register no longer lists it stops moving — see `not_listed_since` / `last_listed_at`."},"source_url":{"type":"string","format":"uri","description":"The register this licence is listed in. Not necessarily where its current `status` came from — cite `status_source_url` for that."},"status_source_url":{"type":["string","null"],"format":"uri","description":"The page that published THIS status — provenance is per status, not per licence. Often not the register in `source_url`: a Curaçao or Anjouan revocation comes from the regulator's enforcement / revoked-licences page, a Kahnawake termination from its advisory notice, an MGA status from the licensee's verification page. Cite this, not `source_url`, when you explain a non-`active` status. `null` for a status set before we tracked provenance."},"status_observed_at":{"type":["string","null"],"format":"date-time","description":"The latest read of `status_source_url` that still said this status. When the status CHANGED is in the licence history (`/v1/licenses/{license_id}/history`), not here. `null` when `status_source_url` is."},"last_listed_at":{"type":["string","null"],"format":"date-time","description":"The last time we saw this licence listed in its register. With `not_listed_since` it reads \"no longer listed since X; last seen listed on Y\". `null` when we have no such read on record."},"raw_data":{"type":"object","additionalProperties":true,"description":"Scraper-specific fields captured verbatim from the upstream register (e.g. UKGC activity categories, CGA company-type flags). **Not a stable integration surface.** Keys here are added, renamed, or removed without a deprecation window when a scraper is updated — they do not carry the 90-day Sunset guarantee that top-level fields do. Use `license_types`, `license_category`, `status`, `issued_date`, `expiry_date` for stable compliance logic; read `raw_data` only for diagnostic / investigative purposes."},"as_of":{"$ref":"#/components/schemas/AsOf","description":"Only with `?as_of=` on `/v1/licenses/{license_id}` and `/v1/operators/{slug}` (never on `/v1/operators/{slug}/licenses`)."}},"example":{"id":"d29fbc19-3ed3-4043-8a74-e001491feb24","license_number":"039028-R-319297-014","license_reference_is_ours":false,"jurisdiction_code":"UKGC","status":"active","status_qualifier":null,"license_types":["Remote"],"license_type_raw":"Remote","license_category":"remote","issued_date":"2014-11-01","expiry_date":null,"not_listed_since":null,"last_verified_at":"2026-04-19T03:00:12.480Z","source_url":"https://www.gamblingcommission.gov.uk/downloads/business-licence-data.zip","status_source_url":"https://www.gamblingcommission.gov.uk/downloads/business-licence-data.zip","status_observed_at":"2026-04-19T03:00:12.480Z","last_listed_at":"2026-04-19T03:00:12.480Z","raw_data":{"activities":["Bingo","Casino"]}}},"LicenseHistoryEntry":{"type":"object","required":["id","changed_at","previous_status","new_status","change_type","source_url","detected_by","note","corrected_at","correction_note","snapshot_sha256","snapshot_fetched_at"],"properties":{"id":{"type":"string","format":"uuid"},"changed_at":{"type":"string","format":"date-time","description":"When we recorded the event — the read that found it, not the date the regulator made the decision."},"previous_status":{"type":["string","null"],"enum":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register",null],"description":"The status before this event (the `LicenseStatus` values). `null` on the first event of a licence (`change_type: created`)."},"new_status":{"type":"string","enum":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register"],"description":"The status this event set (the `LicenseStatus` values)."},"change_type":{"type":"string","enum":["created","status_change","renewed","revoked","data_update"],"description":"`created` — the first time we recorded the licence (the start of our observation window, not its issue date). `status_change` — the status moved. `data_update` — a field other than the status changed. `revoked` — how some events label a move to `revoked` instead of `status_change`. `renewed` — in the vocabulary, written by no loader today. Read `new_status` for what the licence became, never `change_type` alone, and skip any event with `corrected_at` set (it was withdrawn)."},"source_url":{"type":"string","description":"The regulator page this event was read from."},"detected_by":{"type":"string","description":"What wrote the event: `scraper:<name>:<run id>` for a register read, `seal-verify:<source>` for the certificate re-verifier, `correction:…` / `backfill:…` for our own corrections."},"note":{"type":["string","null"],"description":"What we observed, in words — e.g. \"No longer listed in the public register since 2026-08-04.\""},"snapshot_sha256":{"type":["string","null"],"description":"SHA-256 of the exact payload this change was read from, stored on our side. `null` for events recorded before 2026-09-17 and for runs whose snapshot could not be filed. Ask support for that payload by hash if you need to audit a claim — a hash you can check against your own copy of the regulator's page is the point."},"snapshot_fetched_at":{"type":["string","null"],"format":"date-time","description":"When that payload was fetched from the regulator."},"corrected_at":{"type":["string","null"],"format":"date-time","description":"Set when a later review found this event asserted something we had not read from the regulator. The event is kept for the audit trail; treat it as withdrawn and read `correction_note`."},"correction_note":{"type":["string","null"]}}},"CheckMatch":{"type":"object","required":["confidence","match_type","operator","operator_slug"],"properties":{"confidence":{"type":"string","enum":["high","medium","low"],"description":"How sure we are WHICH OPERATOR this is — a statement about the match, not about the licence. `high` = the domain (or its www-counterpart, or — `match_type: related_host` — another host on the same registrable domain), or the licence number, is listed under this operator in a register we cover. `medium` = no register we cover ties this domain to one operator; its root closely matches one of the operator's trading or legal names, so we can name the operator but not prove the domain is theirs (it may be a lookalike). `low` = a weak name resemblance; `operator` is a guess. (A generic gambling label such as `bestcasino` is not a `low` match: `match` is null and `match_absence_reason` is `generic_term`.) Whether the site is licensed is `status` together with `domain_status`, never `confidence`."},"match_type":{"type":"string","enum":["domain_exact","related_host","license_number","trading_name_fuzzy","name_similarity"],"description":"`domain_exact` — a register lists the queried host, or its www-counterpart (`www.x.com` and `x.com` are one site; `matched_domain` says which spelling is stored). `related_host` — the queried host is NOT listed; another host on its registrable domain is, under this one operator, and the match describes that host (`matched_domain`; verdict `related_host_listed`) — a listing covers the host the regulator names, so this is never `licensed`. `license_number` — a `?license_number=` query. `trading_name_fuzzy` / `name_similarity` — a name resembled the operator's (`confidence` `medium`/`low`)."},"operator":{"type":"string","description":"The operator's `display_name`."},"operator_slug":{"type":"string","description":"The key of `/v1/operators/{slug}`."},"jurisdiction":{"type":["string","null"],"description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names. `null` on a `name_similarity` match (no licence is attached)."},"regulator_name":{"type":["string","null"],"description":"The regulator's name, as `GET /v1/jurisdictions` gives it (e.g. `Curaçao Gaming Authority`, `UK Gambling Commission`) — no second call needed to say whose register lists it. For `ON` it is `iGaming Ontario`, the body that publishes the directory, not the regulator (the AGCO) — quote `verdict_detail`, which words it correctly. `null` when `jurisdiction` is.","examples":["UK Gambling Commission"]},"license_id":{"type":["string","null"],"format":"uuid","description":"The licence's iGregulator UUID — the input to `GET /v1/licenses/{license_id}` (full record, `not_listed_since`, `last_listed_at`) and `/v1/licenses/{license_id}/history`. `null` when no licence is attached (`name_similarity` matches)."},"license_number":{"type":["string","null"],"description":"The licence number as the regulator's register prints it — **except for `KH` (Kahnawake), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario), `SE` (Sweden), `ES` (Spain), `BE` (Belgium), `DE` (Germany) and `UA` (Ukraine), whose registers publish none.** For those nine it is an **iGregulator reference** we assign: `KH/IG/<slug>` or `KH/CSPA/<slug>`, `TGC/B2C/<slug>` or `TGC/B2B/<slug>`, `IOM/OGRA/<company key>`, `ON/IGO/<iGaming Ontario directory id>`, `SE/ONLINE/<holder key>` or `SE/BETTING/<holder key>`, `ES/APUESTAS/<DGOJ profile slug>`, `ES/CONCURSOS/<…>` or `ES/OTROS-JUEGOS/<…>` (one per general licence), `BE/APLUS/<Gaming Commission dossier id>`, `BE/BPLUS/<…>` or `BE/F1PLUS/<…>` (one per licence class and dossier), `DE/SLOTS/<holder key>`, `DE/POKER/<…>`, `DE/SPORTS/<…>` or `DE/HORSES/<…>` (one per GGL game type), `UA/CASINO/<company code>/<decision date>/<decision number>`, `UA/POKER/<…>` or `UA/BETTING/<…>` (one per PlayCity issuing decision). The reference is stable and `/v1/check?license_number=` accepts it, but no regulator issued it: do not present it to a user as the licence number."},"license_reference_is_ours":{"type":"boolean","description":"`true` for `KH`, `TGC`, `IOM`, `ON`, `SE`, `ES`, `BE`, `DE` and `UA`: those registers publish no licence number, so `license_number` is an **iGregulator reference** — never present it as the regulator's number. `false` everywhere else (and when there is no licence)."},"status_source_url":{"type":["string","null"],"format":"uri","description":"Where THIS status was published — provenance is per status, not per licence (the same field as on `/v1/licenses/{id}`). Often not the register the licence is listed in: a Curaçao or Anjouan revocation comes from the enforcement / revoked-licences page, a Kahnawake termination from its advisory notice. Cite it when you report the status. `null` for a status set before we tracked provenance."},"status_observed_at":{"type":["string","null"],"format":"date-time","description":"The latest read of `status_source_url` that still said this status. When the status CHANGED is in `/v1/licenses/{license_id}/history`."},"status":{"type":["string","null"],"enum":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register",null],"description":"See the `LicenseStatus` schema. Approve only on `active`. `not_in_register` (the register no longer lists the licence; `upstream_status` is then `null`) and `surrendered` (the operator gave it up) are **not** revocations, and `unknown` means we could not read the regulator's wording — read `upstream_status` and decide for yourself. We do not guess. This is the LICENCE's status: for the domain read `domain_status` too, and on a `medium`/`low` match it is the named operator's licence, not a statement about this domain. `null` on a domain match (with `license_number` and `license_id`) when the regulator lists the domain under an operator that holds no licence that can cover a website — a UKGC licensee with non-remote licences only, an MGA one with no B2C licence; `jurisdiction` names the regulator that lists it and `verdict` is `licence_not_active`."},"expires_at":{"type":["string","null"],"format":"date","description":"The licence's expiry date as the register gives it (`expiry_date` on the licence endpoints), `YYYY-MM-DD`. `null` when the register publishes none."},"domain_association":{"type":["string","null"],"enum":["direct","white_label",null],"description":"Populated for domain matches (`domain_exact`, `related_host`) only. `direct` = licensee runs the domain; `white_label` = licensee authorises a third-party brand on the domain. `null` for licence-number and fuzzy matches."},"upstream_status":{"type":["string","null"],"description":"The regulator's own words for the licence status, verbatim, before our enum mapping (e.g. `Surrendered` → `surrendered`, `Revoked - Non Payment of Fee` → `revoked`, `N/A Indefinite` → `active`). Always informative; essential when `status` is `unknown`. `null` when `status` is `not_in_register` — there is no current upstream word, and repeating the last one we read as if it were current is how a page came to say 'revoked · upstream: valid'. Also `null` when the register's word says the licence is in force (`valid`, `Active`, `Licensed`, `Assessment in progress`…) and `status` is `revoked`, `suspended`, `surrendered` or `expired`: that status was read from another publication (an enforcement register, an advisory notice), and the register row it would sit next to had not caught up. The reverse is never suppressed — a negative word next to `active` is always shown. Always `null` for `ON`: iGaming Ontario's directory prints no status word."},"status_qualifier":{"type":["string","null"],"enum":["provisional_under_assessment",null],"description":"Set when `status` is right but not the whole truth; `null` otherwise. `provisional_under_assessment`: a Curaçao licence the CGA register lists as \"<date> Assessment in progress\" — a provisional licence past its stated term, which the CGA keeps in force until it communicates a final decision. `status` is `active` (the operator may trade), and `expires_at` may be in the past; a decision is outstanding. Treat as licensed, and re-check: the licence can become final or end. Derived from `upstream_status`."},"domain_status":{"type":["string","null"],"enum":["active","parked","expired","redirecting","delisted",null],"description":"The status of `matched_domain` under this operator, which is not the status of the licence. `delisted` = the domain is no longer listed on this licence — **this site is not covered by it**; the licence's own status is in `status`, whatever that is. On a `related_host` match it is the RELATED host's status, not the queried host's (which is not listed at all). Simplest: branch on `verdict`. Field by field, the site is licensed only when `match_type` is `domain_exact`, `status` is `active` AND `domain_status` is `active`. `null` for licence-number queries and for fuzzy matches (no register ties the domain to this operator)."},"matched_domain":{"type":["string","null"],"description":"The hostname the register lists, which this match describes. Usually the query itself; its www-counterpart when only that spelling is stored (`www.virginbet.com` for `virginbet.com` — one site, verdict as for the query); or, on a `related_host` match, another host of the same registrable domain (`fi.unibet.com` for `zz.unibet.com` — NOT the queried host, verdict `related_host_listed`). `null` for licence-number queries and name matches.","examples":["www.virginbet.com"]},"domain_last_listed_at":{"type":["string","null"],"format":"date-time","description":"When a regulator source last listed `matched_domain` on this licence — the latest register, certificate or seal read that wrote this link as listed. Present only while `domain_status` is `active`. `null` when the domain is `delisted`: we do not keep the time it was last listed before the de-listing, nor since when it has been de-listed, and we will not approximate either. Also `null` for licence-number queries and name matches."},"verification_url":{"type":["string","null"],"format":"uri","description":"The regulator's OWN page naming this domain, where we hold one — a Curaçao certificate (cert.cga.cw), a Tobique validation seal (validate.thetgc.ca) or an MGA verification page (authorisation.mga.org.mt); `verification_page_kind` says which kind. Fetch or link it to confirm the verdict against the primary source directly. We re-read these pages to keep `domain_status` current: every Tobique seal nightly, each Curaçao certificate every few days (a rolling nightly batch, oldest first) — so the page itself can be newer than our `domain_status`. `null` where the regulator has no such page (UKGC, KH, AN, IOM, ON, SE, ES, BE, DE, CO, UA — the DGOJ's operator page, the Gaming Commission's class lists and the GGL's whitelist list an operator's domains and are cited as `status_source_url`, but none is a page per domain) or for non-domain matches. A legacy cert.gcb.cw link is served on cert.cga.cw, which it redirects to."},"verification_page_kind":{"type":["string","null"],"enum":["domain_certificate","licence_certificate","licensee_page","other",null],"description":"What `verification_url` is — what you hold as evidence. `domain_certificate`: a page the regulator issues for this domain alone (a CGA Certificate of Operation, cert.cga.cw/certificate; a Tobique validation seal). `licence_certificate`: the CGA certificate for the licence (cert.cga.cw/token), which lists this domain among its \"Approved domains\". `licensee_page`: the MGA verification page for the licensee company, which lists this domain among its websites. `other`: a regulator page we have not classified. `null` when `verification_url` is null. Read from the URL alone; what the page currently states is `verification_page_status`."},"verification_page_status":{"type":["string","null"],"description":"Present (possibly `null`) on domain matches — `domain_exact`, `related_host` — and absent on licence-number and name matches. The licence status that page printed at our latest read of it, verbatim (`Active`, `Revoked`…). `null` when we hold no such reading. When it is not in-force wording, the page is **not** confirmation — say what it reads and when (`verification_page_read_at`). It moves no status by itself: a revocation comes only from a regulator publication (`status_source_url`)."},"verification_page_read_at":{"type":["string","null"],"format":"date-time","description":"When we read `verification_page_status` off the page. Present on domain matches only, like it."}}},"CheckVerdict":{"type":"string","enum":["licensed","licensed_provisional","domain_not_listed","licence_not_active","related_host_listed","name_match_only","not_found","generic_term"],"description":"The answer in one field, derived from `match` by the rules below — read it before the individual fields. It describes `match` (the link the regulator lists now); a dual-licensed domain's other links are in `jurisdictions[]`. It is about the licence as it stands NOW — with `?as_of=`, `verdict_detail` leads with the answer for that date and `as_of` carries it.\n\nThe first that applies, in this order:\n\n- `generic_term` — no match, and the label is a generic gambling word we will not map to one operator. The exact domain is on no licence we hold (it would have matched `domain_exact` otherwise).\n- `related_host_listed` (no match) — the queried host is not stored, and hosts of its registrable domain are listed under SEVERAL operators: `match` is null, `match_absence_reason` is `shared_registrable`, the hosts are in `related_hosts[]`.\n- `not_found` — no match otherwise: in none of the registers we cover (`checked_jurisdictions`). Not a finding that it is unlicensed.\n- `name_match_only` — a match with `confidence` `medium`/`low`: a name resembled the operator's; no licence we hold lists this domain. Decided BEFORE the licence status is looked at — `match.status` belongs to that operator, not to this domain, whatever it says.\n- `licence_not_active` — the matched licence status is not `active` (`surrendered`, `expired`, `revoked`, `suspended`, `pending`, `not_in_register`, `unknown` — `verdict_detail` names it), whether or not the regulator still lists the domain on it; when it no longer does, `verdict_detail` says that too. Also a `license_number` query whose licence is not `active`, and a domain the regulator lists under an operator that holds no licence that can cover a website (`match.status` and `match.license_number` null — a UKGC licensee with non-remote licences only, an MGA one with no B2C licence). Only `revoked`/`suspended` are enforcement decisions.\n- `domain_not_listed` — the licence is `active`, but the regulator no longer lists this domain on it (`domain_status: delisted`): it does not cover this site.\n- `related_host_listed` (one operator) — the queried host is NOT listed; another host on the same registrable domain is, under one operator, whose licence is `active` and lists that host: `match` describes that host (`match_type: related_host`, `matched_domain`) and the hosts are in `related_hosts[]`. A listing covers the host the regulator names — a made-up subdomain of a licensed brand is not licensed. (A host's www-counterpart is the same site, not a related host: `www.x.com` is answered from `x.com` as `licensed`.)\n- `licensed_provisional` — as `licensed`, with a `status_qualifier` (today `provisional_under_assessment`: a Curaçao licence the CGA keeps in force pending its final assessment).\n- `licensed` — `match.status` is `active`, the regulator lists this domain (or its www-counterpart) on that licence (`domain_status: active`), no `status_qualifier`. For a `license_number` query: the licence is `active`.\n\nApprove automatically only on `licensed` (and `licensed_provisional` if your policy accepts provisional licences); route everything else to a human."},"RegisterFreshness":{"type":"object","required":["jurisdiction","last_read_at","fresh","sla_hours"],"description":"When we last read the matched jurisdiction's register, and whether that read is inside its freshness SLA — the same rule and numbers as `/v1/health/coverage` (24 h for UKGC, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA; 48 h for MGA, CW, KH). A stale register means a change the regulator published since `last_read_at` is not in this answer.","properties":{"jurisdiction":{"type":"string","description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names."},"last_read_at":{"type":["string","null"],"format":"date-time","description":"The newest `last_verified_at` among the jurisdiction's licences — when a load last confirmed its register. Cached up to 10 minutes."},"fresh":{"type":["boolean","null"],"description":"`last_read_at` is less than `sla_hours` old. `null` if never read."},"sla_hours":{"type":"integer"}},"example":{"jurisdiction":"UKGC","last_read_at":"2026-09-30T03:00:26.364Z","fresh":true,"sla_hours":24}},"StaleJurisdiction":{"type":"object","required":["code","last_read_at"],"description":"A covered jurisdiction whose latest register read is past its freshness SLA. A domain its regulator listed after `last_read_at` would not be in our data yet, so each entry weakens a \"not found\".","properties":{"code":{"type":"string","description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names."},"last_read_at":{"type":"string","format":"date-time"}}},"CheckMeta":{"type":"object","required":["scraped_at","source_modified_at","source_url","confidence_hint","checked_at"],"description":"`/v1/check` provenance: the single-resource envelope (`scraped_at`, `source_modified_at`, `source_url`, `confidence_hint`) plus when the answer was computed and how fresh the registers behind it are.","properties":{"scraped_at":{"type":"string","format":"date-time","description":"Kept for compatibility. On a match from a register row (`domain_exact`, `related_host`, `license_number`) it is the matched licence's `last_verified_at`. On a name match or a miss there is no record behind the answer, and it is **just the request time** — the same value as `checked_at`, not a register read. For register freshness read `register` / `stale_jurisdictions`."},"source_modified_at":{"type":["string","null"],"format":"date-time","description":"Reserved; **always `null`** — we store no upstream modification time. Use `register.last_read_at` and `match.status_observed_at` for freshness."},"source_url":{"type":["string","null"],"format":"uri","description":"On a match from a register row: the page that published the matched licence's current status (`match.status_source_url`, else the register it is listed in). `null` on a name match or a miss — no record is behind the answer."},"confidence_hint":{"type":"string","enum":["authoritative","scraped","derived"],"description":"How the answer was obtained, not how sure the match is (that is `confidence`): `authoritative` — a UKGC licence, read from the Commission's own register export; `scraped` — a licence read from another regulator's pages; `derived` — a name match or a miss, computed with no source row behind it."},"checked_at":{"type":"string","format":"date-time","description":"When this answer was computed (the request time). Always present."},"register":{"$ref":"#/components/schemas/RegisterFreshness","description":"Present when `match.jurisdiction` is set: that register's last read and whether it is inside its SLA."},"stale_jurisdictions":{"type":"array","items":{"$ref":"#/components/schemas/StaleJurisdiction"},"description":"Present when no licence we hold lists the QUERIED host — `match` is null, a `medium`/`low` name match, or a related host (`related_hosts` is set): the covered registers currently past their SLA (often `[]`). Each one weakens a \"not found\"; say so when you report the miss."}}},"DomainJurisdiction":{"type":"object","description":"One (operator, jurisdiction) pair that licenses the matched domain. A brand can be licensed by different legal entities at once — in different jurisdictions, or two group companies in one; `status`/`domain_status` are per-link — active in one register and delisted in another are both true simultaneously.","required":["operator","operator_slug","jurisdiction","license_number","license_reference_is_ours","status","status_qualifier","domain_status","domain_association","matched_domain","verification_url","verification_page_kind","register"],"properties":{"operator":{"type":"string"},"operator_slug":{"type":"string"},"jurisdiction":{"type":["string","null"],"description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names."},"license_number":{"type":["string","null"],"description":"The licence number as the regulator's register prints it — **except for `KH` (Kahnawake), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario), `SE` (Sweden), `ES` (Spain), `BE` (Belgium), `DE` (Germany) and `UA` (Ukraine), whose registers publish none.** For those nine it is an **iGregulator reference** we assign: `KH/IG/<slug>` or `KH/CSPA/<slug>`, `TGC/B2C/<slug>` or `TGC/B2B/<slug>`, `IOM/OGRA/<company key>`, `ON/IGO/<iGaming Ontario directory id>`, `SE/ONLINE/<holder key>` or `SE/BETTING/<holder key>`, `ES/APUESTAS/<DGOJ profile slug>`, `ES/CONCURSOS/<…>` or `ES/OTROS-JUEGOS/<…>` (one per general licence), `BE/APLUS/<Gaming Commission dossier id>`, `BE/BPLUS/<…>` or `BE/F1PLUS/<…>` (one per licence class and dossier), `DE/SLOTS/<holder key>`, `DE/POKER/<…>`, `DE/SPORTS/<…>` or `DE/HORSES/<…>` (one per GGL game type), `UA/CASINO/<company code>/<decision date>/<decision number>`, `UA/POKER/<…>` or `UA/BETTING/<…>` (one per PlayCity issuing decision). The reference is stable and `/v1/check?license_number=` accepts it, but no regulator issued it: do not present it to a user as the licence number."},"license_reference_is_ours":{"type":"boolean","description":"Same as `match.license_reference_is_ours`, for this entity's licence: `true` (KH, TGC, IOM, ON, SE, ES, BE, DE, UA) means `license_number` is an iGregulator reference — never present it as the regulator's number."},"matched_domain":{"type":"string","description":"The stored spelling this link is on — the query or its www-counterpart (one site; each operator appears once, with its better link)."},"register":{"oneOf":[{"$ref":"#/components/schemas/RegisterFreshness"},{"type":"null"}],"description":"This entity's register: its last read and whether that read is inside the SLA. `_meta.register` covers only the matched jurisdiction; a secondary link in a stale register says so here. `null` when the operator holds no licence."},"status":{"type":["string","null"],"description":"This entity's licence status (see `LicenseStatus`)."},"domain_status":{"type":"string","enum":["active","parked","expired","redirecting","delisted"],"description":"The domain's status under THIS entity — same meaning as `match.domain_status`. Licensed through this entity only when `status` and `domain_status` are both `active`."},"domain_association":{"type":"string","enum":["direct","white_label"]},"verification_url":{"type":["string","null"],"format":"uri"},"verification_page_kind":{"type":["string","null"],"enum":["domain_certificate","licence_certificate","licensee_page","other",null],"description":"Same as `match.verification_page_kind`, for this link."},"verification_page_status":{"type":["string","null"],"description":"Same as `match.verification_page_status`, for this link."},"verification_page_read_at":{"type":["string","null"],"format":"date-time"},"status_qualifier":{"type":["string","null"],"enum":["provisional_under_assessment",null],"description":"Same as `match.status_qualifier`, for this entity’s licence."}}},"AsOf":{"type":"object","description":"Point-in-time status, present only when `?as_of=` was supplied. Answers ONLY within the observation window: we never extrapolate a status before `tracking_since` (the first time we recorded the licence).","required":["as_of","knowledge","status_as_of","established_by","tracking_since"],"properties":{"as_of":{"type":"string","format":"date-time","description":"The resolved instant (UTC). A bare YYYY-MM-DD resolves to the end of that day; today's date resolves to now."},"knowledge":{"type":"string","enum":["observed","corrected","before_tracking","no_such_license","no_license_resolved"],"description":"`observed`: the date is within our window, status is known. `corrected`: the event in effect on that date is one we later WITHDREW (see `correction`) — status is null. We do not report the withdrawn status, and we do not fall back to the one before it either: neither is something we observed for that date. `before_tracking`: the date predates when we started watching — status is null, NOT a guess. `no_such_license`: we have no history for this licence. `no_license_resolved`: a fuzzy /v1/check match with no specific licence to time-travel."},"status_as_of":{"type":["string","null"],"description":"Licence status as of the date, or null when not observed."},"established_by":{"type":["object","null"],"description":"The history transition in effect at the date — when this status was last confirmed relative to the query.","properties":{"changed_at":{"type":"string","format":"date-time"},"new_status":{"type":"string"},"change_type":{"type":"string"},"source_url":{"type":"string"}}},"correction":{"type":"object","description":"Present only when `knowledge` is `corrected`. The event that was in effect at the date and that we later withdrew. `withdrawn_status` is what we USED to say — never quote it as the status.","properties":{"changed_at":{"type":"string","format":"date-time"},"withdrawn_status":{"type":"string"},"corrected_at":{"type":"string","format":"date-time"},"note":{"type":["string","null"]}}},"tracking_since":{"type":["string","null"],"format":"date-time","description":"Lower bound of our knowledge — when we first observed this licence."}}},"CheckAsOf":{"description":"`as_of` on `/v1/check`: the `AsOf` reconstruction, plus WHICH licence it reconstructs. It is the status of that one licence on that date — `match`'s licence, picked by today's links — not a record of who ran the domain then: `domain_operators` keeps no history of when a domain was linked to a licence.","allOf":[{"$ref":"#/components/schemas/AsOf"},{"type":"object","required":["scope","license_id","license_number","operator","link_note"],"properties":{"scope":{"type":"string","enum":["licence"],"description":"What was time-travelled: a licence status, never a domain link."},"license_id":{"type":["string","null"],"format":"uuid","description":"`match.license_id`; null when no licence was resolved."},"license_number":{"type":["string","null"],"description":"The licence number as the regulator's register prints it — **except for `KH` (Kahnawake), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario), `SE` (Sweden), `ES` (Spain), `BE` (Belgium), `DE` (Germany) and `UA` (Ukraine), whose registers publish none.** For those nine it is an **iGregulator reference** we assign: `KH/IG/<slug>` or `KH/CSPA/<slug>`, `TGC/B2C/<slug>` or `TGC/B2B/<slug>`, `IOM/OGRA/<company key>`, `ON/IGO/<iGaming Ontario directory id>`, `SE/ONLINE/<holder key>` or `SE/BETTING/<holder key>`, `ES/APUESTAS/<DGOJ profile slug>`, `ES/CONCURSOS/<…>` or `ES/OTROS-JUEGOS/<…>` (one per general licence), `BE/APLUS/<Gaming Commission dossier id>`, `BE/BPLUS/<…>` or `BE/F1PLUS/<…>` (one per licence class and dossier), `DE/SLOTS/<holder key>`, `DE/POKER/<…>`, `DE/SPORTS/<…>` or `DE/HORSES/<…>` (one per GGL game type), `UA/CASINO/<company code>/<decision date>/<decision number>`, `UA/POKER/<…>` or `UA/BETTING/<…>` (one per PlayCity issuing decision). The reference is stable and `/v1/check?license_number=` accepts it, but no regulator issued it: do not present it to a user as the licence number."},"operator":{"type":["string","null"],"description":"The operator holding that licence (`match.operator`)."},"link_note":{"type":["string","null"],"description":"On a domain query that resolved a licence: \"We do not record when this domain was linked to this licence; this is the licence's status on that date.\" Null otherwise."}}}]},"RelatedHost":{"type":"object","required":["host","operator","operator_slug","jurisdiction","domain_status"],"description":"Another stored host on the queried host's registrable domain (Public Suffix List, private section included: a hosting platform's customers are not each other's related hosts). Its listing is about IT, not about the queried host.","properties":{"host":{"type":"string"},"operator":{"type":"string"},"operator_slug":{"type":"string"},"jurisdiction":{"type":["string","null"],"description":"The operator's licence jurisdiction; null when it holds none."},"domain_status":{"type":"string","enum":["active","parked","expired","redirecting","delisted"],"description":"That host’s link status under that operator."}}},"DomainRegistration":{"type":"object","description":"What the domain's registry published about its registration, read from the registry's own RDAP server (Verisign for .com, Nominet for .uk, …). Facts about the domain, never about a licence: a recently registered domain on a licensed brand is worth a look, and says nothing about the licence. The registrant is not read (it is redacted, and not ours to keep). Re-read every 30 days.","required":["domain","registered_at","expires_at","last_changed_at","registrar","status","source_url","read_at"],"properties":{"domain":{"type":"string","description":"The registered name the facts are about: `www.bet365.co.uk` → `bet365.co.uk`."},"registered_at":{"type":["string","null"],"format":"date-time","description":"When the domain was registered, as the registry states it."},"expires_at":{"type":["string","null"],"format":"date-time","description":"When the current registration period ends. Most domains renew automatically; a past date is a reason to look, not a fact about the site."},"last_changed_at":{"type":["string","null"],"format":"date-time","description":"When the registry record last changed (a renewal, a transfer, new nameservers…)."},"registrar":{"type":["string","null"],"description":"The sponsoring registrar, as the registry names it."},"status":{"type":"array","items":{"type":"string"},"description":"EPP status codes as the registry words them, e.g. `active`, `client transfer prohibited`; `client hold` / `server hold` mean the domain is not published in DNS."},"source_url":{"type":["string","null"],"format":"uri","description":"The RDAP record we read."},"read_at":{"type":"string","format":"date-time","description":"When we read it."}}},"SupersededNumber":{"type":"object","required":["requested","current","note"],"description":"A `license_number` query for an earlier version of a UKGC number (`055148-R-331498-001`), resolved to the version the register lists now (`-002`): the last part of a UKGC number goes up when the Commission varies a licence. A later version than ours is not resolved.","properties":{"requested":{"type":"string","description":"The number as sent."},"current":{"type":"string","description":"`match.license_number`."},"note":{"type":"string","description":"The sentence `verdict_detail` leads with."}}},"CheckAlternative":{"type":"object","required":["operator","operator_slug","matched_name","similarity"],"properties":{"operator":{"type":"string"},"operator_slug":{"type":"string"},"matched_name":{"type":"string"},"similarity":{"type":"number","format":"float","minimum":0,"maximum":1}}},"CheckResult":{"type":"object","required":["query","verdict","verdict_detail","match","alternatives","_meta"],"properties":{"query":{"type":"object","description":"What was looked up: `domain` (+ `input`) or `license_number`, never both.","properties":{"domain":{"type":"string","description":"The hostname looked up: lower-cased, one trailing dot dropped, an internationalised name in punycode (`bücher.de` → `xn--bcher-kva.de`)."},"input":{"type":"string","description":"What you sent, when it differs from `domain`."},"license_number":{"type":"string","description":"The licence number as sent (surrounding spaces trimmed)."}}},"verdict":{"$ref":"#/components/schemas/CheckVerdict"},"verdict_detail":{"type":"string","description":"Plain English stating the verdict, safe to quote as it stands: it names the regulator, operator and licence (never our KH/TGC/IOM/ON/SE/ES/BE/DE/UA reference as a licence number), says when we read the listing and — separately — whether that register's last read is past its SLA, scopes every miss to the registers we cover, and never calls anything \"unlicensed\". With `?as_of=` it LEADS with the answer for that date (\"On 2026-03-01 we were not yet tracking … so its status then is unknown. Today: …\"); for a superseded licence number it leads with that note. The wording may improve over time — branch on `verdict`, quote `verdict_detail`."},"match":{"oneOf":[{"$ref":"#/components/schemas/CheckMatch"},{"type":"null"}]},"alternatives":{"type":"array","items":{"$ref":"#/components/schemas/CheckAlternative"},"maxItems":3,"description":"On a name match (`medium`/`low`) only: up to three other operators whose names resembled the label, best first. `[]` on every other answer."},"confidence":{"type":"string","enum":["high","medium","low"],"description":"Mirror of `match.confidence` — about the match, not the licence. Also `low` with `match: null` when the label is generic (`match_absence_reason: generic_term`). **Omitted** when nothing matched (`no_record_found`, `shared_registrable`): this endpoint never sends `\"none\"` — only `/v1/check/batch` rows do."},"match_absence_reason":{"type":["string","null"],"enum":["generic_term","shared_registrable","no_record_found",null],"description":"Present only when `match` is null. `generic_term`: the label is an ultra-generic gambling word (e.g. bestcasino.example) we cannot map to one operator. `shared_registrable`: the queried host is not stored, and the hosts of its registrable domain are linked to more than one operator — `related_hosts[]` lists them, none is the answer (verdict `related_host_listed` when one of them is listed now, else `not_found`). `no_record_found`: a specific query we checked against every covered register and did not find. Lets a caller phrase the answer precisely instead of treating every miss as \"unlicensed\"."},"checked_jurisdictions":{"type":"array","items":{"type":"string"},"description":"Present when the queried host is on no licence we hold — `match` is null, a name match, or `related_host_listed` — the jurisdiction codes actually checked. Report a miss as \"not found in the registers of these N jurisdictions\", never as \"unlicensed\": we cover these regulators, not every regulator. Example: [\"AN\",\"BE\",\"CO\",\"CW\",\"DE\",\"ES\",\"IOM\",\"KH\",\"MGA\",\"ON\",\"SE\",\"TGC\",\"UKGC\"]. `SE` means the commercial online gaming and betting licences only: a Swedish lottery or land-based licence is not in our data, so a miss says nothing about one. `ES` means the DGOJ's state-level online licences only: the state lotteries (SELAE, ONCE) hold none and land-based or regional gambling is licensed by the autonomous communities, so a miss says nothing about such a site. `BE` means the Gaming Commission's online licence classes A+, B+ and F1+ only: land-based licences and the Loterie Nationale are not in our data. `DE` means the GGL's four internet game types only (virtual slots, online poker, sports betting, online horse betting): online casino table games licensed by a Land (Schleswig-Holstein, Bayern), lotteries and land casinos are not in our data — a miss says nothing about such a site. `CO` means Coljuegos' online gaming concessions only: land-based gaming (juegos localizados) and the lotteries are not in our data, so a miss says nothing about such a site. `UA` means PlayCity's online casino, online poker and bookmaking licences only: land casinos, slot halls and the state lotteries are not in our data, so a miss says nothing about such a site."},"related_hosts":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/RelatedHost"},"description":"Present when the related-host stage answered (verdict `related_host_listed`, or `not_found` with `shared_registrable`): the other stored hosts on the queried host's registrable domain, listed first, at most 10. Not evidence about the queried host."},"superseded_number":{"$ref":"#/components/schemas/SupersededNumber","description":"Present only when a `license_number` query was answered through an earlier version of a UKGC number."},"jurisdictions":{"type":"array","items":{"$ref":"#/components/schemas/DomainJurisdiction"},"description":"Present only when a matched domain is licensed by MORE THAN ONE (operator, jurisdiction) pair — dual-licensed brands; the links of a host and of its www-counterpart count together, one entry per operator. Best-first: `jurisdictions[0]` is the pair `match` reports — a link with a licence, then one the regulator lists now, then an `active` licence, then the link we have known longest (stable from day to day, whichever register was read last). Read this before phrasing a single-jurisdiction verdict about a multi-licensed brand; a domain can be active under one register and delisted under another at the same time, and each entry carries its own `register` freshness."},"as_of":{"$ref":"#/components/schemas/CheckAsOf","description":"Present only when `?as_of=` was sent."},"domain_registration":{"$ref":"#/components/schemas/DomainRegistration","description":"Present only on a `domain` query whose registry record we have read: the registration of the queried domain (its registered name — `www.` and other subdomains share it). Absent when we have none — the TLD publishes no RDAP (e.g. .de, .es, .se, .be), the registry holds no record, or the domain has not been read yet. Never part of the verdict."},"_meta":{"$ref":"#/components/schemas/CheckMeta"}},"example":{"query":{"domain":"spinlu.com"},"verdict":"domain_not_listed","verdict_detail":"The Anjouan Gaming Authority no longer lists spinlu.com on the licence held by 3-102-947207 SRL (licence ALSI-202602010-FI1), which is itself active — that licence does not cover this site.","match":{"confidence":"high","match_type":"domain_exact","operator":"3-102-947207 SRL","operator_slug":"3-102-947207-srl","jurisdiction":"AN","regulator_name":"Anjouan Gaming Authority","license_id":"d9832e56-10bb-458b-82af-ac7762f7a502","license_number":"ALSI-202602010-FI1","license_reference_is_ours":false,"status":"active","status_source_url":"https://anjouangaming.com/license-register/","status_observed_at":"2026-10-07T04:00:11.714Z","expires_at":"2027-02-15","domain_association":"direct","domain_status":"delisted","matched_domain":"spinlu.com","domain_last_listed_at":null,"upstream_status":"valid","status_qualifier":null,"verification_url":null,"verification_page_status":null,"verification_page_read_at":null},"alternatives":[],"confidence":"high","_meta":{"scraped_at":"2026-10-07T04:00:11.714Z","source_modified_at":null,"source_url":"https://anjouangaming.com/license-register/","confidence_hint":"scraped","checked_at":"2026-10-08T00:56:20.481Z","register":{"jurisdiction":"AN","last_read_at":"2026-10-07T04:00:17.625Z","fresh":true,"sla_hours":24}}}},"OperatorWithMeta":{"description":"Operator row plus per-item provenance `_meta`. Used inside `OperatorSearchResult.operators[]`.","allOf":[{"$ref":"#/components/schemas/Operator"},{"type":"object","required":["_meta"],"properties":{"_meta":{"$ref":"#/components/schemas/SingleMeta"}}}]},"OperatorSearchResult":{"type":"object","required":["q","total","limit","offset","operators","_meta"],"properties":{"q":{"type":"string","description":"The search term as applied (trimmed)."},"total":{"type":"integer","description":"Every operator that matches, not just this page."},"limit":{"type":"integer","description":"The limit actually applied: without a key at most 3, whatever `?limit=` asked for."},"offset":{"type":"integer"},"operators":{"type":"array","items":{"$ref":"#/components/schemas/OperatorWithMeta"}},"_meta":{"$ref":"#/components/schemas/ListMeta"}}},"OperatorDetail":{"type":"object","required":["operator","licenses","domains","_meta"],"properties":{"operator":{"$ref":"#/components/schemas/Operator"},"licenses":{"type":"array","items":{"$ref":"#/components/schemas/License"}},"domains":{"type":"array","description":"Every domain ↔ operator link we hold for this operator, in every status, ordered by domain. A `delisted` link is still returned — filter on `status`.","items":{"type":"object","required":["domain","status","association","first_seen","last_verified","verification_url","verification_page_kind","verification_page_status","verification_page_read_at"],"properties":{"domain":{"type":"string"},"status":{"type":"string","enum":["active","parked","expired","redirecting","delisted"],"description":"This domain's status under THIS operator (the same as `domain_status` on /v1/check) — not a licence status. `delisted` = no longer listed on the operator's licence."},"association":{"type":"string","enum":["direct","white_label"],"description":"`direct` — the licensee runs the domain; `white_label` — the licensee authorises a third-party brand on it."},"first_seen":{"type":"string","format":"date-time","description":"When we first recorded this link."},"last_verified":{"type":"string","format":"date-time","description":"The latest read that wrote this link's `status` — for a `delisted` link, the read of the de-listing, not the last time it was listed."},"verification_url":{"type":["string","null"],"format":"uri","description":"The regulator's own page naming this domain — a Curaçao certificate (cert.cga.cw), a Tobique validation seal or an MGA verification page; `verification_page_kind` says which. `null` where the jurisdiction publishes none. Before citing it as confirmation, read `verification_page_status`."},"verification_page_kind":{"type":["string","null"],"enum":["domain_certificate","licence_certificate","licensee_page","other",null],"description":"Same as `match.verification_page_kind` on /v1/check."},"verification_page_status":{"type":["string","null"],"description":"What that page stated about the licence the last time we read it, verbatim (e.g. `Revoked`). `null` when we hold no such reading. When it does not say the licence is in force, the page is NOT confirmation: say what it reads and when (`verification_page_read_at`). The link's own `status` still comes from the register, and a revocation only from a regulator publication — this page alone changes neither."},"verification_page_read_at":{"type":["string","null"],"format":"date-time","description":"When we read `verification_page_status` off the page."}}}},"_meta":{"oneOf":[{"$ref":"#/components/schemas/SingleMeta"},{"type":"null"}],"description":"Null when the operator has no licences. Otherwise taken from one licence — the first `active` one in `licenses` order (jurisdiction code, then licence number), or the first licence if none is active: `scraped_at` is its `last_verified_at` and `source_url` the register it is listed in. Per-licence status provenance is on each licence (`status_source_url`, `status_observed_at`)."}}},"LicenseDetail":{"description":"A licence with its operator and a single-resource provenance `_meta`. Used by `/v1/licenses/{license_id}`.","allOf":[{"$ref":"#/components/schemas/License"},{"type":"object","required":["_meta","operator_id","operator_slug","operator_name","confidence_score"],"properties":{"operator_id":{"type":"string","format":"uuid"},"operator_slug":{"type":"string"},"operator_name":{"type":"string","description":"The operator's `display_name`."},"confidence_score":{"type":"number","description":"An internal record-quality weight, `1` unless a loader lowered it. Not the match confidence of `/v1/check`, and not a statement about the licence — do not decide on it."},"_meta":{"$ref":"#/components/schemas/SingleMeta"}}}]},"LicenseHistoryResponse":{"type":"object","required":["license_id","license_number","history","_meta"],"properties":{"license_id":{"type":"string","format":"uuid"},"license_number":{"type":"string","description":"The licence number as the regulator's register prints it — **except for `KH` (Kahnawake), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario), `SE` (Sweden), `ES` (Spain), `BE` (Belgium), `DE` (Germany) and `UA` (Ukraine), whose registers publish none.** For those nine it is an **iGregulator reference** we assign: `KH/IG/<slug>` or `KH/CSPA/<slug>`, `TGC/B2C/<slug>` or `TGC/B2B/<slug>`, `IOM/OGRA/<company key>`, `ON/IGO/<iGaming Ontario directory id>`, `SE/ONLINE/<holder key>` or `SE/BETTING/<holder key>`, `ES/APUESTAS/<DGOJ profile slug>`, `ES/CONCURSOS/<…>` or `ES/OTROS-JUEGOS/<…>` (one per general licence), `BE/APLUS/<Gaming Commission dossier id>`, `BE/BPLUS/<…>` or `BE/F1PLUS/<…>` (one per licence class and dossier), `DE/SLOTS/<holder key>`, `DE/POKER/<…>`, `DE/SPORTS/<…>` or `DE/HORSES/<…>` (one per GGL game type), `UA/CASINO/<company code>/<decision date>/<decision number>`, `UA/POKER/<…>` or `UA/BETTING/<…>` (one per PlayCity issuing decision). The reference is stable and `/v1/check?license_number=` accepts it, but no regulator issued it: do not present it to a user as the licence number."},"history":{"type":"array","description":"Every event, most recent first; `[]` for a licence with none.","items":{"$ref":"#/components/schemas/LicenseHistoryEntry"}},"_meta":{"$ref":"#/components/schemas/ListMeta"}}},"HealthResult":{"type":"object","required":["status","service","checks","timestamp"],"properties":{"status":{"type":"string","enum":["ok","degraded"],"description":"`ok` with a 200; `degraded` with a 503."},"service":{"type":"string","enum":["igregulator-api"]},"checks":{"type":"object","required":["postgres","redis"],"description":"One entry per dependency. The keys (`postgres`, `redis`) are stable; new dependencies may be added.","additionalProperties":{"$ref":"#/components/schemas/HealthCheck"},"properties":{"postgres":{"$ref":"#/components/schemas/HealthCheck"},"redis":{"$ref":"#/components/schemas/HealthCheck"}}},"timestamp":{"type":"string","format":"date-time","description":"When the probe ran."}},"example":{"status":"ok","service":"igregulator-api","checks":{"postgres":{"ok":true,"latency_ms":1},"redis":{"ok":true,"latency_ms":1}},"timestamp":"2026-10-08T00:56:22.662Z"}},"HealthCheck":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"},"latency_ms":{"type":"integer","description":"How long the probe took. Absent when it threw."},"error":{"type":"string","description":"The driver's error message. Only when the probe threw."}}},"GeoCheck":{"type":"object","description":"What a domain served in one country on one date — an observation, never a licence status.","required":["country","result","reason","checked_at","reviewed","stale","in_country_render"],"properties":{"country":{"type":"string","description":"ISO 3166-1 alpha-2. `CA` is Ontario: probes in Toronto, a browser in Ontario."},"result":{"type":"string","enum":["reachable","served_unverified","geo_blocked","refused","waf_blocked","parked","unknown","gateway","not_casino"],"description":"`reachable` — the site was served in the country, and a browser IN that country (one of our proxies, verified to exit there) showed a working gambling site, confirmed on its screenshot. Without such a browser a served page is `served_unverified` (\"Reachable, not verified\"; `reason`: \"HTML only, no in-country render\") — never `reachable`. `refused` — every probe in the country got HTTP 403, and so did a browser in the country when we had one (a browser that showed the site makes it `reachable`): what the server answered there, not a statement that it geo-blocks the country (a bot wall answers 403 too). Per country, the latest definite result is shown — `refused` counts as one, so a newer `refused` replaces an older `reachable`; `served_unverified` only when nothing definite was read, `unknown` only when nothing else was. `geo_blocked` — the site said it does not serve that country (HTTP 451, a block page, or its in-browser check's country list). `waf_blocked` — a firewall refused the request; not about the country. `parked` — no gambling site at the domain. `unknown` — a Cloudflare captcha, an error, or a block we could see only from another country; `reason` says which. `gateway` / `not_casino` — set by the reviewer: a page that only sends visitors on to another domain, or not a gambling site."},"reason":{"type":"string","description":"Why, in a few words — or the reviewer's note."},"checked_at":{"type":"string","format":"date-time"},"reviewed":{"type":"boolean","description":"A person looked at the screenshot and set `result`."},"stale":{"type":"boolean","description":"Older than 30 days: request a new check."},"in_country_render":{"type":"boolean","description":"A browser in the country itself rendered the page. `reachable` is only ever set with it."},"register":{"type":"object","description":"Where we hold the market's register (only `CA`: iGaming Ontario), whether it lists the domain on an active licence — beside the result, never instead of it.","required":["jurisdiction","name","listed"],"properties":{"jurisdiction":{"type":"string","example":"ON"},"name":{"type":"string"},"listed":{"type":"boolean"}}}}},"WatchlistOperator":{"type":"object","required":["id","slug","display_name","country","added_at","license_status","jurisdiction_code"],"properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"display_name":{"type":"string"},"country":{"type":["string","null"],"description":"`null` for almost every operator — see `Operator.country`."},"added_at":{"type":"string","format":"date-time"},"license_status":{"type":["string","null"],"description":"The status of ONE of the operator's licences — an `active` one if it has any, else the most recently verified — not a summary of all of them: an operator shown `active` here can hold a `revoked` licence in another jurisdiction. `null` when we hold no licence for it. For every licence use `/v1/operators/{slug}/licenses`.","enum":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register",null]},"jurisdiction_code":{"type":["string","null"],"description":"The jurisdiction of the licence `license_status` was taken from."}}},"WebhookEventType":{"type":"string","enum":["license.status_changed","license.expiring_30d","license.expiring_60d","license.expiring_90d","license.expired","license.issued","domain.listed","domain.delisted","regulatory_action.added","coverage.degraded","coverage.restored","webhook.endpoint_degraded"],"description":"The event types an endpoint can subscribe to. `domain.listed` (1.25.0) is one event per operator per read, carrying every domain first recorded under it. `domain.delisted` (1.32.0) is its mirror: one event per operator and register when that register stops listing sites on the operator’s licence — a read of the register, never an absence elsewhere, and nothing about the licence itself. `webhook.endpoint_degraded` is accepted in `events` but **never sent** today — watch `GET /v1/webhooks/{id}/deliveries?status=abandoned` instead."},"WebhookCreate":{"type":"object","required":["url","events"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048,"description":"An `http://` or `https://` URL on a publicly routable host (use https). Checked against the SSRF blocklist at creation AND before every delivery."},"description":{"type":"string","maxLength":500},"events":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/WebhookEventType"},"description":"An unknown type is a 400 `invalid_event_type` that names it."},"watchlist_only":{"type":"boolean","default":true,"description":"When true (default), tenant-scoped events (license.*, domain.listed, domain.delisted, regulatory_action.*) fire only for operators in the caller's watchlist. Set false to hear about operators you do not watch yet — a newly recorded licence or domain. Global events (coverage.*, webhook.endpoint_degraded) ignore this flag."},"jurisdictions":{"type":"array","items":{"type":"string"},"default":[],"description":"Jurisdiction codes (`\"CW\"`, `\"UKGC\"` — see `GET /v1/jurisdictions`) this endpoint wants events for. Empty = every jurisdiction. Applies to every event that is about one jurisdiction: `license.*`, `domain.listed`, `domain.delisted`, `regulatory_action.added`, `coverage.*`. A code we do not cover is a 400 `invalid_jurisdiction` that lists the valid ones."}}},"WebhookPatch":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048},"description":{"type":["string","null"],"maxLength":500},"events":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/WebhookEventType"}},"active":{"type":"boolean","description":"`false` pauses the endpoint (no deliveries are queued for it); `true` resumes it."},"watchlist_only":{"type":"boolean"},"jurisdictions":{"type":"array","items":{"type":"string"},"description":"Jurisdiction codes (`\"CW\"`, `\"UKGC\"` — see `GET /v1/jurisdictions`) this endpoint wants events for. Empty = every jurisdiction. Applies to every event that is about one jurisdiction: `license.*`, `domain.listed`, `domain.delisted`, `regulatory_action.added`, `coverage.*`. A code we do not cover is a 400 `invalid_jurisdiction` that lists the valid ones."}},"minProperties":1,"additionalProperties":false},"WebhookEndpoint":{"type":"object","required":["id","url","events","active","watchlist_only","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"},"description":{"type":["string","null"]},"events":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventType"}},"active":{"type":"boolean"},"watchlist_only":{"type":"boolean"},"jurisdictions":{"type":"array","items":{"type":"string"},"description":"Jurisdiction filter; empty = every jurisdiction."},"created_at":{"type":"string","format":"date-time"},"last_delivered_at":{"type":["string","null"],"format":"date-time","description":"Not in the `POST /v1/webhooks` response (nothing has been delivered yet); `null` until the first successful delivery."},"last_delivery_status":{"type":["string","null"],"enum":["success","failed","retrying",null],"description":"The outcome of the latest attempt: `success`, `retrying` (failed, a retry is scheduled) or `failed` (abandoned after the last retry). Not in the `POST /v1/webhooks` response."},"failure_count":{"type":"integer","description":"Not in the `POST /v1/webhooks` response."}}},"WebhookDelivery":{"type":"object","required":["id","event_id","event_type","attempt_count","last_attempt_at","next_retry_at","status","last_response_status","created_at","delivered_at"],"properties":{"id":{"type":"string","format":"uuid"},"event_id":{"type":"string","description":"ULID, matches `event_id` inside the payload envelope. Use this as the dedupe key on the receiver side."},"event_type":{"$ref":"#/components/schemas/WebhookEventType"},"attempt_count":{"type":"integer"},"last_attempt_at":{"type":["string","null"],"format":"date-time"},"next_retry_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["pending","delivered","failed","abandoned"],"description":"`pending` — queued, or failed with a retry scheduled (`next_retry_at`). `delivered` — a 2xx. `abandoned` — gave up after the last retry. `failed` is in the vocabulary but nothing sets it today: a failed attempt stays `pending` until it is delivered or abandoned."},"last_response_status":{"type":["integer","null"]},"created_at":{"type":"string","format":"date-time"},"delivered_at":{"type":["string","null"],"format":"date-time"}}},"WebhookEventEnvelope":{"type":"object","description":"Common shape across every webhook event (and every entry in `/v1/watchlist/events`). The `data` block varies by `event` — see https://igregulator.io/docs/webhooks/ for per-event field tables.","required":["event","event_id","api_version","timestamp","livemode","data"],"properties":{"event":{"$ref":"#/components/schemas/WebhookEventType"},"event_id":{"type":"string","example":"evt_01HX8EGQK3J7WA6MYTP7ZGYF21"},"api_version":{"type":"string","example":"2026-04-20"},"timestamp":{"type":"string","format":"date-time"},"livemode":{"type":"boolean"},"data":{"type":"object","additionalProperties":true}},"example":{"event":"license.status_changed","event_id":"evt_01HX8EGQK3J7WA6MYTP7ZGYF21","api_version":"2026-04-20","timestamp":"2026-04-20T14:32:00.000Z","livemode":true,"data":{"license_id":"4db0141c-a863-49b1-808d-75fa49e36fd9","license_number":"039028-R-319297-014","operator_id":"00000000-0000-0000-0000-000000000000","operator_slug":"888-uk-limited","jurisdiction_code":"UKGC","previous_status":"active","new_status":"suspended","changed_at":"2026-04-20T03:04:12.000Z","source_url":"https://www.gamblingcommission.gov.uk/..."}}},"LicenceExportRow":{"type":"object","title":"licences row","description":"One licence per row (`GET /v1/export/licences`). The same record `/v1/licenses/{id}` serves, with its status provenance, minus `raw_data`.","required":["license_id","license_number","license_number_kind","jurisdiction_code","operator_slug","operator_name","status","status_qualifier","upstream_status","status_source_url","status_observed_at","last_listed_at","not_listed_since","license_types","license_type_raw","license_category","issued_date","expiry_date","last_verified_at","source_url"],"properties":{"license_id":{"description":"iGregulator licence id — what `/v1/licenses/{license_id}` takes; the record page is https://app.igregulator.io/licenses/<license_id>.","type":"string","format":"uuid"},"license_number":{"description":"The licence number — for KH, TGC, IOM, ON, SE, ES, BE, DE and UA an iGregulator reference, see `license_number_kind`.","type":"string"},"license_number_kind":{"description":"`regulator` — the number as the regulator's register prints it. `igregulator_reference` — KH (Kahnawake), TGC (Tobique), IOM (Isle of Man), ON (Ontario), SE (Sweden), ES (Spain), BE (Belgium), DE (Germany) and UA (Ukraine) publish no licence number, so the value is a key iGregulator assigned (`KH/IG/…`, `TGC/B2C/…`, `IOM/OGRA/…`, `ON/IGO/…`, `SE/ONLINE/…`, `SE/BETTING/…`, `ES/APUESTAS/…`, `ES/CONCURSOS/…`, `ES/OTROS-JUEGOS/…`, `BE/APLUS/…`, `BE/BPLUS/…`, `BE/F1PLUS/…`, `DE/SLOTS/…`, `DE/POKER/…`, `DE/SPORTS/…`, `DE/HORSES/…`, `UA/CASINO/…`, `UA/POKER/…`, `UA/BETTING/…`): stable, accepted by `/v1/check?license_number=`, but no regulator issued it — never quote it as the licence number.","type":"string","enum":["regulator","igregulator_reference"]},"jurisdiction_code":{"description":"Jurisdiction code: `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario), `SE` (Sweden), `ES` (Spain), `BE` (Belgium), `DE` (Germany), `CO` (Colombia), `UA` (Ukraine).","type":"string"},"operator_slug":{"description":"The licensee — the key `/v1/operators/{slug}` takes and the operators export joins on.","type":"string"},"operator_name":{"description":"The licensee's name as the register gives it.","type":"string"},"status":{"$ref":"#/components/schemas/LicenseStatus","description":"Current status. Only `active` means licensed now; `not_in_register`, `surrendered` and `unknown` are not revocations."},"status_qualifier":{"description":"`provisional_under_assessment` for a Curaçao licence the register reads as \"Assessment in progress\" past its term (the CGA keeps it in force until it decides); otherwise null. Same value as `/v1/check`.","type":["string","null"],"enum":["provisional_under_assessment",null]},"upstream_status":{"description":"The register's own word for the licence, verbatim — left out (null) where it would contradict the status (an in-force word next to `revoked`, any word next to `not_in_register`), the same rule `/v1/check` applies. Essential when the status is `unknown`.","type":["string","null"]},"status_source_url":{"description":"The page that published THIS status — often not the register the licence lives in (an enforcement register, a revoked-licences list, an advisory notice). Cite this, not `source_url`.","type":["string","null"],"format":"uri"},"status_observed_at":{"description":"When we read this status at `status_source_url`.","type":["string","null"],"format":"date-time"},"last_listed_at":{"description":"When we last saw the licence listed in its register.","type":["string","null"],"format":"date-time"},"not_listed_since":{"description":"When the register stopped listing it; null while it is listed. On a `not_in_register` licence this is the \"since when\" — an observation about the register, not a revocation.","type":["string","null"],"format":"date-time"},"license_types":{"description":"Licence types as the regulator names them (CSV: `|`-joined).","type":"array","items":{"type":"string"}},"license_type_raw":{"description":"The type string exactly as the register printed it.","type":"string"},"license_category":{"description":"Cross-jurisdiction category: `remote`, `non-remote`, `ancillary`, `permit` or `other`.","type":"string"},"issued_date":{"description":"Issue date, where the register publishes one.","type":["string","null"],"format":"date"},"expiry_date":{"description":"Expiry date, where the register publishes one.","type":["string","null"],"format":"date"},"last_verified_at":{"description":"When we last read the register for this licence.","type":"string","format":"date-time"},"source_url":{"description":"The register the licence is listed in.","type":"string","format":"uri"}},"example":{"license_id":"4db0141c-a863-49b1-808d-75fa49e36fd9","license_number":"039028-R-319297-014","license_number_kind":"regulator","jurisdiction_code":"UKGC","operator_slug":"hillside-uk-sports-enc","operator_name":"Hillside (UK Sports) ENC","status":"active","status_qualifier":null,"upstream_status":"Active","status_source_url":"https://www.gamblingcommission.gov.uk/downloads/business-licence-data.zip","status_observed_at":"2026-09-30T03:10:12.000Z","last_listed_at":"2026-09-30T03:10:12.000Z","not_listed_since":null,"license_types":["Remote"],"license_type_raw":"Remote","license_category":"remote","issued_date":"2012-10-01","expiry_date":null,"last_verified_at":"2026-09-30T03:10:12.000Z","source_url":"https://www.gamblingcommission.gov.uk/downloads/business-licence-data.zip"}},"OperatorExportRow":{"type":"object","title":"operators row","description":"One operator (legal entity) per row (`GET /v1/export/operators`), with where it holds licences. No operator-level status: a multi-jurisdiction operator is never collapsed into one — the licences export has each licence.","required":["operator_id","operator_slug","operator_name","registered_name","country","upstream_ids","jurisdictions","active_jurisdictions","licences_total","licences_active","licences_last_verified_at","domains_total","domains_active","created_at","updated_at"],"properties":{"operator_id":{"description":"iGregulator operator id.","type":"string","format":"uuid"},"operator_slug":{"description":"The key `/v1/operators/{slug}` takes and the licences / domains exports carry.","type":"string"},"operator_name":{"description":"Display name, as the register gives it.","type":"string"},"registered_name":{"description":"The name the register gives next to the entity — for UKGC often a trading name.","type":["string","null"]},"country":{"description":"ISO 3166-1 alpha-2, where known.","type":["string","null"]},"upstream_ids":{"description":"The operator's id in each register, keyed by jurisdiction (CSV: JSON text). For KH, TGC, IOM, SE, BE and DE, which publish no identifier, the value is a key we made from the name; for ON it is iGaming Ontario's directory id; for ES, the DGOJ's profile slug; for CO, Coljuegos' contract number; for UA, the company's EDRPOU code.","type":"object","additionalProperties":{"type":"string"}},"jurisdictions":{"description":"Jurisdictions where we hold a licence record for it, any status (CSV: `|`-joined).","type":"array","items":{"type":"string"}},"active_jurisdictions":{"description":"Jurisdictions where it holds an `active` licence — the only \"licensed now\" (CSV: `|`-joined).","type":"array","items":{"type":"string"}},"licences_total":{"description":"Licence records, any status.","type":"integer"},"licences_active":{"description":"Licence records whose status is `active`.","type":"integer"},"licences_last_verified_at":{"description":"When we last read a register about it; null when we hold no licence for it.","type":["string","null"],"format":"date-time"},"domains_total":{"description":"Domain links to this operator, any link status.","type":"integer"},"domains_active":{"description":"Domain links whose own status is `active` (the regulator lists the domain on this operator). Says nothing about the licence's status.","type":"integer"},"created_at":{"description":"When we first recorded the operator.","type":"string","format":"date-time"},"updated_at":{"description":"When its own record (name, ids) last changed.","type":"string","format":"date-time"}},"example":{"operator_id":"9d6f21e0-7f34-4b3a-b0a8-ec6c3cab3e11","operator_slug":"power-leisure-bookmakers-limited","operator_name":"Power Leisure Bookmakers Limited","registered_name":"paddy power","country":"GB","upstream_ids":{"UKGC":"1034"},"jurisdictions":["UKGC"],"active_jurisdictions":["UKGC"],"licences_total":1,"licences_active":1,"licences_last_verified_at":"2026-09-30T03:10:12.000Z","domains_total":12,"domains_active":11,"created_at":"2026-04-17T15:15:41.414Z","updated_at":"2026-04-19T03:01:12.200Z"}},"DomainExportRow":{"type":"object","title":"domains row","description":"One domain ↔ operator LINK per row (`GET /v1/export/domains`): a domain licensed by two entities is two rows, each with its own `domain_status`. The licence columns are the link’s licence — the one `/v1/check` reports: the operator’s best licence that can cover a website (UKGC remote or ancillary remote, MGA B2C, the Curaçao licence the row’s certificate names), null when it holds none.","required":["domain","operator_slug","operator_name","domain_status","domain_association","verification_url","verification_page_kind","standing","link_first_seen","link_last_verified","license_id","jurisdiction_code","license_number","license_number_kind","license_status","status_qualifier","upstream_status","status_source_url","status_observed_at","license_last_verified_at","domain_registered_at","domain_expires_at","domain_registrar"],"properties":{"domain":{"description":"The domain as the register lists it.","type":"string"},"operator_slug":{"description":"The operator this link is to.","type":"string"},"operator_name":{"description":"The operator's name.","type":"string"},"domain_status":{"description":"This domain's status UNDER THIS operator — the link's own status, not the licence's. `delisted` = the regulator removed the domain from this licensee (a positive signal we read, never an absence). The same domain can be `active` on one row and `delisted` on another.","type":"string","enum":["active","parked","expired","redirecting","delisted"]},"domain_association":{"description":"`direct` — the licensee runs the site; `white_label` — a third-party brand trades under its licence.","type":"string","enum":["direct","white_label"]},"verification_url":{"description":"The regulator's own page that names this domain, where we hold one: a Curaçao certificate, a Tobique seal or an MGA verification page. See `verification_page_kind` for which.","type":["string","null"],"format":"uri"},"verification_page_kind":{"description":"What `verification_url` is. `domain_certificate` — a page the regulator issues for this domain alone (a CGA Certificate of Operation, a Tobique validation seal). `licence_certificate` — the CGA certificate for the licence (cert.cga.cw/token), listing this domain among its \"Approved domains\". `licensee_page` — the MGA verification page for the licensee, listing this domain among its websites. `other` — a regulator page we have not classified. Null when there is no `verification_url`.","type":["string","null"],"enum":["domain_certificate","licence_certificate","licensee_page","other",null]},"standing":{"description":"`licensed` = link `active` AND licence `active` (licensed now); `licensed_provisional` = the same, for a licence with `status_qualifier: provisional_under_assessment` (a Curaçao licence the register reads \"Assessment in progress\" — in force until the CGA decides; also licensed now, with a decision outstanding); `licence_not_active` = link active, licence anything else — or no licence at all, because the operator holds none that can cover a website (`license_id` null, `jurisdiction_code` the regulator that lists the link); `delisted` = link de-listed by the regulator; `other` = parked/expired/redirecting, or an operator we hold no licence for. Derived from `domain_status`, `license_status` and the register's wording on this row, nothing else — the same rule as /v1/check's `verdict`.","type":"string","enum":["licensed","licensed_provisional","licence_not_active","delisted","other"]},"link_first_seen":{"description":"When we first saw this link.","type":"string","format":"date-time"},"link_last_verified":{"description":"When a source last confirmed this link.","type":"string","format":"date-time"},"license_id":{"description":"The licence this row's status comes from — the same pick `/v1/check` makes: the operator's best licence that can cover a website (UKGC remote or ancillary remote, never non-remote; MGA B2C only; for Curaçao, the licence the row's certificate names), `active` first, then the most recently verified. Null when the operator holds no such licence.","type":["string","null"],"format":"uuid"},"jurisdiction_code":{"description":"Jurisdiction code: `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario), `SE` (Sweden), `ES` (Spain), `BE` (Belgium), `DE` (Germany), `CO` (Colombia), `UA` (Ukraine). The regulator that lists the link: the licence's jurisdiction — or, when `license_id` is null because the operator holds no licence that can cover a website, the jurisdiction of the licences it does hold. Null only for an operator we hold no licence for.","type":["string","null"]},"license_number":{"description":"See `license_number_kind`.","type":["string","null"]},"license_number_kind":{"description":"`regulator` — the number as the regulator's register prints it. `igregulator_reference` — KH (Kahnawake), TGC (Tobique), IOM (Isle of Man), ON (Ontario), SE (Sweden), ES (Spain), BE (Belgium), DE (Germany) and UA (Ukraine) publish no licence number, so the value is a key iGregulator assigned (`KH/IG/…`, `TGC/B2C/…`, `IOM/OGRA/…`, `ON/IGO/…`, `SE/ONLINE/…`, `SE/BETTING/…`, `ES/APUESTAS/…`, `ES/CONCURSOS/…`, `ES/OTROS-JUEGOS/…`, `BE/APLUS/…`, `BE/BPLUS/…`, `BE/F1PLUS/…`, `DE/SLOTS/…`, `DE/POKER/…`, `DE/SPORTS/…`, `DE/HORSES/…`, `UA/CASINO/…`, `UA/POKER/…`, `UA/BETTING/…`): stable, accepted by `/v1/check?license_number=`, but no regulator issued it — never quote it as the licence number.","type":["string","null"],"enum":["regulator","igregulator_reference",null]},"license_status":{"oneOf":[{"$ref":"#/components/schemas/LicenseStatus"},{"type":"null"}],"description":"That licence's status. Only `active` means licensed now."},"status_qualifier":{"description":"`provisional_under_assessment` for a Curaçao licence the register reads as \"Assessment in progress\" past its term (the CGA keeps it in force until it decides); otherwise null. Same value as `/v1/check`.","type":["string","null"],"enum":["provisional_under_assessment",null]},"upstream_status":{"description":"The register's own word for the licence, verbatim — left out (null) where it would contradict the status (an in-force word next to `revoked`, any word next to `not_in_register`), the same rule `/v1/check` applies. Essential when the status is `unknown`.","type":["string","null"]},"status_source_url":{"description":"The page that published THIS status — often not the register the licence lives in (an enforcement register, a revoked-licences list, an advisory notice). Cite this, not `source_url`.","type":["string","null"],"format":"uri"},"status_observed_at":{"description":"When we read the licence status at `status_source_url`.","type":["string","null"],"format":"date-time"},"license_last_verified_at":{"description":"When we last read the licence's register.","type":["string","null"],"format":"date-time"},"domain_registered_at":{"description":"When the domain was registered, as its registry's RDAP record states it (the registered name: `stake.com` for `www.stake.com`). A fact about the domain, not the licence. Null when we have no record: the TLD publishes no RDAP (e.g. .de, .es, .se, .be), or it is not read yet.","type":["string","null"],"format":"date-time"},"domain_expires_at":{"description":"When the domain's current registration period ends, from the same record.","type":["string","null"],"format":"date-time"},"domain_registrar":{"description":"The sponsoring registrar, as the registry names it.","type":["string","null"]}},"example":{"domain":"spinoloco.com","operator_slug":"medial-n-v","operator_name":"Medial N.V.","domain_status":"active","domain_association":"direct","verification_url":"https://cert.cga.cw/token?id=932","verification_page_kind":"licence_certificate","standing":"licensed","link_first_seen":"2026-06-02T01:12:00.000Z","link_last_verified":"2026-09-29T02:40:00.000Z","license_id":"1f4b7c0a-2a8e-4c4f-9a2f-6c0d9a7e1b21","jurisdiction_code":"CW","license_number":"OGL/2024/1234/0567","license_number_kind":"regulator","license_status":"active","status_qualifier":null,"upstream_status":"Active","status_source_url":"https://gamingcontrol.spin-cdn.com/media/license_registry/20260921_20260921_ogl_license_registry.pdf","status_observed_at":"2026-09-29T02:40:00.000Z","license_last_verified_at":"2026-09-29T02:40:00.000Z","domain_registered_at":null,"domain_expires_at":null,"domain_registrar":null}},"ExportMeta":{"type":"object","description":"Line 1 of an NDJSON export: `{\"_meta\": ExportMeta}`. No row has a `_meta` key. (A CSV export has no metadata line; the same facts are in the `X-Dataset-Generated-At` / `X-Export-Row-Count` headers and the filename.)","required":["dataset","generated_at","row_count","filters","source","format","columns"],"properties":{"dataset":{"type":"string","enum":["licences","operators","domains"]},"generated_at":{"type":"string","format":"date-time","description":"When the rows were read."},"row_count":{"type":"integer","description":"Rows that follow. Fewer lines than this = a truncated download."},"filters":{"type":"object","required":["jurisdiction","status"],"description":"`jurisdiction` and `status` as applied (null = not filtered).","properties":{"jurisdiction":{"type":["array","null"],"items":{"type":"string"},"description":"The codes filtered on, upper-cased."},"status":{"type":["array","null"],"items":{"type":"string"},"description":"The statuses filtered on, lower-cased."}}},"source":{"type":"string","enum":["api","dashboard"]},"format":{"type":"string","enum":["ndjson"]},"columns":{"type":"array","items":{"type":"string"}},"as_of":{"type":"null","description":"Always null: exports are the current state."},"note":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"The API key is missing, malformed, unknown or revoked. On an endpoint that works without a key this is only ever sent when a key WAS sent and is not valid — drop the header, or fix the key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"api_key_missing":{"value":{"error":"Authorization header required","code":"auth_required","details":{"reason":"api_key_missing","suggestion":"Attach an API key: `Authorization: Bearer <key>`. No key yet? Start a 14-day free trial of Starter (card required) at https://app.igregulator.io/signup; an existing account creates keys at https://app.igregulator.io/api-keys."}}},"malformed_header":{"value":{"error":"Authorization header must be \"Bearer <key>\"","code":"auth_invalid","details":{"reason":"malformed_header","suggestion":"Header format: `Authorization: Bearer <your-api-key>`."}}},"api_key_invalid":{"value":{"error":"API key not recognized","code":"auth_invalid","details":{"reason":"api_key_invalid","suggestion":"Double-check the key. Create a new one at https://app.igregulator.io/api-keys if the previous one was deleted."}}},"api_key_revoked":{"value":{"error":"API key has been revoked","code":"auth_revoked","details":{"reason":"api_key_revoked","suggestion":"Generate a new API key at https://app.igregulator.io/api-keys. Revoked keys cannot be restored."}}}}}}},"PaymentRequired":{"description":"The key's plan does not cover this request: the account has no plan or a canceled one (`plan_inactive`), or its plan's end date has passed (`plan_ended` — keys, watchlist and webhook endpoints are kept, and no webhook is sent until the plan is renewed). A `trial` account is served as Starter. Paid plans are not on sale yet: email founder@igregulator.io and we will sort it out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"plan_inactive":{"value":{"error":"Active subscription required","code":"payment_required","details":{"reason":"plan_inactive","suggestion":"Current plan_tier: none — this account has no active plan. Renew or choose a plan at https://app.igregulator.io/billing (by card, or by invoice for three months or more; Starter starts with a 14-day free trial, card required), or email founder@igregulator.io."}}},"plan_ended":{"value":{"error":"Plan ended","code":"payment_required","details":{"reason":"plan_ended","suggestion":"This account's business plan ended on 2027-01-22 (UTC). Keys and settings are kept; email founder@igregulator.io to renew."}}}}}}},"KeylessPaymentRequired":{"description":"Only when a key was sent and its account has no plan or a canceled one (`plan_inactive`), or its plan's end date has passed (`plan_ended`). The same request without the `Authorization` header is answered (within the per-IP limit).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"plan_inactive":{"value":{"error":"Active subscription required","code":"payment_required","details":{"reason":"plan_inactive","suggestion":"Current plan_tier: canceled — this account has no active plan. Renew or choose a plan at https://app.igregulator.io/billing (by card, or by invoice for three months or more; Starter starts with a 14-day free trial, card required), or email founder@igregulator.io."}}},"plan_ended":{"value":{"error":"Plan ended","code":"payment_required","details":{"reason":"plan_ended","suggestion":"This account's business plan ended on 2027-01-22 (UTC). Keys and settings are kept; email founder@igregulator.io to renew."}}}}}}},"RateLimited":{"description":"Without a key: the per-IP limit of this endpoint, 10 requests per hour (`rate_limited` / `quota_exceeded`) — every keyless endpoint has its own counter, a refused request (400) counts, and an API key lifts it — Starter (10,000 requests / month) starts with a 14-day free trial, card required, at https://app.igregulator.io/signup. With a key: the limits of the key — see the `key_*` examples.","headers":{"X-RateLimit-Limit":{"description":"Without a key: `10` — requests per IP per clock hour on THIS endpoint (each keyless endpoint has its own counter). With a valid key these three `X-RateLimit-*` headers describe your monthly quota instead, and the `X-Monthly-Quota-*` headers are sent too — see any keyed endpoint.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left this hour, this one counted. A refused request (400) counts.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the top of the next UTC hour, when the counter starts again.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=public;limit=10;window=hour` without a key; `tier=authenticated` with one.","schema":{"type":"string"}},"RateLimit-Policy":{"description":"The same limit in the IETF draft form, `\"default\";q=10;w=3600`. Not sent on a keyed call.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"keyless_per_ip":{"value":{"error":"Public rate limit reached (10/hour/IP).","code":"rate_limited","details":{"reason":"quota_exceeded","suggestion":"Start a 14-day free trial of Starter (card required) at https://app.igregulator.io/signup for an API key — 10,000 requests/month, no per-IP cap — and send it as \"Authorization: Bearer <key>\". Or wait until reset_at, the top of the next hour (UTC; also the X-RateLimit-Reset header).","limit":10,"reset_at":"2026-10-08T01:00:00.000Z"}}},"key_monthly_quota":{"value":{"error":"Monthly quota exceeded","code":"quota_exceeded","details":{"reason":"monthly_request_limit_reached","current_usage":10000,"limit":10000,"reset_at":"2026-11-01T00:00:00.000Z","plan_tier":"starter","suggestion":"Wait until the monthly reset (reset_at). Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}},"key_per_second":{"value":{"error":"Per-second rate limit reached","code":"rate_limited","details":{"reason":"per_second_limit_exceeded","current_usage":6,"limit":5,"plan_tier":"starter","suggestion":"Your plan allows 5 req/s. Back off for a second and retry. Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}}}}}},"KeyRateLimited":{"description":"A limit of the key was reached. `quota_exceeded` / `monthly_request_limit_reached`: the plan's monthly request quota — wait for `reset_at`. `rate_limited` / `per_second_limit_exceeded`: more requests in one second than the plan allows — retry after `Retry-After` (1 s). A request refused here is not counted against the monthly quota.","headers":{"Retry-After":{"description":"On the per-second limit (`1`). Not on the monthly quota — read `details.reset_at`.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"On the per-second limit only: the requests per second your plan allows.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"On the per-second limit only: `0`.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"On the per-second limit only: Unix epoch seconds of the next second.","schema":{"type":"integer"}},"X-Monthly-Quota-Limit":{"description":"On the monthly quota only: the quota of your plan.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"On the monthly quota only: requests counted this month.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"On the monthly quota only: `0`.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"On the monthly quota only: when the counter starts again (ISO-8601).","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"key_monthly_quota":{"value":{"error":"Monthly quota exceeded","code":"quota_exceeded","details":{"reason":"monthly_request_limit_reached","current_usage":10000,"limit":10000,"reset_at":"2026-11-01T00:00:00.000Z","plan_tier":"starter","suggestion":"Wait until the monthly reset (reset_at). Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}},"key_per_second":{"value":{"error":"Per-second rate limit reached","code":"rate_limited","details":{"reason":"per_second_limit_exceeded","current_usage":6,"limit":5,"plan_tier":"starter","suggestion":"Your plan allows 5 req/s. Back off for a second and retry. Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}}}}}},"ServerError":{"description":"Unexpected server error. Safe to retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Internal server error","code":"server_error","details":{"reason":"internal_error","suggestion":"Retry with exponential backoff (1s / 2s / 4s). If the error persists past 4 seconds, surface failure state to the user instead of looping."}}}}}}},"paths":{"/v1/health":{"get":{"operationId":"checkHealth","security":[],"tags":["System"],"summary":"Liveness + dependency health probe","description":"Is the API process up and can it reach its dependencies. 200 when Postgres and Redis both answer, 503 with the same body shape when either does not; each dependency reports `ok`, the probe latency, and the error text when it failed. No key, no rate limit, not logged — made for uptime probes. It says nothing about how fresh the data is: that is `GET /v1/health/coverage`.","responses":{"200":{"description":"Every dependency answered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResult"}}}},"503":{"description":"At least one dependency did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResult"},"example":{"status":"degraded","service":"igregulator-api","checks":{"postgres":{"ok":true,"latency_ms":2},"redis":{"ok":false,"error":"Connection is closed."}},"timestamp":"2026-10-08T00:56:22.662Z"}}}}}}},"/v1/health/coverage":{"get":{"operationId":"checkCoverage","security":[],"tags":["System"],"summary":"Per-jurisdiction register freshness","description":"Per jurisdiction, how long ago we last wrote a licence record from a read\nof that regulator's register (the newest `last_verified_at` among its\nlicences), so the freshness claim can be checked without a key. It dates\nthe latest register read, not every record: one licence's own\n`last_verified_at` can be older.\n\n**Freshness SLA** — fresh while `age_hours` is under the jurisdiction's SLA: 24 h for UKGC, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA; 48 h for MGA, CW, KH\n(24 h where the register is one download or one page, 48 h where reading\nit takes many requests). Each jurisdiction reports\nits own `sla_hours`. `status` is `healthy` when every jurisdiction that has\nbeen read meets its SLA, `degraded` when any is stale. A stale register is\nnot an error and not a statement about any licence: it means a change the\nregulator published since `last_successful_scrape` is not in our data yet.\n\n**No key needed.** Without one: 10 requests / IP / hour. A valid key sent\nwith it is honoured (your plan's limits, counted against your quota).\n\nEach jurisdiction also carries a `domain_coverage` object: the share of\n*consumer-facing* operators (those whose licence type normally comes with\na published website) that have at least one domain in our data. See\n[coverage methodology](https://igregulator.io/docs/coverage-methodology/)\nfor the per-jurisdiction filter and how to read it.","responses":{"200":{"description":"Freshness per jurisdiction.","content":{"application/json":{"schema":{"type":"object","required":["status","overall_freshness_sla","jurisdictions","timestamp"],"properties":{"status":{"type":"string","enum":["healthy","degraded"]},"overall_freshness_sla":{"type":"string","description":"The SLA rule as one English sentence. For display, not for parsing."},"jurisdictions":{"type":"object","description":"One entry per covered jurisdiction, keyed by code (UKGC, MGA, CW, KH, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA).","additionalProperties":{"type":"object","required":["last_successful_scrape","age_hours","fresh","sla_hours","record_count","domain_coverage"],"properties":{"last_successful_scrape":{"type":["string","null"],"format":"date-time","description":"The newest `last_verified_at` among the jurisdiction's licences. `null` when we hold no licence for it yet."},"age_hours":{"type":["integer","null"],"description":"Hours since then, rounded to the nearest hour."},"fresh":{"type":["boolean","null"],"description":"`age_hours < sla_hours`. `null` when never read."},"sla_hours":{"type":"integer","enum":[24,48]},"record_count":{"type":"integer","description":"Licence records we hold for the jurisdiction, in every status."},"domain_coverage":{"type":"object","required":["operators_with_domain","normative_operators","coverage_pct"],"description":"Domain coverage among operators whose licence type normally comes with a published website. See https://igregulator.io/docs/coverage-methodology/","properties":{"operators_with_domain":{"type":"integer"},"normative_operators":{"type":"integer"},"coverage_pct":{"type":["integer","null"],"description":"Whole percent; `null` when `normative_operators` is 0."}}},"reason":{"type":"string","description":"Only when the jurisdiction is not fresh: `last_successful_scrape_older_than_24h` / `…_48h`, or `no_licenses_recorded` when it was never read."}}}},"timestamp":{"type":"string","format":"date-time","description":"When this answer was computed."}}},"example":{"status":"degraded","overall_freshness_sla":"24 hours for direct-download sources (UKGC, SE, BE, UA) and HTML registers read in one pass (AN, TGC, IOM, ON, ES, DE, CO), 48 hours for heavier scraped sources (MGA, CW, KH).","jurisdictions":{"AN":{"last_successful_scrape":"2026-10-07T04:00:17.625Z","age_hours":21,"fresh":true,"sla_hours":24,"record_count":1592,"domain_coverage":{"operators_with_domain":1397,"normative_operators":1414,"coverage_pct":99}},"TGC":{"last_successful_scrape":"2026-10-05T04:15:07.803Z","age_hours":69,"fresh":false,"sla_hours":24,"record_count":206,"domain_coverage":{"operators_with_domain":29,"normative_operators":181,"coverage_pct":16},"reason":"last_successful_scrape_older_than_24h"}},"timestamp":"2026-10-08T00:56:25.204Z"}}},"headers":{"X-RateLimit-Limit":{"description":"Without a key: `10` — requests per IP per clock hour on THIS endpoint (each keyless endpoint has its own counter). With a valid key these three `X-RateLimit-*` headers describe your monthly quota instead, and the `X-Monthly-Quota-*` headers are sent too — see any keyed endpoint.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left this hour, this one counted. A refused request (400) counts.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the top of the next UTC hour, when the counter starts again.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=public;limit=10;window=hour` without a key; `tier=authenticated` with one.","schema":{"type":"string"}},"RateLimit-Policy":{"description":"The same limit in the IETF draft form, `\"default\";q=10;w=3600`. Not sent on a keyed call.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/KeylessPaymentRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/stats":{"get":{"operationId":"getStats","security":[],"tags":["System"],"summary":"Headline counts, each with its definition","description":"The numbers the igregulator.io homepage prints: licence records by status,\njurisdictions with their last register read and freshness, operators,\nlinked domains, brand pages, status changes read in the last 30 and 7 days\n(with a few recent ones, each with its source page), withdrawn events and a\ngeo-check summary. Every value is a count of what the database holds at\n`generated_at`; the body carries a `definitions` object saying exactly what\neach one counts. Only `active` in `licences.by_status` means licensed now.\n\n**No key, no per-IP limit.** Every caller gets the same payload, recounted\nat most every 10 minutes, so it is not metered: the homepage calls it on\nevery view and a visit must not spend the visitor's 10 lookups. A key sent\nwith it is ignored — not checked, not charged — so this endpoint never\nanswers 401, 402 or 429.\n\nPer-jurisdiction `last_read_at`, `age_hours`, `fresh` and `sla_hours` follow\nthe same rule as `/v1/health/coverage` (24 h for UKGC, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA; 48 h for MGA, CW, KH).","responses":{"200":{"description":"Headline counts.","headers":{"Cache-Control":{"description":"Always `public, max-age=300`.","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"Always `*`: any page may read these numbers from the browser.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["licences","jurisdictions","operators","domains","brand_pages","status_changes_30d","status_changes_7d","corrections","geo_checks","last_register_read_at","generated_at","definitions"],"properties":{"licences":{"type":"object","description":"Licence records we hold from the regulators' registers, in every status. by_status splits them by current status; only `active` means licensed now.","required":["total","by_status"],"properties":{"total":{"type":"integer"},"by_status":{"type":"object","description":"Licence records per current status. Every status is present (0 when none); `surrendered` and `not_in_register` are not revocations.","required":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register"],"properties":{"active":{"type":"integer"},"suspended":{"type":"integer"},"revoked":{"type":"integer"},"expired":{"type":"integer"},"pending":{"type":"integer"},"unknown":{"type":"integer"},"surrendered":{"type":"integer"},"not_in_register":{"type":"integer"}},"additionalProperties":{"type":"integer"}}}},"jurisdictions":{"type":"object","description":"count: regulators we hold at least one licence record for. items: every regulator we cover, with its licence records, how many are active, when we last read its register (the newest last_verified_at among its licences, as /v1/health/coverage reports it), and whether that read is inside its 24 h / 48 h freshness window.","required":["count","items"],"properties":{"count":{"type":"integer","description":"Jurisdictions with at least one licence record."},"items":{"type":"array","description":"Every jurisdiction we cover, ordered by code. One with no licence records yet has `licences: 0` and nulls for the read.","items":{"type":"object","required":["code","name","licences","active","last_read_at","age_hours","fresh","sla_hours","by_status"],"properties":{"code":{"type":"string","description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names."},"name":{"type":"string"},"licences":{"type":"integer","description":"Licence records, any status."},"active":{"type":"integer","description":"Of those, licence records whose status is `active`."},"last_read_at":{"type":["string","null"],"format":"date-time","description":"When we last read this register: the newest `last_verified_at` among its licences (/v1/health/coverage's `last_successful_scrape`)."},"age_hours":{"type":["integer","null"],"description":"Hours from `last_read_at` to `generated_at`, rounded to the nearest hour."},"fresh":{"type":["boolean","null"],"description":"`age_hours < sla_hours`. A register we could not read keeps its last good read and turns `false`; null when never read."},"sla_hours":{"type":"integer","enum":[24,48]},"by_status":{"type":"object","description":"jurisdictions.items[].by_status: that regulator's licence records by current status, with every status present (a zero is a count we made).","required":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register"],"properties":{"active":{"type":"integer"},"suspended":{"type":"integer"},"revoked":{"type":"integer"},"expired":{"type":"integer"},"pending":{"type":"integer"},"unknown":{"type":"integer"},"surrendered":{"type":"integer"},"not_in_register":{"type":"integer"}},"additionalProperties":{"type":"integer"}}}}}}},"operators":{"type":"integer","description":"Operators holding at least one licence record, in any status, as each register names them — a company licensed by two regulators can be two operators."},"domains":{"type":"object","required":["linked","regulator_verified"],"properties":{"linked":{"type":"integer","description":"Distinct domains with at least one active domain→operator link: a register or a regulator certificate lists the domain for that operator today."},"regulator_verified":{"type":"integer","description":"Of those, domains with an active link that carries the regulator's own per-domain certificate or seal page (Curaçao cert.cga.cw / cert.gcb.cw, Tobique validate.thetgc.ca) — the page /v1/check returns as verification_url."}}},"brand_pages":{"type":"integer","description":"Domains with a public page at app.igregulator.io/brands/<domain> — the /brands directory total: an active link, a hostname (not a URL with a path), not a subdomain of another live domain of the same operator, and not the www. spelling of a host that is itself listed (one page per site)."},"status_changes_30d":{"type":"integer","description":"Licence status changes read from a regulator in the last 30 days: license_history events written by a scraper or the seal re-verifier, not since withdrawn, whose new status differs both from the previous one and from what the last event still standing had set — so a read that only puts a status back after a withdrawn event (the undo of the 2026-09-22 UKGC register flap) is not a change. First sightings, data-only updates and our correction/backfill migrations are excluded."},"status_changes_7d":{"type":"object","description":"The same changes as status_changes_30d, over the last 7 days: total, and by_status = how many moved to each status.","required":["total","by_status","recent"],"properties":{"total":{"type":"integer"},"by_status":{"type":"object","description":"How many of those changes moved a licence to each status.","required":["active","suspended","revoked","expired","pending","unknown","surrendered","not_in_register"],"properties":{"active":{"type":"integer"},"suspended":{"type":"integer"},"revoked":{"type":"integer"},"expired":{"type":"integer"},"pending":{"type":"integer"},"unknown":{"type":"integer"},"surrendered":{"type":"integer"},"not_in_register":{"type":"integer"}},"additionalProperties":{"type":"integer"}},"recent":{"type":"array","description":"status_changes_7d.recent: up to six of those changes, newest first and at most one per regulator, each with the page it was read from. Only operators whose registered name carries a company legal form (Ltd, LLC, N.V., GmbH…) are listed, so no sole trader is named here; the counts include everyone.","maxItems":6,"items":{"type":"object","required":["changed_at","jurisdiction","operator","operator_slug","previous_status","new_status","source_url"],"properties":{"changed_at":{"type":"string","format":"date-time"},"jurisdiction":{"type":"string","description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names."},"operator":{"type":"string","description":"The operator as the register names it."},"operator_slug":{"type":["string","null"],"description":"Its page: app.igregulator.io/operators/<slug>."},"previous_status":{"type":"string"},"new_status":{"type":"string"},"source_url":{"type":["string","null"],"description":"The regulator page this change was read from."}}}}}},"corrections":{"type":"integer","description":"License_history events we later withdrew as wrong (corrected_at set). They stay on the record with a correction note; none is deleted."},"geo_checks":{"type":"object","description":"Geo-availability checks (Business plan): how many distinct domains we have fetched from inside at least one country, from which countries, and since when. An observation about what a visitor was served — never a licence status.","required":["domains","countries","since"],"properties":{"domains":{"type":"integer"},"countries":{"type":"array","items":{"type":"string"},"description":"ISO country codes we have checked from."},"since":{"type":["string","null"],"format":"date-time"}}},"last_register_read_at":{"type":["string","null"],"format":"date-time","description":"The most recent register read across all jurisdictions (max of jurisdictions.items[].last_read_at). Individual registers can be older — see each item."},"generated_at":{"type":"string","format":"date-time","description":"When these numbers were counted. The payload is cached for up to 10 minutes."},"definitions":{"type":"object","description":"One sentence per number, saying what it counts — the same text as this schema. Keys: `licences`, `jurisdictions`, `operators`, `domains_linked`, `domains_regulator_verified`, `brand_pages`, `status_changes_30d`, `corrections`, `jurisdiction_by_status`, `status_changes_7d`, `status_changes_recent`, `geo_checks`, `last_register_read_at`, `generated_at`.","additionalProperties":{"type":"string"}}}}}}},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/check":{"get":{"operationId":"checkDomain","security":[],"tags":["Lookup"],"summary":"Verify a domain or licence number","description":"Pass `?domain=` **or** `?license_number=` — exactly one.\n\n**No key needed.** Without one: 10 requests / IP / hour, and a request we\nrefuse (400) still spends one. With a valid key: your plan's limits, counted\nagainst your monthly quota (a refused request is then not counted). A key\nthat is sent is always checked — an unknown or revoked one is a 401 here too.\n\n**Response:** `query`, `verdict`, `verdict_detail`, `match`, `alternatives` and\n`_meta` are always present; `confidence`, `match_absence_reason`,\n`checked_jurisdictions`, `related_hosts`, `jurisdictions`, `superseded_number`,\n`as_of` and `domain_registration` only when they apply (each says when).\nRead `verdict` first: one of `licensed`, `licensed_provisional`, `domain_not_listed`,\n`licence_not_active`, `related_host_listed`, `name_match_only`, `not_found`, `generic_term`,\nwith `verdict_detail` as quotable text. A host and its\nwww-counterpart are one site; another host on the same registrable domain is reported as\nsuch (`related_host_listed`, `related_hosts[]`), never as the queried host. `match` carries the regulator name,\nthe licence UUID and the status's own provenance (`status_source_url`, `status_observed_at`);\n`_meta.register` says how fresh the matched register is, and `_meta.stale_jurisdictions` which\nregisters are past their SLA on a miss. See the confidence-scoring guide at\nhttps://igregulator.io/docs/confidence/ for match-type semantics.\n\nA domain or number we do not find is a **200** with `match: null` and `verdict: not_found`\n— never a 404 — and it means \"in none of the registers we cover\", not \"unlicensed\".","parameters":[{"name":"domain","in":"query","schema":{"type":"string","maxLength":253},"example":"bet365.com","description":"A bare hostname. Case is ignored, one trailing dot is dropped, and an internationalised name is converted to punycode (`query.domain` is what we looked up; `query.input` echoes what you sent when it differs). A scheme, path, port or underscore is a 400 (`not_a_valid_hostname`); more than 253 characters is a 400 (`hostname_too_long`)."},{"name":"license_number","in":"query","schema":{"type":"string","maxLength":64},"example":"039028-R-319297-014","description":"A licence number as the register prints it — case, spaces and separators are ignored (`055149-r-331499-004` finds `055149-R-331499-004`). An earlier version of a UKGC number (`055148-R-331498-001`) resolves to the version the register lists now, said in `superseded_number` and first in `verdict_detail`. For KH, TGC, IOM, ON, SE, ES, BE, DE and UA, whose registers publish none, pass the iGregulator reference returned as `license_number` (e.g. `IOM/OGRA/bm-solutions-iom-limited`). `match.match_type` is `license_number`."},{"name":"as_of","in":"query","schema":{"type":"string","maxLength":40},"example":"2026-03-01","description":"Retrospective lookup. Reconstructs the matched licence's status as it stood at that moment from transition history, within our observation window only — e.g. \"was this operator licensed at the time of a transaction three months ago\". Exactly two formats: `YYYY-MM-DD`, a real calendar date (the end of that day, UTC; today's date means now), or an ISO-8601 datetime with a UTC offset (`2026-03-01T12:00:00Z`, `2026-03-01T14:00+02:00`). Anything else — `2026/03/01`, `2026-02-30`, a datetime without an offset — and any future instant is a 400 with `details.field: \"as_of\"`. `match.status` and `verdict` stay current; the historical answer is the top-level `as_of` object (which names the licence it is about), and `verdict_detail` leads with it."}],"responses":{"200":{"description":"The answer — also when nothing was found (`match: null`, `verdict: not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}},"headers":{"X-RateLimit-Limit":{"description":"Without a key: `10` — requests per IP per clock hour on THIS endpoint (each keyless endpoint has its own counter). With a valid key these three `X-RateLimit-*` headers describe your monthly quota instead, and the `X-Monthly-Quota-*` headers are sent too — see any keyed endpoint.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left this hour, this one counted. A refused request (400) counts.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the top of the next UTC hour, when the counter starts again.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=public;limit=10;window=hour` without a key; `tier=authenticated` with one.","schema":{"type":"string"}},"RateLimit-Policy":{"description":"The same limit in the IETF draft form, `\"default\";q=10;w=3600`. Not sent on a keyed call.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}}}},"400":{"description":"Neither or both of `domain` / `license_number`, a `domain` that is not a hostname (`not_a_valid_hostname`, `hostname_too_long`), or an `as_of` we cannot read or that lies in the future.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"not_a_hostname":{"value":{"error":"domain is not a valid hostname","code":"invalid_query","details":{"reason":"not_a_valid_hostname","field":"domain","suggestion":"Pass a bare hostname — no scheme, no path, no port, no underscores; at most 253 characters. A trailing dot is dropped and an internationalised name is converted to punycode. Example: 'paddypower.com' or 'www.bet365.com'."}}},"missing_parameter":{"value":{"error":"pass ?domain= or ?license_number=","code":"invalid_query","details":{"reason":"missing_required_parameter","suggestion":"Append a query parameter: ?domain=paddypower.com  or  ?license_number=039028-R-319297-014"}}},"both_parameters":{"value":{"error":"pass only one of domain / license_number","code":"invalid_query","details":{"reason":"conflicting_parameters","suggestion":"Remove one of the two — `/v1/check` resolves either a domain or a licence number, not both at once."}}},"bad_as_of":{"value":{"error":"as_of must be a calendar date as YYYY-MM-DD (e.g. 2026-03-01) or an ISO-8601 datetime with a UTC offset (e.g. 2026-03-01T12:00:00Z)","code":"invalid_query","details":{"reason":"invalid_input","field":"as_of","suggestion":"Pass as_of as YYYY-MM-DD (a real calendar date; resolved to the end of that day, UTC — today's date means now) or as an ISO-8601 datetime with a UTC offset, e.g. 2026-03-01T12:00:00Z. Not in the future."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/KeylessPaymentRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/check/batch":{"post":{"operationId":"checkDomainBatch","security":[{"bearerAuth":[]}],"tags":["Lookup"],"summary":"Verify many domains in one request (KYB sweep)","description":"Authenticated batch of `/v1/check` (domains only) — one round trip for a KYB sweep or affiliate-list audit instead of N sequential calls. Each result carries `verdict` / `verdict_detail` / `match` / `confidence` / `match_absence_reason` exactly as the single check does, and `_meta.register` when a jurisdiction matched — but not `alternatives`, the dual-licence `jurisdictions` list or `as_of`; a dual-licensed row's `verdict_detail` says how many other links `GET /v1/check` would show. `checked_jurisdictions` and `_meta` (`checked_at`, `stale_jurisdictions`) are returned once at the top to stay token-lean. Up to 100 domains per request — paginate beyond. Each entry is normalised as the single check normalises `domain` (case, a trailing dot, an internationalised name → punycode); `query.domain` is what was looked up and `query.input` echoes the entry as sent. An entry that is not a hostname — too long, not a string, a URL — comes back as a per-row `error` (with `error_detail`, and no `verdict`) rather than failing the whole batch; only a body that is not `{ domains: [1–100 entries] }` is a 400. Rows carry `related_hosts` when the related-host stage answered. Results are in the order sent; duplicates are answered twice. The whole batch counts as one request against your plan quota. `POST` only: a `GET` here is a 405 (`method_not_allowed`, `Allow: POST`), with or without a key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domains"],"properties":{"domains":{"type":"array","items":{"type":"string","maxLength":253,"description":"A bare hostname. An entry that is not one is answered with a per-row `error`, not a 400."},"minItems":1,"maxItems":100}}},"example":{"domains":["bet365.com","www.virginbet.com","casino.com"]}}}},"responses":{"200":{"description":"Per-domain results.","content":{"application/json":{"schema":{"type":"object","required":["count","checked_jurisdictions","results","_meta"],"properties":{"count":{"type":"integer","description":"Rows in `results` — one per entry sent."},"checked_jurisdictions":{"type":"array","items":{"type":"string"},"description":"The jurisdiction codes every row was checked against — once for the whole batch. Report a `not_found` row as \"not found in these registers\", never as \"unlicensed\"."},"_meta":{"type":"object","required":["checked_at","stale_jurisdictions"],"properties":{"checked_at":{"type":"string","format":"date-time","description":"When this batch was computed."},"stale_jurisdictions":{"type":"array","items":{"$ref":"#/components/schemas/StaleJurisdiction"},"description":"Covered registers past their freshness SLA (often `[]`) — once for the whole batch. Each weakens every `not_found` / `generic_term` / `name_match_only` row."}}},"results":{"type":"array","items":{"type":"object","required":["query","match","confidence"],"properties":{"query":{"type":"object","required":["input"],"properties":{"domain":{"type":"string","description":"The normalised hostname looked up. Absent on an `error` row."},"input":{"description":"The entry exactly as sent (any JSON value on an `invalid_input` row)."}}},"verdict":{"$ref":"#/components/schemas/CheckVerdict","description":"As on the single check. Absent on an `error` row."},"verdict_detail":{"type":"string","description":"As on the single check. Absent on an `error` row."},"_meta":{"type":"object","description":"Present when the row matched a jurisdiction.","properties":{"register":{"$ref":"#/components/schemas/RegisterFreshness"}}},"match":{"oneOf":[{"$ref":"#/components/schemas/CheckMatch"},{"type":"null"}]},"confidence":{"type":"string","enum":["high","medium","low","none"],"description":"Always present here (the single check omits it instead): `none` when nothing matched, and on an `error` row."},"match_absence_reason":{"type":["string","null"],"enum":["generic_term","shared_registrable","no_record_found",null],"description":"As on the single check: present when `match` is null. Absent on an `error` row."},"related_hosts":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/RelatedHost"},"description":"As on the single check."},"error":{"type":"string","enum":["invalid_hostname","invalid_input"],"description":"`invalid_hostname`: the entry is a string but not a hostname (too long, a URL, a path, an underscore…). `invalid_input`: the entry is not a string. `match` is null and there is no `verdict`."},"error_detail":{"type":"string","description":"One sentence saying what is wrong with the entry."}}}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"The body is not JSON, or not `{ \"domains\": [ … ] }` with 1–100 entries. A bad entry inside the array is not a 400 — it is a per-row `error`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"body must be { domains: [...] } with 1–100 entries","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"POST a JSON body like {\"domains\":[\"bet365.com\",\"www.virginbet.com\"]} — 1 to 100 entries. An entry that is not a hostname comes back as a per-row error; it does not fail the batch."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/jurisdictions":{"get":{"operationId":"listJurisdictions","security":[],"tags":["Jurisdictions"],"summary":"List all covered jurisdictions","description":"The regulators whose registers we read — fourteen today: UKGC, MGA, CW, KH, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA — ordered by code, each with its name, country code, website, currency and a reference list of licence categories (`license_types` — read its note before validating anything against it). Use it for a jurisdiction picker or to turn a code into a name. For when each register was last read, see `GET /v1/health/coverage`. No key needed: without one 10 requests / IP / hour; a valid key sent with it is honoured.","responses":{"200":{"description":"Every covered jurisdiction, ordered by code.","content":{"application/json":{"schema":{"type":"object","required":["jurisdictions"],"properties":{"jurisdictions":{"type":"array","items":{"$ref":"#/components/schemas/Jurisdiction"}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Without a key: `10` — requests per IP per clock hour on THIS endpoint (each keyless endpoint has its own counter). With a valid key these three `X-RateLimit-*` headers describe your monthly quota instead, and the `X-Monthly-Quota-*` headers are sent too — see any keyed endpoint.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left this hour, this one counted. A refused request (400) counts.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the top of the next UTC hour, when the counter starts again.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=public;limit=10;window=hour` without a key; `tier=authenticated` with one.","schema":{"type":"string"}},"RateLimit-Policy":{"description":"The same limit in the IETF draft form, `\"default\";q=10;w=3600`. Not sent on a keyed call.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/KeylessPaymentRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/jurisdictions/{code}":{"get":{"operationId":"getJurisdiction","tags":["Jurisdictions"],"summary":"Jurisdiction detail","description":"One row of `GET /v1/jurisdictions`, by code: the same six fields, nothing more — name, country code, website, currency and the reference `license_types` list. Unlike the list, this needs an API key and counts against your quota; if you only need the name, `GET /v1/jurisdictions` (no key) and `match.regulator_name` on `/v1/check` already give it.","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9]{2,16}$"},"example":"UKGC","description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names. Case-insensitive (`ukgc` = `UKGC`). Anything that is not 2–16 letters or digits is a 400; a well-formed code we do not cover is a 404."}],"responses":{"200":{"description":"The jurisdiction.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Jurisdiction"}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`code` is not 2–16 letters or digits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Jurisdiction code must be 2–16 alphanumeric characters","code":"invalid_jurisdiction_code","details":{"reason":"invalid_input","field":"code","suggestion":"Use a known jurisdiction code: UKGC, MGA, CW, KH, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA. See GET /v1/jurisdictions for the full list."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"A well-formed code we do not cover.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Jurisdiction not found","code":"not_found","details":{"reason":"jurisdiction_not_found","field":"code","suggestion":"Use GET /v1/jurisdictions to list the supported codes."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/jurisdictions/{code}/operators":{"get":{"operationId":"listJurisdictionOperators","tags":["Jurisdictions"],"summary":"List operators with a licence record in a jurisdiction (paginated)","description":"Every operator we hold at least one licence record for under the given jurisdiction — **in any status**: `active`, but also `surrendered`, `revoked`, `expired`, `not_in_register` and the rest. Rows carry no status, so this is NOT a roster of who is licensed now: for that, check each operator's licences (`GET /v1/operators/{slug}/licenses`) and keep those with an `active` licence in this jurisdiction. Paginate with `?limit=` (1–200, default 50) and `?offset=` (zero-based); an out-of-range value is a 400, not clamped. Ordered by internal operator id — stable across pages, not alphabetical.","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9]{2,16}$"},"example":"UKGC","description":"Jurisdiction code — `UKGC`, `MGA`, `CW` (Curaçao), `KH` (Kahnawake), `AN` (Anjouan), `TGC` (Tobique), `IOM` (Isle of Man), `ON` (Ontario — the iGaming Ontario operator directory), `SE` (Sweden — online gaming and betting licences from the Spelinspektionen register, nothing else), `ES` (Spain — the DGOJ's state-level online licences; not the state lotteries (SELAE, ONCE) or regional land-based gambling), `BE` (Belgium — the Gaming Commission's online licence classes A+, B+ and F1+ only; not land-based licences or the Loterie Nationale), `DE` (Germany — the GGL whitelist's four internet game types (virtual slots, online poker, sports betting, online horse betting); not a Land's online casino permits, lotteries or land casinos), `CO` (Colombia — Coljuegos' online gaming concessions only; not land-based gaming (juegos localizados) or the lotteries), `UA` (Ukraine — PlayCity's online casino, online poker and bookmaking licences only; not land casinos or slot halls or the state lotteries). `GET /v1/jurisdictions` lists them with their names. Case-insensitive (`ukgc` = `UKGC`). Anything that is not 2–16 letters or digits is a 400; a well-formed code we do not cover is a 404."},{"name":"limit","in":"query","schema":{"type":"integer","default":50,"minimum":1,"maximum":200}},{"name":"offset","in":"query","schema":{"type":"integer","default":0,"minimum":0}}],"responses":{"200":{"description":"One page of operators.","content":{"application/json":{"schema":{"type":"object","required":["jurisdiction_code","total","limit","offset","operators"],"properties":{"jurisdiction_code":{"type":"string","description":"The code, upper-cased."},"total":{"type":"integer","description":"Operators with at least one licence record (any status) in this jurisdiction."},"limit":{"type":"integer"},"offset":{"type":"integer"},"operators":{"type":"array","items":{"type":"object","description":"An operator row without `upstream_ids` — `GET /v1/operators/{slug}` has the full record.","required":["id","slug","display_name","registered_name","country","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"display_name":{"type":"string"},"registered_name":{"type":["string","null"]},"country":{"type":["string","null"],"description":"`null` for almost every operator — see `Operator.country`."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`code` is not 2–16 letters or digits, or `limit` / `offset` is out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bad_code":{"value":{"error":"Jurisdiction code must be 2–16 alphanumeric characters","code":"invalid_jurisdiction_code","details":{"reason":"invalid_input","field":"code","suggestion":"Use a known jurisdiction code: UKGC, MGA, CW, KH, AN, TGC, IOM, ON, SE, ES, BE, DE, CO, UA. See GET /v1/jurisdictions for the full list."}}},"bad_pagination":{"value":{"error":"limit must be 1–200, offset >= 0","code":"invalid_pagination","details":{"reason":"invalid_input","suggestion":"?limit accepts 1–200 (default 50); ?offset is zero-based."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"A well-formed code we do not cover.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Jurisdiction not found","code":"not_found","details":{"reason":"jurisdiction_not_found","field":"code","suggestion":"Use GET /v1/jurisdictions to list the supported codes."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/operators/search":{"get":{"operationId":"searchOperators","security":[],"tags":["Operators"],"summary":"Search operators by name","description":"A case-insensitive substring match on `display_name`,\n`slug` and `registered_name` — the operator's list of trading names is not\nsearched (for UKGC, `registered_name` often holds the brand, so `bet365`\nstill finds the Hillside entities). To go from a website to its operator,\nuse `GET /v1/check?domain=`. Results ranked: exact slug match >\ndisplay-name prefix > the rest, then by `display_name`. Operators are\nreturned whatever the status of their licences — a hit is not a statement\nthat the operator is licensed.\n\n**No key needed.** Without one: 10 requests / IP / hour, and at most **3**\nrows per request whatever `?limit=` says (`limit` in the response is the\nvalue applied; `total` still counts every match, and `offset` still pages).\n\nWith a valid key: your plan's limits, `limit` up to 100 (default 20).","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200},"example":"888","description":"The text to look for, 1–200 characters after trimming. Matched literally, case-insensitively, anywhere in the name or slug — `%` and `_` are ordinary characters, not wildcards."},{"name":"limit","in":"query","schema":{"type":"integer","default":20,"minimum":1,"maximum":100},"description":"Rows per page. Out of range is a 400. Without a key the effective value is at most 3."},{"name":"offset","in":"query","schema":{"type":"integer","default":0,"minimum":0}}],"responses":{"200":{"description":"One page of matching operators (possibly empty).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorSearchResult"},"example":{"q":"888","total":1,"limit":3,"offset":0,"operators":[{"id":"fa30b85c-4749-4f91-9490-2615b76a4832","slug":"888-uk-limited","display_name":"888 UK Limited","registered_name":"888","country":null,"upstream_ids":{"UKGC":"39028"},"created_at":"2026-04-17T15:15:41.414Z","updated_at":"2026-04-17T15:15:41.414Z","_meta":{"scraped_at":"2026-10-07T03:00:12.644Z","source_modified_at":null,"source_url":null,"confidence_hint":"scraped"}}],"_meta":{"freshness_range":{"oldest":"2026-10-07T03:00:12.644Z","newest":"2026-10-07T03:00:12.644Z"},"total_sources":1}}}},"headers":{"X-RateLimit-Limit":{"description":"Without a key: `10` — requests per IP per clock hour on THIS endpoint (each keyless endpoint has its own counter). With a valid key these three `X-RateLimit-*` headers describe your monthly quota instead, and the `X-Monthly-Quota-*` headers are sent too — see any keyed endpoint.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left this hour, this one counted. A refused request (400) counts.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the top of the next UTC hour, when the counter starts again.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=public;limit=10;window=hour` without a key; `tier=authenticated` with one.","schema":{"type":"string"}},"RateLimit-Policy":{"description":"The same limit in the IETF draft form, `\"default\";q=10;w=3600`. Not sent on a keyed call.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}}}},"400":{"description":"`q` is missing or empty, or `limit` / `offset` is out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"q required; limit 1–100; offset 0–1000000","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"Provide ?q=<search term>, optional ?limit=1..100 (default 20) and ?offset=0.. (default 0)."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/KeylessPaymentRequired"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/operators/{slug}":{"get":{"operationId":"getOperator","tags":["Operators"],"summary":"Operator detail — metadata + licences + domains","description":"Full profile for one operator: display and registered names, upstream regulator IDs, every licence we hold for it in every status (each with its own status provenance), and every domain the registers we cover link to it, each with its own status under this operator (a `delisted` link is included). Neither list is paginated. Enforcement history is NOT included — fetch `GET /v1/operators/{slug}/regulatory-actions`. There is no operator-level status: a multi-jurisdiction operator is never collapsed into one — read each licence. The top-level `_meta` is taken from ONE licence (see `OperatorDetail._meta`). Pass `?as_of=` to attach a point-in-time status to EACH licence (resolved per licence).","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100},"example":"888-uk-limited","description":"The operator's slug, from `/v1/operators/search` or a `/v1/check` match's `operator_slug`. Case-insensitive."},{"name":"as_of","in":"query","schema":{"type":"string"},"example":"2026-03-01","description":"Point-in-time lookup. Each licence gains an `as_of` object: its status reconstructed within our observation window — never extrapolated before `tracking_since`. Exactly two formats: `YYYY-MM-DD`, a real calendar date (the end of that day, UTC; today's date means now), or an ISO-8601 datetime with a UTC offset (`2026-03-01T12:00:00Z`, `2026-03-01T14:00+02:00`). Anything else — `2026/03/01`, `2026-02-30`, a datetime without an offset — and any future instant is a 400 with `details.field: \"as_of\"`."}],"responses":{"200":{"description":"Operator detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDetail"}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`as_of` is not one of the two accepted formats or lies in the future (the `error` text says which); or `slug` is longer than 100 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bad_as_of":{"value":{"error":"as_of is in the future — iGregulator never answers about a date it has not observed","code":"invalid_query","details":{"reason":"invalid_input","field":"as_of","suggestion":"Pass as_of as YYYY-MM-DD (resolved to end of that day, UTC) or an ISO-8601 datetime — and not in the future."}}},"bad_slug":{"value":{"error":"slug required","code":"invalid_slug","details":{"reason":"invalid_input","field":"slug","suggestion":"Pass a URL-safe operator slug — lowercase letters, digits, hyphens only. See GET /v1/operators/search for the slug of a given operator."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No operator has that slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Operator not found","code":"not_found","details":{"reason":"operator_not_found","field":"slug","suggestion":"No operator matches this slug. Try GET /v1/operators/search?q=<name> to find the canonical slug."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/operators/{slug}/licenses":{"get":{"operationId":"listOperatorLicenses","tags":["Operators"],"summary":"All licences for an operator","description":"Every licence record we hold for the operator, in every status, sorted by `jurisdiction_code, license_number` — the whole list in one response (not paginated). The same licence objects as in `GET /v1/operators/{slug}`, without the operator and its domains. Append `?include_history=true` to embed the status-change timeline under each licence. `?as_of=` is not read here — use `/v1/operators/{slug}` or `/v1/licenses/{license_id}` for a point-in-time status.","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100},"example":"888-uk-limited","description":"The operator's slug, from `/v1/operators/search` or a `/v1/check` match's `operator_slug`. Case-insensitive."},{"name":"include_history","in":"query","schema":{"type":"boolean","default":false},"description":"Exactly `true` or `false` (lower case); anything else — `1`, `yes`, `TRUE` — is a 400. When `true`, each licence carries its `history[]`."}],"responses":{"200":{"description":"All of the operator's licences.","content":{"application/json":{"schema":{"type":"object","required":["operator_slug","licenses"],"properties":{"operator_slug":{"type":"string"},"licenses":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/License"},{"type":"object","properties":{"history":{"type":"array","description":"Only with `?include_history=true`: every event for this licence, most recent first (`[]` when there is none). An event with `corrected_at` set was withdrawn.","items":{"allOf":[{"$ref":"#/components/schemas/LicenseHistoryEntry"},{"type":"object","required":["license_id"],"properties":{"license_id":{"type":"string","format":"uuid"}}}]}}}}]}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`include_history` is not `true` / `false`, or `slug` is longer than 100 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bad_include_history":{"value":{"error":"include_history must be \"true\" or \"false\"","code":"invalid_query","details":{"reason":"invalid_input","field":"include_history","suggestion":"Use ?include_history=true or omit the parameter (defaults to false)."}}},"bad_slug":{"value":{"error":"slug required","code":"invalid_slug","details":{"reason":"invalid_input","field":"slug","suggestion":"Pass a URL-safe operator slug — lowercase letters, digits, hyphens only. See GET /v1/operators/search for the slug of a given operator."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No operator has that slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Operator not found","code":"not_found","details":{"reason":"operator_not_found","field":"slug","suggestion":"No operator matches this slug. Try GET /v1/operators/search?q=<name> to find the canonical slug."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/operators/{slug}/regulatory-actions":{"get":{"operationId":"getOperatorRegulatoryActions","tags":["Operators"],"summary":"Regulatory actions / enforcement history for an operator (paginated)","description":"Fines, suspensions, revocations, settlements and public warnings recorded against the operator — newest first by default. This is the enforcement-history signal for KYB / reputation scoring; it is intentionally NOT embedded in the operator-detail response (GET /v1/operators/{slug}), so fetch it separately. An empty list means we hold no action linked to this operator — not proof of a clean record: we read the UKGC, MGA and Curaçao enforcement publications only, and not every action in them is matched to an operator. `_meta.note` says so in the response itself, and `_meta.sources_read` lists the publications. An action here does not change a licence status by itself — the status is on the licence.","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100},"example":"888-uk-limited","description":"The operator's slug, from `/v1/operators/search` or a `/v1/check` match's `operator_slug`. Case-insensitive."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Out of range is a 400, not clamped."},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"sort","in":"query","schema":{"type":"string","enum":["date_desc","date_asc","amount_desc","type_asc"],"default":"date_desc"},"description":"`date_desc` / `date_asc` by `decision_date`; `amount_desc` by fine size (actions without an amount last); `type_asc` by `action_type`, then newest first."}],"responses":{"200":{"description":"Paginated regulatory actions for the operator.","content":{"application/json":{"schema":{"type":"object","required":["operator_slug","total","limit","offset","sort","regulatory_actions","_meta"],"properties":{"operator_slug":{"type":"string"},"total":{"type":"integer","description":"Every action linked to the operator, not just this page."},"limit":{"type":"integer"},"offset":{"type":"integer"},"sort":{"type":"string","enum":["date_desc","date_asc","amount_desc","type_asc"]},"regulatory_actions":{"type":"array","items":{"type":"object","required":["id","jurisdiction_code","action_type","outcomes","fine_amount_cents","fine_currency","decision_date","description","source_url","subject_name","first_seen_at","last_verified_at"],"properties":{"id":{"type":"string","format":"uuid"},"jurisdiction_code":{"type":"string","description":"The regulator that published the action: `UKGC`, `MGA` or `CW`."},"action_type":{"type":"string","description":"Our class for the action. Values in use: `financial_penalty`, `revocation`, `suspension`, `notice_of_cancellation` (MGA — a notice, NOT a cancellation: the authorisation stays live while the licensee responds), `settlement`, `warning`, `warning_unlicensed`, `public_statement`, `condition_variation`, `divestment`, `terminated`, `other`. Not a closed list."},"outcomes":{"type":"array","items":{"type":"string"},"description":"The publication's own outcome labels, verbatim (UKGC lists several per action). `[]` when it gives none."},"fine_amount_cents":{"type":["integer","null"],"description":"The fine in minor units of `fine_currency` (pence, cents). `null` when the action carries no amount."},"fine_currency":{"type":["string","null"],"description":"ISO 4217 code; `null` with no amount."},"decision_date":{"type":"string","format":"date"},"description":{"type":["string","null"]},"source_url":{"type":"string","format":"uri","description":"The regulator page that published the action."},"subject_name":{"type":"string","description":"The name the publication gives — which can differ from the operator's `display_name`."},"first_seen_at":{"type":"string","format":"date-time"},"last_verified_at":{"type":"string","format":"date-time"}}}},"_meta":{"type":"object","required":["note","sources_read"],"description":"What the list covers. Quote `note` when you report an empty list: it is not a clean record.","properties":{"note":{"type":"string","description":"One paragraph: which publications we read, that an action is linked to an operator only when the publication names an entity we can match, and — on an empty list — that this is not a clean record."},"sources_read":{"type":"array","description":"The enforcement publications the list is read from — the same four entries on every response, whatever the operator.","items":{"type":"object","required":["jurisdiction","name","url"],"properties":{"jurisdiction":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`limit`, `offset` or `sort` is out of range, or `slug` is longer than 100 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bad_query":{"value":{"error":"limit 1–100; offset >= 0; sort one of date_desc|date_asc|amount_desc|type_asc","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"Valid sort values: date_desc (default), date_asc, amount_desc, type_asc. limit must be 1–100 and offset non-negative."}}},"bad_slug":{"value":{"error":"slug required","code":"invalid_slug","details":{"reason":"invalid_input","field":"slug","suggestion":"Pass a URL-safe operator slug — lowercase letters, digits, hyphens only. See GET /v1/operators/search for the slug of a given operator."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No operator has that slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Operator not found","code":"not_found","details":{"reason":"operator_not_found","field":"slug","suggestion":"No operator matches this slug. Try GET /v1/operators/search?q=<name> to find the canonical slug."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/licenses/{license_id}":{"get":{"operationId":"getLicense","tags":["Licences"],"summary":"Licence detail by id","description":"One licence by its iGregulator UUID — `match.license_id` on `/v1/check`, or `id` in an operator's `licenses` — not the licence number (for a number use `GET /v1/check?license_number=`). Returns the licence, the owning operator's id, slug and name, the status's own provenance (`status_source_url`, `status_observed_at`, and `not_listed_since` / `last_listed_at` for a licence the register no longer lists), and a single-resource `_meta` with `scraped_at`, `source_url` (the status's source page when we have it, else the register) and `confidence_hint`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"example":"d9832e56-10bb-458b-82af-ac7762f7a502","description":"The licence's iGregulator UUID: `match.license_id` on `/v1/check`, or `id` in an operator's `licenses`. Not the licence number."},{"name":"as_of","in":"query","schema":{"type":"string"},"example":"2026-03-01","description":"Point-in-time lookup. Adds an `as_of` object reconstructing this licence's status within our observation window (never extrapolated before `tracking_since`). Exactly two formats: `YYYY-MM-DD`, a real calendar date (the end of that day, UTC; today's date means now), or an ISO-8601 datetime with a UTC offset (`2026-03-01T12:00:00Z`, `2026-03-01T14:00+02:00`). Anything else — `2026/03/01`, `2026-02-30`, a datetime without an offset — and any future instant is a 400 with `details.field: \"as_of\"`."}],"responses":{"200":{"description":"Licence + provenance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseDetail"}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`license_id` is not a UUID, or `as_of` is not one of the two accepted formats or lies in the future. An unknown id is answered 404 before `as_of` is read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bad_license_id":{"value":{"error":"license_id must be a UUID","code":"invalid_license_id","details":{"reason":"invalid_input","field":"license_id","suggestion":"license_id is the `id` UUID returned by /v1/operators/:slug/licenses — not the human-readable licence_number."}}},"bad_as_of":{"value":{"error":"as_of is in the future — iGregulator never answers about a date it has not observed","code":"invalid_query","details":{"reason":"invalid_input","field":"as_of","suggestion":"Pass as_of as YYYY-MM-DD (resolved to end of that day, UTC) or an ISO-8601 datetime — and not in the future."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No licence has that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"License not found","code":"not_found","details":{"reason":"license_not_found","field":"license_id","suggestion":"No licence with that UUID. Fetch the operator first via /v1/operators/:slug and use the `id` field from the returned licences array."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/licenses/{license_id}/history":{"get":{"operationId":"getLicenseHistory","tags":["Licences"],"summary":"Status-change history for a licence","description":"Every event we recorded for one licence, most recent first — the whole history in one response (not paginated). It starts when WE first recorded the licence (`change_type: created`), not when it was issued: there is nothing here from before our observation window. Each event carries the regulator page it was read from, what wrote it, and — for events since 2026-09-17 — the SHA-256 of the payload behind it. An event with `corrected_at` set was later withdrawn: it is kept for the audit trail, never deleted, and must not be quoted as something that happened. `_meta.freshness_range` spans the oldest and newest event.","security":[{"bearerAuth":[]}],"parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"example":"d9832e56-10bb-458b-82af-ac7762f7a502","description":"The licence's iGregulator UUID: `match.license_id` on `/v1/check`, or `id` in an operator's `licenses`. Not the licence number."}],"responses":{"200":{"description":"History entries, most-recent first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseHistoryResponse"}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`license_id` is not a UUID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"license_id must be a UUID","code":"invalid_license_id","details":{"reason":"invalid_input","field":"license_id","suggestion":"license_id is the `id` UUID returned by /v1/operators/:slug/licenses — not the human-readable licence_number."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No licence has that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"License not found","code":"not_found","details":{"reason":"license_not_found","field":"license_id","suggestion":"No licence with that UUID. Fetch the operator first via /v1/operators/:slug and use the `id` field from the returned licences array."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/watchlist":{"get":{"operationId":"getWatchlist","tags":["Watchlist"],"summary":"Watchlist summary — the 50 most recently added operators","description":"The caller's watched operators, most recently added first — **at most 50**; `count` is how many are watched in all, so `count > operators.length` means there are more: page through them with `GET /v1/watchlist/operators`. `limit` is the plan's cap on watchlist size (not a page size), so a UI can draw the quota bar from this one call. Each row carries `license_status` / `jurisdiction_code` of ONE of the operator's licences — see `WatchlistOperator.license_status`.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Watchlist summary.","content":{"application/json":{"schema":{"type":"object","required":["count","limit","operators"],"properties":{"count":{"type":"integer","description":"Operators on the watchlist in all — not the length of `operators`."},"limit":{"type":["integer","null"],"description":"The most operators the plan lets you watch (25 on Starter, 250 on Pro); `null` = no cap. NOT the page size — this endpoint always returns at most 50 rows."},"operators":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/WatchlistOperator"}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/watchlist/operators":{"get":{"operationId":"listWatchlistOperators","tags":["Watchlist"],"summary":"Paginated list of watched operators","description":"The same operator rows as `GET /v1/watchlist`, with `limit` / `offset` paging and a different envelope: `total` (operators watched in all), and `limit` / `offset` as applied — here `limit` IS the page size, not the plan cap. Sorted by `added_at` descending.","security":[{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"description":"Out of range is a 400, not clamped."},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Paginated watchlist.","content":{"application/json":{"schema":{"type":"object","required":["total","limit","offset","operators"],"properties":{"total":{"type":"integer","description":"Operators watched in all."},"limit":{"type":"integer","description":"The page size applied."},"offset":{"type":"integer"},"operators":{"type":"array","items":{"$ref":"#/components/schemas/WatchlistOperator"}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`limit` or `offset` is out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"limit / offset out of range","code":"invalid_query","details":{"reason":"invalid_pagination","suggestion":"limit is 1–200, offset is ≥0."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"addWatchlistOperator","tags":["Watchlist"],"summary":"Add an operator to the watchlist","description":"Adds the operator identified by `operator_slug`. Adding one that is already on the list changes nothing and answers 409 (`watchlist_duplicate`) — treat it as success. Checked in this order: the body (400), the plan cap on watchlist size (403 `watchlist_quota_exceeded` — so a full watchlist answers 403 even for an operator that is already on it or does not exist), the operator (404), the duplicate (409).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["operator_slug"],"properties":{"operator_slug":{"type":"string","pattern":"^[a-z0-9-]+$","minLength":1,"maxLength":100,"description":"The slug exactly as `/v1/operators/search` returns it — lower case; an upper-case letter is a 400 here (unlike `/v1/operators/{slug}`, which lower-cases it)."}}},"example":{"operator_slug":"888-uk-limited"}}}},"responses":{"201":{"description":"Operator added.","content":{"application/json":{"schema":{"type":"object","required":["operator","added_at"],"properties":{"operator":{"type":"object","required":["id","slug","display_name"],"properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"display_name":{"type":"string"}}},"added_at":{"type":"string","format":"date-time"}}},"example":{"operator":{"id":"fa30b85c-4749-4f91-9490-2615b76a4832","slug":"888-uk-limited","display_name":"888 UK Limited"},"added_at":"2026-10-08T01:10:00.000Z"}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"The body is not JSON, or `operator_slug` is missing or not a lower-case slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"operator_slug required","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"POST body must be `{ \"operator_slug\": \"<lowercase-slug>\" }`."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"description":"The watchlist already holds as many operators as the plan allows. `code` is `quota_exceeded` — the same code as the monthly-quota 429; tell them apart by the status or `details.reason`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Watchlist size limit reached","code":"quota_exceeded","details":{"reason":"watchlist_quota_exceeded","current_usage":25,"limit":25,"plan_tier":"starter","suggestion":"Plan \"starter\" allows 25 watched operators. Remove an existing entry. Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}}}},"404":{"description":"No operator has that slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Operator not found","code":"not_found","details":{"reason":"operator_not_found","suggestion":"Use GET /v1/operators/search?q=<name> to discover the canonical slug before adding."}}}}},"409":{"description":"The operator is already on the watchlist; nothing changed. `code` is `conflict` (`invalid_query` before 1.24.0).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Operator already on your watchlist","code":"conflict","details":{"reason":"watchlist_duplicate","suggestion":"No-op — the operator is already tracked."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/watchlist/operators/{slug}":{"delete":{"operationId":"removeWatchlistOperator","tags":["Watchlist"],"summary":"Remove an operator from the watchlist","description":"Idempotent — 204 whether or not the operator was on the list, and also for a slug no operator has. From then on events about the operator no longer reach your `watchlist_only` webhook endpoints, and the polling feed serves them only if they were queued for one of your endpoints.","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9-]+$","minLength":1,"maxLength":100},"description":"The operator slug, lower case — an upper-case letter is a 400 here (unlike `/v1/operators/{slug}`).","example":"888-uk-limited"}],"responses":{"204":{"description":"Removed (or was never on the list). No body.","headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`slug` is not a lower-case slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"slug must be a valid operator slug","code":"invalid_slug","details":{"reason":"invalid_input","field":"slug","suggestion":"Pass a URL-safe slug (lowercase, digits, hyphens)."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/watchlist/events":{"get":{"operationId":"listWatchlistEvents","tags":["Watchlist"],"summary":"Polling fallback feed for watchlist events","description":"Cursor-paginated list of webhook-shape events, oldest first (same envelope and `event_id` as the webhook, minus the per-delivery signature). Use as a fallback when an inbound webhook receiver is not feasible — corporate networks, agents without a public URL, backfill after webhook outages.\n\n**Which events** — every operator event (`license.*`, `regulatory_action.added`) about an operator currently on the caller's watchlist, whether or not the caller has a webhook endpoint; plus any event that was queued for one of the caller's endpoints (e.g. `coverage.*` for an endpoint subscribed to it). An event whose underlying licence-history row we have since withdrawn as wrong is not served.\n\n**Where to start** — `since=<ISO datetime>` for the first call (at most 30 days back), then `cursor=<next_cursor>` from the previous response. Not both (400). With neither, you get the events of the **last hour**. `next_cursor` is `null` when `has_more` is `false`: keep the last cursor you were given, or the `timestamp` of the last event you processed, for the next poll.\n\n**Rate limit** — its own counter, per account per clock hour, on top of the monthly quota: Starter 10, Pro 60, Business 600, Enterprise unlimited. 429 with `details.reason: watchlist_events_poll_limit` when exhausted. A refused request (400, 429) spends a poll.\n\nEvery response carries `X-Poll-RateLimit-Limit`, `-Remaining`, `-Reset`, `-Window` and `X-Poll-Recommended-Interval` (seconds to sleep between polls to stay under the ceiling).","security":[{"bearerAuth":[]}],"parameters":[{"name":"since","in":"query","description":"An ISO-8601 datetime WITH a UTC offset (`2026-10-01T00:00:00Z`); a bare date is a 400. Returns events created after it. More than 30 days back is a 400 (`since_exceeds_retention_window`).","schema":{"type":"string","format":"date-time"},"example":"2026-10-01T00:00:00Z"},{"name":"cursor","in":"query","description":"`next_cursor` from the previous response, verbatim. Opaque; one we cannot decode is a 400 (`invalid_cursor`).","schema":{"type":"string","maxLength":512}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"description":"Events per page. Out of range is a 400, not clamped."}],"responses":{"200":{"description":"Events page.","headers":{"X-Poll-RateLimit-Limit":{"description":"Polls per clock hour on the caller's plan, or `unlimited`.","schema":{"type":"string"}},"X-Poll-RateLimit-Remaining":{"description":"Polls left this hour, this one counted. Not sent when the limit is unlimited.","schema":{"type":"integer"}},"X-Poll-RateLimit-Reset":{"description":"When the hourly counter starts again: the top of the next UTC hour, ISO-8601.","schema":{"type":"string","format":"date-time"}},"X-Poll-RateLimit-Window":{"description":"Always `hour`. Not sent when the limit is unlimited.","schema":{"type":"string"}},"X-Poll-Recommended-Interval":{"description":"Seconds to sleep between polls to stay under the ceiling — `ceil(3600 / limit)`: 360 on Starter, 60 on Pro, 6 on Business, 1 when unlimited.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["events","next_cursor","has_more"],"properties":{"events":{"type":"array","description":"Oldest first.","items":{"$ref":"#/components/schemas/WebhookEventEnvelope"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page. `null` when `has_more` is `false`."},"has_more":{"type":"boolean"}}}}}},"400":{"description":"`since`, `cursor` or `limit` is invalid; both `since` and `cursor` were sent; the cursor cannot be decoded; or `since` is more than 30 days back.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bad_query":{"value":{"error":"invalid since / cursor / limit","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"since must be ISO-8601; cursor is opaque; limit 1–500. Pass either since OR cursor, not both."}}},"since_and_cursor":{"value":{"error":"pass since OR cursor, not both","code":"invalid_query","details":{"reason":"conflicting_parameters","suggestion":"Use since= for the first bootstrap query; switch to cursor= for continuous polling."}}},"bad_cursor":{"value":{"error":"cursor could not be decoded","code":"invalid_query","details":{"reason":"invalid_cursor","suggestion":"Use the next_cursor value from the previous response verbatim."}}},"since_too_old":{"value":{"error":"since parameter too old","code":"invalid_query","details":{"reason":"since_exceeds_retention_window","suggestion":"Events older than 30 days are pruned. Use cursor-based pagination for continuous consumption."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"description":"The hourly poll ceiling of this endpoint (`watchlist_events_poll_limit`) — or one of the key's own limits (`key_*` examples), as on every keyed endpoint.","headers":{"X-Poll-RateLimit-Limit":{"description":"Polls per clock hour on the caller's plan, or `unlimited`.","schema":{"type":"string"}},"X-Poll-RateLimit-Remaining":{"description":"Polls left this hour, this one counted. Not sent when the limit is unlimited.","schema":{"type":"integer"}},"X-Poll-RateLimit-Reset":{"description":"When the hourly counter starts again: the top of the next UTC hour, ISO-8601.","schema":{"type":"string","format":"date-time"}},"X-Poll-RateLimit-Window":{"description":"Always `hour`. Not sent when the limit is unlimited.","schema":{"type":"string"}},"X-Poll-Recommended-Interval":{"description":"Seconds to sleep between polls to stay under the ceiling — `ceil(3600 / limit)`: 360 on Starter, 60 on Pro, 6 on Business, 1 when unlimited.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"poll_limit":{"value":{"error":"Watchlist events poll rate limit exceeded","code":"rate_limited","details":{"reason":"watchlist_events_poll_limit","limit":10,"window":"hour","reset_at":"2026-10-08T02:00:00.000Z","suggestion":"Plan \"starter\" allows 10 watchlist polls per hour. Wait until reset_at, or switch to webhooks for push-based delivery — webhooks don't count against this limit."}}},"key_monthly_quota":{"value":{"error":"Monthly quota exceeded","code":"quota_exceeded","details":{"reason":"monthly_request_limit_reached","current_usage":10000,"limit":10000,"reset_at":"2026-11-01T00:00:00.000Z","plan_tier":"starter","suggestion":"Wait until the monthly reset (reset_at). Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}},"key_per_second":{"value":{"error":"Per-second rate limit reached","code":"rate_limited","details":{"reason":"per_second_limit_exceeded","current_usage":6,"limit":5,"plan_tier":"starter","suggestion":"Your plan allows 5 req/s. Back off for a second and retry. Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}}}}}},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/geo-checks":{"post":{"operationId":"requestGeoCheck","tags":["Geo-checks"],"summary":"Request a geo-check of a domain in one or more countries","description":"Queues a check of `domain` from each of `countries` (all ten when left out). One request is ONE against the monthly allowance whatever the number of countries — Business: 10 per UTC month, Enterprise: no cap. A definite result (not `unknown`) for the same domain and country from the last 7 days answers that country at once (`from_cache`, with its date); a request answered entirely so is `done` and is NOT counted against the allowance. Results arrive within about two business days: a \"reachable\" is confirmed on a screenshot first. Follow them with `GET /v1/geo-check-requests`. Who requested a check is never shown to anyone else.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"A hostname. A scheme, a path and a leading `www.` are dropped; case does not matter."},"countries":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string","enum":["GB","SE","NL","DE","ES","IT","FR","BR","CA","AU"]},"description":"ISO 3166-1 alpha-2, case-insensitive; duplicates collapse. Leave out for all. `CA` is Ontario."}}},"example":{"domain":"example-casino.com","countries":["GB","SE","NL"]}}}},"responses":{"202":{"description":"Queued — or done, when recent checks answered every country.","content":{"application/json":{"schema":{"type":"object","required":["request_id","domain","countries","status","requested_at","from_cache","expected_within","monthly_usage"],"properties":{"request_id":{"type":"string","format":"uuid"},"domain":{"type":"string"},"countries":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["queued","done"],"description":"`done` when recent checks answered every country (not counted)."},"requested_at":{"type":"string","format":"date-time"},"from_cache":{"type":"array","description":"Countries a recent definite check answered at once, with that check's date.","items":{"type":"object","required":["country","checked_at"],"properties":{"country":{"type":"string"},"checked_at":{"type":"string","format":"date-time"}}}},"expected_within":{"type":["string","null"]},"monthly_usage":{"type":["object","null"],"description":"Domains requested this UTC month and the plan allowance; null on a plan with no cap.","required":["used","limit"],"properties":{"used":{"type":"integer"},"limit":{"type":"integer"}}}}},"example":{"request_id":"0b9c2a6e-1f3d-4c1a-9f0e-7d1c2b3a4e5f","domain":"example-casino.com","countries":["GB","SE","NL"],"status":"queued","requested_at":"2026-11-03T09:12:00.000Z","from_cache":[{"country":"GB","checked_at":"2026-11-01T14:02:00.000Z"}],"expected_within":"two business days","monthly_usage":{"used":3,"limit":10}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"The body is not JSON, `domain` is not a hostname, or a country is not one we check from.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"domain and country required","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"POST body must be { \"domain\": \"example.com\", \"countries\": [...] } — countries from GB, SE, NL, DE, ES, IT, FR, BR, CA, AU; leave it out for all of them."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"The plan has no geo-checks (Business and Enterprise do).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"This endpoint is available on the Business and Enterprise plans","code":"payment_required","details":{"reason":"geo_checks_require_business","required_plan":"business","available_on":["business","enterprise"],"plan_tier":"pro","suggestion":"Geo-check endpoints come with Business (10 domains a month) and Enterprise (bulk). See https://igregulator.io/pricing or email founder@igregulator.io."}}}}},"429":{"description":"The month's geo-check allowance is used — or one of the key's own limits, as on every keyed endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"geo_quota":{"value":{"error":"Monthly geo-check allowance used","code":"quota_exceeded","details":{"reason":"geo_check_quota_exceeded","current_usage":10,"limit":10,"plan_tier":"business","suggestion":"Plan \"business\" allows 10 geo-checks per UTC month. Bulk checks are part of Enterprise — email founder@igregulator.io."}}},"key_monthly_quota":{"value":{"error":"Monthly quota exceeded","code":"quota_exceeded","details":{"reason":"monthly_request_limit_reached","current_usage":10000,"limit":10000,"reset_at":"2026-11-01T00:00:00.000Z","plan_tier":"starter","suggestion":"Wait until the monthly reset (reset_at). Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}},"key_per_second":{"value":{"error":"Per-second rate limit reached","code":"rate_limited","details":{"reason":"per_second_limit_exceeded","current_usage":6,"limit":5,"plan_tier":"starter","suggestion":"Your plan allows 5 req/s. Back off for a second and retry. Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}}}}}},"500":{"$ref":"#/components/responses/ServerError"}}},"get":{"operationId":"getGeoChecks","tags":["Geo-checks"],"summary":"The geo-checks we can show for a domain","description":"The latest check per country that can be shown: one that needed no review, or one a person has reviewed (`reviewed: true`, and `result` is what they saw). A later `unknown` does not replace an earlier definite result. A check older than 30 days is `stale: true`. Empty when no shown check exists — request one with `POST /v1/geo-checks`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string"},"description":"A hostname; a leading `www.` is dropped."}],"responses":{"200":{"description":"Shown checks, one per country.","content":{"application/json":{"schema":{"type":"object","required":["domain","checks","note"],"properties":{"domain":{"type":"string"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/GeoCheck"}},"note":{"type":"string"}}},"example":{"domain":"latamwin.com","checks":[{"country":"GB","result":"geo_blocked","reason":"in-browser check serves only CL, PE","checked_at":"2026-11-03T10:40:00.000Z","reviewed":false,"stale":false,"in_country_render":false},{"country":"CA","result":"geo_blocked","reason":"in-browser check serves only CL, PE","checked_at":"2026-11-03T10:41:00.000Z","reviewed":false,"stale":false,"in_country_render":false,"register":{"jurisdiction":"ON","name":"iGaming Ontario's list","listed":false}}],"note":"An observation of what the site served in each country on the date shown — not a licence status. \"reachable\" needs a browser in the country itself and was confirmed on its screenshot. CA is Ontario."}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`domain` is missing or not a hostname.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"domain and country required","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"POST body must be { \"domain\": \"example.com\", \"countries\": [...] } — countries from GB, SE, NL, DE, ES, IT, FR, BR, CA, AU; leave it out for all of them."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"Business and Enterprise only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"This endpoint is available on the Business and Enterprise plans","code":"payment_required","details":{"reason":"geo_checks_require_business","required_plan":"business","available_on":["business","enterprise"],"plan_tier":"pro","suggestion":"Geo-check endpoints come with Business (10 domains a month) and Enterprise (bulk). See https://igregulator.io/pricing or email founder@igregulator.io."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/geo-check-requests":{"get":{"operationId":"listGeoCheckRequests","tags":["Geo-checks"],"summary":"Your geo-check requests and where they stand","description":"Your last 50 requests, newest first, each with its countries: `queued`, `running`, `in_review` (checked; a person is confirming it on the screenshot), `done` (with `check`), or `failed`. Visible only to you.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Your requests.","content":{"application/json":{"schema":{"type":"object","required":["monthly_usage","requests"],"properties":{"monthly_usage":{"type":["object","null"],"required":["used","limit"],"properties":{"used":{"type":"integer"},"limit":{"type":"integer"}}},"requests":{"type":"array","items":{"type":"object","required":["request_id","domain","requested_at","countries"],"properties":{"request_id":{"type":"string","format":"uuid"},"domain":{"type":"string"},"requested_at":{"type":"string","format":"date-time"},"countries":{"type":"array","items":{"type":"object","required":["country","status","from_cache","check"],"properties":{"country":{"type":"string"},"from_cache":{"type":"boolean","description":"Answered by a recent check (see its `checked_at`), not a new one."},"status":{"type":"string","enum":["queued","running","in_review","done","failed"]},"check":{"oneOf":[{"$ref":"#/components/schemas/GeoCheck"},{"type":"null"}]}}}}}}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"Business and Enterprise only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"This endpoint is available on the Business and Enterprise plans","code":"payment_required","details":{"reason":"geo_checks_require_business","required_plan":"business","available_on":["business","enterprise"],"plan_tier":"pro","suggestion":"Geo-check endpoints come with Business (10 domains a month) and Enterprise (bulk). See https://igregulator.io/pricing or email founder@igregulator.io."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/webhooks":{"get":{"operationId":"listWebhooks","tags":["Webhooks"],"summary":"List the caller's webhook endpoints","description":"Every endpoint the account owns — active ones first, then newest first; not paginated. Signing secrets are NOT returned: they are shown once, at creation and on rotation.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Endpoint list.","content":{"application/json":{"schema":{"type":"object","required":["endpoints"],"properties":{"endpoints":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createWebhook","tags":["Webhooks"],"summary":"Create a webhook endpoint, reveal secret once","description":"The URL is checked synchronously against the SSRF policy (private and loopback addresses, link-local, cloud-metadata hostnames, IPv6 equivalents) — a refused URL is a 400 whose `details.reason` says why: `invalid_url`, `invalid_scheme`, `empty_host`, `blocked_hostname`, `unresolvable_host`, `private_ip_blocked`.\n\nReturns the raw signing secret ONCE in the `secret` field. `GET /v1/webhooks` never includes it. Lost the secret? Rotate.\n\nThe plan's cap on **active** endpoints (1 on Starter, 5 on Pro, 20 on Business) is checked after the URL: 403 `webhook_quota_exceeded` when it is reached. Paused endpoints do not count.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"},"example":{"url":"https://example.com/hooks/igregulator","events":["license.status_changed","license.expired"],"watchlist_only":true}}}},"responses":{"201":{"description":"Endpoint created. Note the `secret` field — visible only here. The delivery fields (`last_delivered_at`, `last_delivery_status`, `failure_count`) are not in this response.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","required":["secret"],"properties":{"secret":{"type":"string","description":"Raw HMAC-SHA256 signing secret, prefix `whsec_`. Returned ONCE."}}}]}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"The body is not JSON or misses `url` / `events`; an event type we do not know; or a URL the SSRF policy refuses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"bad_body":{"value":{"error":"invalid webhook body","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"Provide { url, events: [...], watchlist_only? }. url must be an http(s) URL; events must contain known types from WEBHOOK_EVENT_TYPES."}}},"unknown_event_type":{"value":{"error":"unknown event type(s)","code":"invalid_query","details":{"reason":"invalid_event_type","field":"events","suggestion":"Unknown: license.changed. Valid types: license.status_changed, license.expiring_30d, license.expiring_60d, license.expiring_90d, license.expired, license.issued, domain.listed, domain.delisted, regulatory_action.added, coverage.degraded, coverage.restored, webhook.endpoint_degraded."}}},"unknown_jurisdiction":{"value":{"error":"unknown jurisdiction code(s)","code":"invalid_query","details":{"reason":"invalid_jurisdiction","field":"jurisdictions","suggestion":"Unknown: XX. Covered: AN, BE, CO, CW, DE, ES, IOM, KH, MGA, ON, SE, TGC, UA, UKGC. Omit the field or pass [] for all."}}},"url_refused":{"value":{"error":"webhook URL rejected by SSRF policy","code":"invalid_query","details":{"reason":"private_ip_blocked","field":"url","suggestion":"Webhook URLs must resolve to a publicly routable host. For local development use a tunnel (ngrok, cloudflared) or a service like webhook.site."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"description":"The account already has as many active endpoints as the plan allows. `code` is `quota_exceeded` — the same code as the monthly-quota 429; tell them apart by the status or `details.reason`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Webhook endpoint limit reached","code":"quota_exceeded","details":{"reason":"webhook_quota_exceeded","current_usage":1,"limit":1,"plan_tier":"starter","suggestion":"Plan \"starter\" allows 1 active endpoints. Pause or delete an existing endpoint. Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/webhooks/{id}":{"patch":{"operationId":"updateWebhook","tags":["Webhooks"],"summary":"Update an endpoint","description":"Partial update — send only the fields to change, at least one; an unknown field is a 400. A new `url` goes through the SSRF check again. `description: null` clears the description; leaving the field out keeps it. `active: false` pauses the endpoint, `true` resumes it — and resuming counts against the plan cap on active endpoints like creating one: 403 `webhook_quota_exceeded` when another endpoint already fills it. The signing secret is not changed here — see `rotate_secret`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The endpoint id, from `POST /v1/webhooks` or `GET /v1/webhooks`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPatch"},"example":{"active":false}}}},"responses":{"200":{"description":"The endpoint after the update.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`id` is not a UUID; the body is not JSON, has an unknown field or no field at all; an unknown event type; or a URL the SSRF policy refuses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"invalid_id":{"value":{"error":"id must be UUID","code":"invalid_query","details":{"reason":"invalid_input","field":"id","suggestion":"Use the id returned from POST /v1/webhooks."}}},"bad_body":{"value":{"error":"invalid patch body","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"Only url, description, events, active, watchlist_only, jurisdictions may be patched."}}},"nothing_to_update":{"value":{"error":"no fields to update","code":"invalid_query","details":{"reason":"invalid_input","suggestion":"Pass at least one of url / description / events / active / watchlist_only / jurisdictions."}}},"unknown_event_type":{"value":{"error":"unknown event type(s)","code":"invalid_query","details":{"reason":"invalid_event_type","field":"events","suggestion":"Unknown: license.changed. Valid types: license.status_changed, license.expiring_30d, license.expiring_60d, license.expiring_90d, license.expired, license.issued, domain.listed, domain.delisted, regulatory_action.added, coverage.degraded, coverage.restored, webhook.endpoint_degraded."}}},"unknown_jurisdiction":{"value":{"error":"unknown jurisdiction code(s)","code":"invalid_query","details":{"reason":"invalid_jurisdiction","field":"jurisdictions","suggestion":"Unknown: XX. Covered: AN, BE, CO, CW, DE, ES, IOM, KH, MGA, ON, SE, TGC, UA, UKGC. Omit the field or pass [] for all."}}},"url_refused":{"value":{"error":"webhook URL rejected by SSRF policy","code":"invalid_query","details":{"reason":"private_ip_blocked","field":"url","suggestion":"Webhook URLs must resolve to a publicly routable host. For local development use a tunnel (ngrok, cloudflared) or a service like webhook.site."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"description":"`active: true` on a paused endpoint while the plan's cap on active endpoints is already filled by others. Pause or delete one first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Webhook endpoint limit reached","code":"quota_exceeded","details":{"reason":"webhook_quota_exceeded","current_usage":1,"limit":1,"plan_tier":"starter","suggestion":"Plan \"starter\" allows 1 active endpoints. Pause or delete an existing endpoint. Higher limits: Pro and Business, by card or by invoice (three months or more) — https://app.igregulator.io/billing, or email founder@igregulator.io."}}}}},"404":{"description":"No endpoint with that id on this account — unknown, or owned by another user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"webhook not found","code":"not_found","details":{"reason":"webhook_not_found","suggestion":"The id is either invalid or owned by another user."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"operationId":"deleteWebhook","tags":["Webhooks"],"summary":"Delete an endpoint","description":"Deletes the endpoint together with its signing secrets and its delivery log; deliveries still queued for it are dropped, not sent. Cannot be undone — to stop deliveries and keep the log, `PATCH` it to `active: false` instead. 204 on success, 404 if the id is unknown or owned by another account.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The endpoint id, from `POST /v1/webhooks` or `GET /v1/webhooks`."}],"responses":{"204":{"description":"Deleted. No body.","headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`id` is not a UUID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"id must be UUID","code":"invalid_query","details":{"reason":"invalid_input","field":"id","suggestion":"Use the id returned from POST /v1/webhooks."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No endpoint with that id on this account — unknown, or owned by another user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"webhook not found","code":"not_found","details":{"reason":"webhook_not_found","suggestion":"The id is either invalid or owned by another user."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/webhooks/{id}/rotate_secret":{"post":{"operationId":"rotateWebhookSecret","tags":["Webhooks"],"summary":"Issue a new signing secret with 7-day overlap","description":"Issues a new HMAC secret and sets the current one to expire 7 days from now. During the overlap every delivery is signed with **both** — the signature header carries several `v1=` values; accept the delivery if any of them verifies. No request body.\n\nSwitch your receiver to the new secret before the old one expires, or it will reject our deliveries from day 7 on. `webhook.endpoint_degraded` is not sent today, so watch `GET /v1/webhooks/{id}/deliveries?status=abandoned` to catch that.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The endpoint id, from `POST /v1/webhooks` or `GET /v1/webhooks`."}],"responses":{"200":{"description":"New secret issued.","content":{"application/json":{"schema":{"type":"object","required":["new_secret","previous_expires_at"],"properties":{"new_secret":{"type":"string","description":"Raw new secret, returned once. `whsec_` prefix."},"previous_expires_at":{"type":["string","null"],"format":"date-time","description":"When the secret that was current until now stops being used (7 days from this call). `null` only if the endpoint had no current secret."}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`id` is not a UUID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"id must be UUID","code":"invalid_query","details":{"reason":"invalid_input","field":"id","suggestion":"Use the id returned from POST /v1/webhooks."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No endpoint with that id on this account — unknown, or owned by another user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"webhook not found","code":"not_found","details":{"reason":"webhook_not_found","suggestion":"The id is either invalid or owned by another user."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/webhooks/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","tags":["Webhooks"],"summary":"List recent deliveries","description":"The latest deliveries on this endpoint, newest first — up to `limit`, with no cursor or offset. Filter with `status`. Delivered and abandoned deliveries are kept for 30 days, then pruned. An id that is not an endpoint of this account answers 404, like the sibling routes; an endpoint of yours with no deliveries answers 200 with an empty list.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The endpoint id, from `POST /v1/webhooks` or `GET /v1/webhooks`."},{"name":"status","in":"query","schema":{"type":"string","enum":["all","pending","delivered","failed","abandoned"],"default":"all"},"description":"Anything else is a 400. `failed` is accepted and matches nothing today — see `WebhookDelivery.status`."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100},"description":"Unlike the other endpoints, an out-of-range value is not a 400: above 200 is read as 200, a negative number as 1, and `0` or a non-number as the default, 100."}],"responses":{"200":{"description":"Delivery list.","content":{"application/json":{"schema":{"type":"object","required":["deliveries"],"properties":{"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}}}}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`id` is not a UUID, or `status` is not one of the listed values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"invalid_id":{"value":{"error":"id must be UUID","code":"invalid_query","details":{"reason":"invalid_input","field":"id","suggestion":"Use the id returned from POST /v1/webhooks."}}},"bad_status":{"value":{"error":"invalid status filter","code":"invalid_query","details":{"reason":"invalid_input","field":"status","suggestion":"Pass status=all|pending|delivered|failed|abandoned (default all)."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No endpoint with that id on this account — unknown, or owned by another user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"webhook not found","code":"not_found","details":{"reason":"webhook_not_found","suggestion":"The id is either invalid or owned by another user."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/webhooks/{id}/test":{"post":{"operationId":"testWebhook","tags":["Webhooks"],"summary":"Send a synthetic test.ping event","description":"Sends one `test.ping` envelope (`livemode: false`) to the endpoint URL, signed with its current secrets, and waits for the answer. Nothing is stored — it does not appear in the delivery list and is not retried. The call itself answers 200 whether or not your receiver accepted the ping: read `delivered`. No request body. Works on a paused endpoint too.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The endpoint id, from `POST /v1/webhooks` or `GET /v1/webhooks`."}],"responses":{"200":{"description":"The ping was attempted. `delivered` says whether the receiver answered 2xx.","content":{"application/json":{"schema":{"type":"object","required":["delivered","http_status","response_body","latency_ms","error"],"properties":{"delivered":{"type":"boolean","description":"`true` only when the receiver answered 2xx."},"http_status":{"type":["integer","null"],"description":"The receiver's status; `null` when no response came back."},"response_body":{"type":["string","null"],"description":"The receiver's body, cut at 1,024 bytes."},"latency_ms":{"type":"integer"},"error":{"type":["string","null"],"description":"Why the attempt failed without a usable response — no answer within 10 seconds, a refused connection, a redirect (not followed), a URL the SSRF check now refuses; `null` otherwise."}}},"example":{"delivered":true,"http_status":200,"response_body":"ok","latency_ms":142,"error":null}}},"headers":{"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}}},"400":{"description":"`id` is not a UUID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"id must be UUID","code":"invalid_query","details":{"reason":"invalid_input","field":"id","suggestion":"Use the id returned from POST /v1/webhooks."}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"No endpoint with that id on this account — unknown, or owned by another user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"webhook not found","code":"not_found","details":{"reason":"webhook_not_found","suggestion":"The id is either invalid or owned by another user."}}}}},"409":{"description":"The endpoint has no signing secret that is still valid, so the ping cannot be signed. `code` is `conflict` (`invalid_query` before 1.24.0).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"no active signing secret","code":"conflict","details":{"reason":"no_active_secret","suggestion":"Rotate the secret via POST /v1/webhooks/:id/rotate_secret."}}}}},"429":{"$ref":"#/components/responses/KeyRateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/v1/export/{dataset}":{"get":{"operationId":"exportDataset","tags":["Export"],"summary":"Export a dataset as CSV or NDJSON (Pro and above)","description":"The whole dataset — or a jurisdiction / status slice of it — as one file: every licence, every operator, or every domain ↔ operator link we hold. The same records the other endpoints serve; each row carries its own provenance (`status_source_url`, `status_observed_at`, `last_listed_at`), and for KH, TGC, IOM, ON, SE, ES, BE, DE and UA `license_number_kind: igregulator_reference` says the licence number is our key, not the regulator’s.\n\n**Plans.** Pro and above. Starter keys (a `trial` account is served as Starter) get `402 payment_required` with `details.reason: \"export_requires_pro\"` (Pro is paid by card, or by invoice for three months or more — https://app.igregulator.io/billing). 10 exports per UTC day on Pro, 100 on Business, unlimited on Enterprise — API and dashboard counted together; over it → `429 rate_limited`, `details.reason: \"export_daily_limit_reached\"`. An export counts as **one** request against the monthly quota, whatever its size. A refused request (4xx) counts against neither.\n\n**Formats.** `csv` (default): RFC 4180, UTF-8 without BOM, CRLF line ends, a header row, arrays `|`-joined, objects as JSON text, null as an empty cell; a text starting with `=` `+` `-` `@` gets a leading `'` so spreadsheets don't run it as a formula. `json`: NDJSON — line 1 is `{\"_meta\": ExportMeta}`, then one row object per line, keys in column order, values untouched.\n\n**Current state only.** `as_of` is not supported (400 `as_of_not_supported`); for a past status use `?as_of=` on `/v1/licenses/{license_id}`, `/v1/operators/{slug}` or `/v1/check`. Rows are read in one statement, so the row count and the rows are the same snapshot; compare the lines you received with `X-Export-Row-Count` to detect a cut-off download.\n\n**Order of checks.** The key (401, 402 `plan_inactive`, the key's own 429s), then the dataset (404), then the query (400 — any parameter other than `format`, `jurisdiction`, `status` is refused, not ignored), then the plan (402 `export_requires_pro`), then the daily allowance (429). So a Starter key with a mistyped parameter sees the 400 first.\n\n**`HEAD`.** The same checks in the same order and the same status, with no body, without running the export and without using one of the day's exports: `X-Export-Daily-*` report the allowance as it stands, and a `200` carries `Content-Type`, `Content-Disposition`, `Cache-Control` and `X-Export-Dataset` but not `X-Export-Row-Count` or `X-Dataset-Generated-At` (nothing was read). Like any answered request it counts as one against the monthly quota.\n\nRow schemas: `LicenceExportRow`, `OperatorExportRow`, `DomainExportRow`. Guide: https://igregulator.io/docs/export/. There is no MCP tool for exports.","security":[{"bearerAuth":[]}],"parameters":[{"name":"dataset","in":"path","required":true,"schema":{"type":"string","enum":["licences","operators","domains"]},"description":"`licences` (one row per licence), `operators` (one per legal entity), `domains` (one per domain ↔ operator link). Case-insensitive; `licenses` is accepted for `licences`. Anything else is a 404 (`dataset_not_found`)."},{"name":"format","in":"query","schema":{"type":"string","enum":["csv","json"],"default":"csv"},"description":"`csv` or `json` (NDJSON; `ndjson` is accepted too). Case-insensitive; anything else is a 400."},{"name":"jurisdiction","in":"query","schema":{"type":"string"},"example":"UKGC,MGA","description":"Comma-separated jurisdiction codes (case-insensitive; repeat the parameter or use commas). `licences`: the licence's jurisdiction. `operators`: holds a licence there. `domains`: the jurisdiction of the licence the link's status comes from. An unknown code is a 400."},{"name":"status","in":"query","schema":{"type":"string"},"example":"active","description":"Comma-separated licence statuses (`active`, `suspended`, `revoked`, `expired`, `pending`, `unknown`, `surrendered`, `not_in_register`; case-insensitive; repeat the parameter or use commas). `licences`: the licence's status. `operators`: holds a licence with that status — in the `jurisdiction` given, when both are. `domains`: the status of the licence the link answers to. An unknown status is a 400."}],"responses":{"200":{"description":"The file, streamed. `Content-Disposition: attachment; filename=\"igregulator-<dataset>-<YYYY-MM-DD>.<csv|ndjson>\"`.","headers":{"Content-Disposition":{"schema":{"type":"string"}},"Cache-Control":{"description":"Always `no-store`.","schema":{"type":"string"}},"X-Dataset-Generated-At":{"description":"When the rows were read (ISO-8601 UTC).","schema":{"type":"string","format":"date-time"}},"X-Export-Row-Count":{"description":"Rows in the file (the CSV header / NDJSON _meta line not counted).","schema":{"type":"integer"}},"X-Export-Dataset":{"description":"The dataset served: `licences`, `operators` or `domains`.","schema":{"type":"string"}},"X-Export-Daily-Limit":{"description":"Exports per UTC day on your plan (API + dashboard together), or `unlimited`.","schema":{"type":"string"}},"X-Export-Daily-Used":{"description":"Exports made today, this one included. Omitted when unlimited.","schema":{"type":"integer"}},"X-Export-Daily-Remaining":{"description":"Exports left today. Omitted when unlimited.","schema":{"type":"integer"}},"X-Export-Daily-Reset":{"description":"Next 00:00 UTC, when the daily counter starts again.","schema":{"type":"string","format":"date-time"}},"X-RateLimit-Limit":{"description":"Your plan's **monthly** request quota (not the per-second limit). Not sent on a plan with no monthly quota (Business, Enterprise).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"What is left of the monthly quota, this request counted. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix epoch seconds of the start of the next UTC month. Not sent on a plan with no monthly quota.","schema":{"type":"integer"}},"X-RateLimit-Policy":{"description":"`tier=unlimited` on a plan with no monthly quota; otherwise not sent.","schema":{"type":"string"}},"X-Upgrade-URL":{"description":"Always `https://igregulator.io/pricing`.","schema":{"type":"string","format":"uri"}},"X-Monthly-Quota-Limit":{"description":"The monthly request quota of your plan, or `unlimited`.","schema":{"type":"string"}},"X-Monthly-Quota-Used":{"description":"Requests counted this UTC month, this one included (a request that ends in 4xx / 5xx is not counted). Not sent when the limit is `unlimited`.","schema":{"type":"integer"}},"X-Monthly-Quota-Remaining":{"description":"What is left of the monthly quota. Not sent when unlimited.","schema":{"type":"integer"}},"X-Monthly-Quota-Reset":{"description":"When the monthly counter starts again: the first of next month, 00:00 UTC, ISO-8601. Not sent when unlimited.","schema":{"type":"string","format":"date-time"}},"X-Monthly-Quota-Warning":{"description":"`80% of monthly limit used` — sent from 80% of the quota on, absent before.","schema":{"type":"string"}}},"content":{"text/csv":{"schema":{"type":"string"},"example":"license_id,license_number,license_number_kind,jurisdiction_code,…\r\n4db0141c-…,039028-R-319297-014,regulator,UKGC,…\r\n"},"application/x-ndjson":{"schema":{"description":"NDJSON: one JSON object per line. Line 1 is `{\"_meta\": ExportMeta}`; every further line is one row of the dataset asked for — pick the row shape below. The CSV has the same columns, in the same order, as its header row.","oneOf":[{"$ref":"#/components/schemas/LicenceExportRow"},{"$ref":"#/components/schemas/OperatorExportRow"},{"$ref":"#/components/schemas/DomainExportRow"},{"type":"object","title":"line 1 (_meta)","required":["_meta"],"properties":{"_meta":{"$ref":"#/components/schemas/ExportMeta"}}}]}}}},"400":{"description":"`as_of` was sent (`as_of_not_supported`); a parameter other than `format`, `jurisdiction`, `status`; a `format` that is not `csv` / `json`; an unknown status or jurisdiction code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"examples":{"as_of_not_supported":{"value":{"error":"as_of is not supported on exports","code":"invalid_query","details":{"reason":"as_of_not_supported","field":"as_of","suggestion":"An export is the current state only. For a status on a past date, pass ?as_of= to /v1/licenses/{id}, /v1/operators/{slug} or /v1/check."}}},"bad_format":{"value":{"error":"format must be csv or json","code":"invalid_query","details":{"reason":"invalid_input","field":"format","suggestion":"?format=csv (default) or ?format=json — json is NDJSON, one object per line."}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"Export is a Pro feature: Starter keys see the endpoint and get this, never a row. (A canceled or plan-less account gets `plan_inactive` instead.)","headers":{"X-Upgrade-URL":{"schema":{"type":"string","format":"uri"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"CSV/JSON export is a Pro feature","code":"payment_required","details":{"reason":"export_requires_pro","plan_tier":"starter","required_plan":"pro","suggestion":"CSV/JSON export is part of Pro. Pro is paid by card, or by invoice for three months or more — https://app.igregulator.io/billing."}}}}},"404":{"description":"`dataset` is not `licences`, `operators` or `domains`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Unknown export dataset","code":"not_found","details":{"reason":"dataset_not_found","field":"dataset","suggestion":"Datasets: licences, operators, domains — e.g. GET /v1/export/licences?format=csv. See https://igregulator.io/docs/export/."}}}}},"429":{"description":"Today's exports are used up (`export_daily_limit_reached`, with `Retry-After` = seconds to 00:00 UTC) — or one of the key's own limits, as on every keyed endpoint (`monthly_request_limit_reached`, `per_second_limit_exceeded`; those do not carry the `X-Export-*` headers).","headers":{"Retry-After":{"schema":{"type":"integer"}},"X-Export-Daily-Limit":{"description":"Exports per UTC day on your plan (API + dashboard together), or `unlimited`.","schema":{"type":"string"}},"X-Export-Daily-Used":{"description":"Exports made today, this one included. Omitted when unlimited.","schema":{"type":"integer"}},"X-Export-Daily-Remaining":{"description":"Exports left today. Omitted when unlimited.","schema":{"type":"integer"}},"X-Export-Daily-Reset":{"description":"Next 00:00 UTC, when the daily counter starts again.","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"},"example":{"error":"Daily export limit reached","code":"rate_limited","details":{"reason":"export_daily_limit_reached","current_usage":10,"limit":10,"reset_at":"2026-10-01T00:00:00.000Z","plan_tier":"pro","suggestion":"Your plan includes 10 exports per UTC day, API and dashboard together; the counter resets at reset_at (00:00 UTC). Need more? Email founder@igregulator.io."}}}}},"500":{"$ref":"#/components/responses/ServerError"}}}}}}