{
  "openapi": "3.1.0",
  "info": {
    "title": "PlaceGrid API",
    "version": "1",
    "summary": "Google Maps search, place cards, reviews and photos as JSON, whole-region scans, the enrichment of their places, and an MCP server for AI agents.",
    "description": "Google Maps search, place cards, reviews and photos as JSON; whole-region scans and the enrichment of their places (contacts from the websites, a website check, full cards, reviews, photos); and an MCP server that gives all of it to AI agents (`POST /v1/mcp`).\n\nKeys (pg_ + 40 lowercase base32 characters) are created in the API tab of the PlaceGrid app. Send yours as `Authorization: Bearer pg_YOUR_API_KEY` (or the `X-API-Key` header, or the `api_key` or `token` query parameter, which end up in logs: prefer the header).\n\nEach successful Maps call costs credits from your PlaceGrid account (one credit is €0.001); errors are never charged. Region, scan, enrichment and account calls are free; a full scan pays for the places it finds, and an enrichment for its results, under their `cost_limit`. Scans report the end of their runs to a `webhook_url` (see `webhooks`).\n\n| Endpoint | One call returns | Credits per call | Per 1,000 calls |\n|---|---|---|---|\n| `GET /v1/maps/search` | one page of up to 20 places | 1 | €1.00 |\n| `GET /v1/maps/place` | one full place card | 1 | €1.00 |\n| `GET /v1/maps/place` with `cache=false` | one full place card read live (`cache=false`) | 2 | €2.00 |\n| `GET /v1/maps/reviews` | one page of up to 20 reviews | 3 | €3.00 |\n| `GET /v1/maps/photos` | one page of photos | 2 | €2.00 |\n| `/v1/maps/reviews`, `/v1/maps/photos`, an empty first page | a first page of reviews or photos with nothing on it | 1 | €1.00 |\n\nEnrichment, at its default prices (`GET /v1/account` says the prices now). Contacts are charged only where an email or a social profile is found.\n\n| Enrichment | Level | Per | Credits | Per 1,000 |\n|---|---|---|---|---|\n| `contacts` | `standard` | place | 0.75 | €0.75 |\n| `contacts` | `js` | place | 4.25 | €4.25 |\n| `contacts` | `ai` | place | 17.5 | €17.50 |\n| `contacts` | `ai_social` | place | 20 | €20.00 |\n| `website` |  | place | 2.25 | €2.25 |\n| `details` |  | place | 1 | €1.00 |\n| `reviews` |  | review | 0.2 | €0.20 |\n| `photos` |  | photo | 0.25 | €0.25 |\n\nThe reference: https://dev.enrichment.brontir.com/docs/api",
    "contact": {
      "name": "PlaceGrid support",
      "url": "https://dev.enrichment.brontir.com/contact"
    }
  },
  "externalDocs": {
    "description": "API reference",
    "url": "https://dev.enrichment.brontir.com/docs/api"
  },
  "servers": [
    {
      "url": "https://dev.enrichment.brontir.com",
      "description": "The API"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "apiKeyHeader": []
    },
    {
      "apiKeyQuery": []
    },
    {
      "tokenQuery": []
    }
  ],
  "tags": [
    {
      "name": "Maps",
      "description": "Google Maps search, place cards, reviews and photos."
    },
    {
      "name": "Regions",
      "description": "The regions a scan takes: countries, regions, districts, cities."
    },
    {
      "name": "Scans",
      "description": "Every place of some types inside whole regions: a free preview, the full scan, its places, their enrichment."
    },
    {
      "name": "Account",
      "description": "The balance, prices and limits of the key in use."
    },
    {
      "name": "MCP",
      "description": "The MCP server for AI agents."
    },
    {
      "name": "Meta",
      "description": "About the API itself."
    }
  ],
  "paths": {
    "/v1/maps/search": {
      "get": {
        "operationId": "mapsSearch",
        "tags": [
          "Maps"
        ],
        "summary": "Search places",
        "description": "Places for a query on Google Maps, a page at a time: up to 20 places, plus a sponsored one (`sponsored: true`) when Google Maps shows an ad. Give the map window as `ll`, or as `lat` and `lng` with exactly one of `z`, `m` or `radius`; a Google Maps search `url` brings its own query and window, and with `ll` the window is taken from `ll`. The number of places on a page does not tell whether another follows: ask for the next `start` while a page brings places. A search that finds nothing answers 200 with an empty `local_results` and is charged like any search.\n\nCosts 1 credit per successful call (one page of up to 20 places).",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-maps-search"
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "What to search for: a category (`pizza`), a category with a place (`pizza new york`) or a business name. Required unless `url` is given.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "ll",
            "in": "query",
            "required": false,
            "description": "Map window: `@lat,lng,15z` (zoom 1–21) or `@lat,lng,3000m` (window height in metres).",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "description": "Instead of `ll`: centre latitude, with exactly one of `z`, `m` or `radius`.",
            "schema": {
              "type": "number",
              "minimum": -85,
              "maximum": 85
            }
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "description": "Instead of `ll`: centre longitude. Also accepted as `lon`.",
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            },
            "x-aliases": [
              "lon"
            ]
          },
          {
            "name": "z",
            "in": "query",
            "required": false,
            "description": "Zoom, with `lat` and `lng`.",
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 21
            }
          },
          {
            "name": "m",
            "in": "query",
            "required": false,
            "description": "Window height in metres, with `lat` and `lng`.",
            "schema": {
              "type": "number",
              "minimum": 1
            }
          },
          {
            "name": "radius",
            "in": "query",
            "required": false,
            "description": "Radius in metres the window covers whole, with `lat` and `lng`.",
            "schema": {
              "type": "number",
              "minimum": 1
            }
          },
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "A Google Maps search link; `q` and `ll` are read from it when not given.",
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "description": "Offset: `0`, `20`, `40`… up to 500.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 500,
              "multipleOf": 20,
              "default": 0
            }
          },
          {
            "name": "hl",
            "in": "query",
            "required": false,
            "description": "Language of the answer, such as `en` or `pt-BR`.",
            "schema": {
              "type": "string",
              "maxLength": 12,
              "default": "en"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "required": false,
            "description": "Two-letter country code the search is made from.",
            "schema": {
              "type": "string",
              "maxLength": 2,
              "default": "us"
            }
          },
          {
            "name": "google_domain",
            "in": "query",
            "required": false,
            "description": "Accepted for compatibility and echoed back; it does not change the answer.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer. Charged at the call's price.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `missing_parameter`, `invalid_parameter`, `conflicting_parameters`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  },
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "conflicting_parameters": {
                    "$ref": "#/components/examples/error_conflicting_parameters"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_parameter",
              "invalid_parameter",
              "conflicting_parameters"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "402": {
            "description": "Not enough credits or a limit reached: `insufficient_credits`, `account_in_debt`, `spend_limit_reached`, `organization_credits_not_allowed`, `organization_member_limit_reached`, `organization_balance_exhausted`, `organization_in_debt`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "$ref": "#/components/examples/error_insufficient_credits"
                  },
                  "account_in_debt": {
                    "$ref": "#/components/examples/error_account_in_debt"
                  },
                  "spend_limit_reached": {
                    "$ref": "#/components/examples/error_spend_limit_reached"
                  },
                  "organization_credits_not_allowed": {
                    "$ref": "#/components/examples/error_organization_credits_not_allowed"
                  },
                  "organization_member_limit_reached": {
                    "$ref": "#/components/examples/error_organization_member_limit_reached"
                  },
                  "organization_balance_exhausted": {
                    "$ref": "#/components/examples/error_organization_balance_exhausted"
                  },
                  "organization_in_debt": {
                    "$ref": "#/components/examples/error_organization_in_debt"
                  }
                }
              }
            },
            "x-error-codes": [
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          },
          "502": {
            "description": "The data could not be read: `source_unavailable`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "source_unavailable": {
                    "$ref": "#/components/examples/error_source_unavailable"
                  }
                }
              }
            },
            "x-error-codes": [
              "source_unavailable"
            ]
          },
          "503": {
            "description": "Busy or unavailable for a moment: `capacity_busy`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "capacity_busy": {
                    "$ref": "#/components/examples/error_capacity_busy"
                  }
                }
              }
            },
            "x-error-codes": [
              "capacity_busy"
            ]
          },
          "504": {
            "description": "The answer took too long: `timeout`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "timeout": {
                    "$ref": "#/components/examples/error_timeout"
                  }
                }
              }
            },
            "x-error-codes": [
              "timeout"
            ]
          }
        },
        "x-billable-unit": "api.maps.search",
        "x-credits-per-call": 1
      }
    },
    "/v1/maps/place": {
      "get": {
        "operationId": "mapsPlace",
        "tags": [
          "Maps"
        ],
        "summary": "A full place card",
        "description": "The full card of one place, named by exactly one of `place_id`, `data_id`, `data_cid`, `url` or `q`. A name is answered only when exactly one place matches.\n\nCosts 1 credit per successful call (one full place card). With `cache=false` (read live now) a call costs 2 credits.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-maps-place"
        },
        "parameters": [
          {
            "name": "place_id",
            "in": "query",
            "required": false,
            "description": "Place ID (`ChIJ…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 256
            },
            "x-one-of": "place"
          },
          {
            "name": "data_id",
            "in": "query",
            "required": false,
            "description": "Data ID (`0x…:0x…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "x-one-of": "place"
          },
          {
            "name": "data_cid",
            "in": "query",
            "required": false,
            "description": "CID: the decimal place number. Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 32
            },
            "x-one-of": "place"
          },
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "A Google Maps link to the place, full or short (`maps.app.goo.gl/…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 2048
            },
            "x-one-of": "place"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "The place's name with its address or city. Answered only when exactly one place matches. Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "x-one-of": "place"
          },
          {
            "name": "cache",
            "in": "query",
            "required": false,
            "description": "`true`: a recent copy of the place may answer (faster). `false`: read it live now.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "hl",
            "in": "query",
            "required": false,
            "description": "Language of the answer, such as `en` or `pt-BR`.",
            "schema": {
              "type": "string",
              "maxLength": 12,
              "default": "en"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "required": false,
            "description": "Two-letter country code the search is made from.",
            "schema": {
              "type": "string",
              "maxLength": 2,
              "default": "us"
            }
          },
          {
            "name": "google_domain",
            "in": "query",
            "required": false,
            "description": "Accepted for compatibility and echoed back; it does not change the answer.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer. Charged at the call's price.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `missing_parameter`, `invalid_parameter`, `conflicting_parameters`, `link_not_a_place`, `short_link_dead`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  },
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "conflicting_parameters": {
                    "$ref": "#/components/examples/error_conflicting_parameters"
                  },
                  "link_not_a_place": {
                    "$ref": "#/components/examples/error_link_not_a_place"
                  },
                  "short_link_dead": {
                    "$ref": "#/components/examples/error_short_link_dead"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_parameter",
              "invalid_parameter",
              "conflicting_parameters",
              "link_not_a_place",
              "short_link_dead"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "402": {
            "description": "Not enough credits or a limit reached: `insufficient_credits`, `account_in_debt`, `spend_limit_reached`, `organization_credits_not_allowed`, `organization_member_limit_reached`, `organization_balance_exhausted`, `organization_in_debt`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "$ref": "#/components/examples/error_insufficient_credits"
                  },
                  "account_in_debt": {
                    "$ref": "#/components/examples/error_account_in_debt"
                  },
                  "spend_limit_reached": {
                    "$ref": "#/components/examples/error_spend_limit_reached"
                  },
                  "organization_credits_not_allowed": {
                    "$ref": "#/components/examples/error_organization_credits_not_allowed"
                  },
                  "organization_member_limit_reached": {
                    "$ref": "#/components/examples/error_organization_member_limit_reached"
                  },
                  "organization_balance_exhausted": {
                    "$ref": "#/components/examples/error_organization_balance_exhausted"
                  },
                  "organization_in_debt": {
                    "$ref": "#/components/examples/error_organization_in_debt"
                  }
                }
              }
            },
            "x-error-codes": [
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `place_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "place_not_found": {
                    "$ref": "#/components/examples/error_place_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "place_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          },
          "502": {
            "description": "The data could not be read: `source_unavailable`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "source_unavailable": {
                    "$ref": "#/components/examples/error_source_unavailable"
                  }
                }
              }
            },
            "x-error-codes": [
              "source_unavailable"
            ]
          },
          "503": {
            "description": "Busy or unavailable for a moment: `capacity_busy`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "capacity_busy": {
                    "$ref": "#/components/examples/error_capacity_busy"
                  }
                }
              }
            },
            "x-error-codes": [
              "capacity_busy"
            ]
          },
          "504": {
            "description": "The answer took too long: `timeout`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "timeout": {
                    "$ref": "#/components/examples/error_timeout"
                  }
                }
              }
            },
            "x-error-codes": [
              "timeout"
            ]
          }
        },
        "x-billable-unit": "api.maps.place",
        "x-credits-per-call": 1,
        "x-credits-per-live-call": 2,
        "x-billable-unit-live": "api.maps.place.live",
        "x-one-of-groups": {
          "place": [
            "place_id",
            "data_id",
            "data_cid",
            "url",
            "q"
          ]
        }
      }
    },
    "/v1/maps/reviews": {
      "get": {
        "operationId": "mapsReviews",
        "tags": [
          "Maps"
        ],
        "summary": "A place's reviews",
        "description": "A page of a place's reviews. The first page also carries `place_info` and `topics`; `pagination.next_page_token` leads to the next page. A page costs the same whatever `num` is; a page with no reviews after a `next_page_token` is not charged.\n\nCosts 3 credits per successful call (one page of up to 20 reviews). A first page (no `next_page_token`) that comes with nothing on it costs 1 credit.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-maps-reviews"
        },
        "parameters": [
          {
            "name": "place_id",
            "in": "query",
            "required": false,
            "description": "Place ID (`ChIJ…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 256
            },
            "x-one-of": "place"
          },
          {
            "name": "data_id",
            "in": "query",
            "required": false,
            "description": "Data ID (`0x…:0x…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "x-one-of": "place"
          },
          {
            "name": "data_cid",
            "in": "query",
            "required": false,
            "description": "CID: the decimal place number. Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 32
            },
            "x-one-of": "place"
          },
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "A Google Maps link to the place, full or short (`maps.app.goo.gl/…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 2048
            },
            "x-one-of": "place"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "The place's name with its address or city. Answered only when exactly one place matches. Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "x-one-of": "place"
          },
          {
            "name": "num",
            "in": "query",
            "required": false,
            "description": "Reviews per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 10
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "description": "Order of the reviews. `qualityScore` is the same as `relevant`.",
            "schema": {
              "type": "string",
              "enum": [
                "relevant",
                "qualityScore",
                "newestFirst",
                "ratingHigh",
                "ratingLow"
              ],
              "default": "relevant"
            }
          },
          {
            "name": "next_page_token",
            "in": "query",
            "required": false,
            "description": "The `pagination.next_page_token` of the previous page.",
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "cache",
            "in": "query",
            "required": false,
            "description": "`true`: a recent copy of the place may answer (faster). `false`: read it live now.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "hl",
            "in": "query",
            "required": false,
            "description": "Language of the answer, such as `en` or `pt-BR`.",
            "schema": {
              "type": "string",
              "maxLength": 12,
              "default": "en"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "required": false,
            "description": "Two-letter country code the search is made from.",
            "schema": {
              "type": "string",
              "maxLength": 2,
              "default": "us"
            }
          },
          {
            "name": "google_domain",
            "in": "query",
            "required": false,
            "description": "Accepted for compatibility and echoed back; it does not change the answer.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer. Charged at the call's price.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `missing_parameter`, `invalid_parameter`, `conflicting_parameters`, `link_not_a_place`, `short_link_dead`, `invalid_page_token`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  },
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "conflicting_parameters": {
                    "$ref": "#/components/examples/error_conflicting_parameters"
                  },
                  "link_not_a_place": {
                    "$ref": "#/components/examples/error_link_not_a_place"
                  },
                  "short_link_dead": {
                    "$ref": "#/components/examples/error_short_link_dead"
                  },
                  "invalid_page_token": {
                    "$ref": "#/components/examples/error_invalid_page_token"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_parameter",
              "invalid_parameter",
              "conflicting_parameters",
              "link_not_a_place",
              "short_link_dead",
              "invalid_page_token"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "402": {
            "description": "Not enough credits or a limit reached: `insufficient_credits`, `account_in_debt`, `spend_limit_reached`, `organization_credits_not_allowed`, `organization_member_limit_reached`, `organization_balance_exhausted`, `organization_in_debt`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "$ref": "#/components/examples/error_insufficient_credits"
                  },
                  "account_in_debt": {
                    "$ref": "#/components/examples/error_account_in_debt"
                  },
                  "spend_limit_reached": {
                    "$ref": "#/components/examples/error_spend_limit_reached"
                  },
                  "organization_credits_not_allowed": {
                    "$ref": "#/components/examples/error_organization_credits_not_allowed"
                  },
                  "organization_member_limit_reached": {
                    "$ref": "#/components/examples/error_organization_member_limit_reached"
                  },
                  "organization_balance_exhausted": {
                    "$ref": "#/components/examples/error_organization_balance_exhausted"
                  },
                  "organization_in_debt": {
                    "$ref": "#/components/examples/error_organization_in_debt"
                  }
                }
              }
            },
            "x-error-codes": [
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `place_not_found`, `reviews_not_available`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "place_not_found": {
                    "$ref": "#/components/examples/error_place_not_found"
                  },
                  "reviews_not_available": {
                    "$ref": "#/components/examples/error_reviews_not_available"
                  }
                }
              }
            },
            "x-error-codes": [
              "place_not_found",
              "reviews_not_available"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          },
          "502": {
            "description": "The data could not be read: `source_unavailable`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "source_unavailable": {
                    "$ref": "#/components/examples/error_source_unavailable"
                  }
                }
              }
            },
            "x-error-codes": [
              "source_unavailable"
            ]
          },
          "503": {
            "description": "Busy or unavailable for a moment: `capacity_busy`, `temporarily_unavailable`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "capacity_busy": {
                    "$ref": "#/components/examples/error_capacity_busy"
                  },
                  "temporarily_unavailable": {
                    "$ref": "#/components/examples/error_temporarily_unavailable"
                  }
                }
              }
            },
            "x-error-codes": [
              "capacity_busy",
              "temporarily_unavailable"
            ]
          },
          "504": {
            "description": "The answer took too long: `timeout`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "timeout": {
                    "$ref": "#/components/examples/error_timeout"
                  }
                }
              }
            },
            "x-error-codes": [
              "timeout"
            ]
          }
        },
        "x-billable-unit": "api.maps.reviews",
        "x-credits-per-call": 3,
        "x-credits-per-empty-first-page": 1,
        "x-billable-unit-empty-first-page": "api.maps.empty_page",
        "x-one-of-groups": {
          "place": [
            "place_id",
            "data_id",
            "data_cid",
            "url",
            "q"
          ]
        }
      }
    },
    "/v1/maps/photos": {
      "get": {
        "operationId": "mapsPhotos",
        "tags": [
          "Maps"
        ],
        "summary": "A place's photos",
        "description": "A page of a place's photo gallery, one tab (`category_id`) or all. The first page also lists the tabs (`categories`); `pagination.next_page_token` leads to the next page. A page with no photos after a `next_page_token` is not charged.\n\nCosts 2 credits per successful call (one page of photos). A first page (no `next_page_token`) that comes with nothing on it costs 1 credit.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-maps-photos"
        },
        "parameters": [
          {
            "name": "place_id",
            "in": "query",
            "required": false,
            "description": "Place ID (`ChIJ…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 256
            },
            "x-one-of": "place"
          },
          {
            "name": "data_id",
            "in": "query",
            "required": false,
            "description": "Data ID (`0x…:0x…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "x-one-of": "place"
          },
          {
            "name": "data_cid",
            "in": "query",
            "required": false,
            "description": "CID: the decimal place number. Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 32
            },
            "x-one-of": "place"
          },
          {
            "name": "url",
            "in": "query",
            "required": false,
            "description": "A Google Maps link to the place, full or short (`maps.app.goo.gl/…`). Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 2048
            },
            "x-one-of": "place"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "The place's name with its address or city. Answered only when exactly one place matches. Exactly one of `place_id`, `data_id`, `data_cid`, `url`, `q` is required.",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "x-one-of": "place"
          },
          {
            "name": "category_id",
            "in": "query",
            "required": false,
            "description": "Gallery tab (`categories[].id` of the first page, or `images[].category_id` of the place). Omitted: all photos.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "next_page_token",
            "in": "query",
            "required": false,
            "description": "The `pagination.next_page_token` of the previous page.",
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "cache",
            "in": "query",
            "required": false,
            "description": "`true`: a recent copy of the place may answer (faster). `false`: read it live now.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "hl",
            "in": "query",
            "required": false,
            "description": "Language of the answer, such as `en` or `pt-BR`.",
            "schema": {
              "type": "string",
              "maxLength": 12,
              "default": "en"
            }
          },
          {
            "name": "gl",
            "in": "query",
            "required": false,
            "description": "Two-letter country code the search is made from.",
            "schema": {
              "type": "string",
              "maxLength": 2,
              "default": "us"
            }
          },
          {
            "name": "google_domain",
            "in": "query",
            "required": false,
            "description": "Accepted for compatibility and echoed back; it does not change the answer.",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer. Charged at the call's price.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "X-Credits-Remaining": {
                "$ref": "#/components/headers/X-Credits-Remaining"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotosResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `missing_parameter`, `invalid_parameter`, `conflicting_parameters`, `link_not_a_place`, `short_link_dead`, `invalid_page_token`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  },
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "conflicting_parameters": {
                    "$ref": "#/components/examples/error_conflicting_parameters"
                  },
                  "link_not_a_place": {
                    "$ref": "#/components/examples/error_link_not_a_place"
                  },
                  "short_link_dead": {
                    "$ref": "#/components/examples/error_short_link_dead"
                  },
                  "invalid_page_token": {
                    "$ref": "#/components/examples/error_invalid_page_token"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_parameter",
              "invalid_parameter",
              "conflicting_parameters",
              "link_not_a_place",
              "short_link_dead",
              "invalid_page_token"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "402": {
            "description": "Not enough credits or a limit reached: `insufficient_credits`, `account_in_debt`, `spend_limit_reached`, `organization_credits_not_allowed`, `organization_member_limit_reached`, `organization_balance_exhausted`, `organization_in_debt`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "$ref": "#/components/examples/error_insufficient_credits"
                  },
                  "account_in_debt": {
                    "$ref": "#/components/examples/error_account_in_debt"
                  },
                  "spend_limit_reached": {
                    "$ref": "#/components/examples/error_spend_limit_reached"
                  },
                  "organization_credits_not_allowed": {
                    "$ref": "#/components/examples/error_organization_credits_not_allowed"
                  },
                  "organization_member_limit_reached": {
                    "$ref": "#/components/examples/error_organization_member_limit_reached"
                  },
                  "organization_balance_exhausted": {
                    "$ref": "#/components/examples/error_organization_balance_exhausted"
                  },
                  "organization_in_debt": {
                    "$ref": "#/components/examples/error_organization_in_debt"
                  }
                }
              }
            },
            "x-error-codes": [
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `place_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "place_not_found": {
                    "$ref": "#/components/examples/error_place_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "place_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          },
          "502": {
            "description": "The data could not be read: `source_unavailable`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "source_unavailable": {
                    "$ref": "#/components/examples/error_source_unavailable"
                  }
                }
              }
            },
            "x-error-codes": [
              "source_unavailable"
            ]
          },
          "503": {
            "description": "Busy or unavailable for a moment: `capacity_busy`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "capacity_busy": {
                    "$ref": "#/components/examples/error_capacity_busy"
                  }
                }
              }
            },
            "x-error-codes": [
              "capacity_busy"
            ]
          },
          "504": {
            "description": "The answer took too long: `timeout`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "timeout": {
                    "$ref": "#/components/examples/error_timeout"
                  }
                }
              }
            },
            "x-error-codes": [
              "timeout"
            ]
          }
        },
        "x-billable-unit": "api.maps.photos",
        "x-credits-per-call": 2,
        "x-credits-per-empty-first-page": 1,
        "x-billable-unit-empty-first-page": "api.maps.empty_page",
        "x-one-of-groups": {
          "place": [
            "place_id",
            "data_id",
            "data_cid",
            "url",
            "q"
          ]
        }
      }
    },
    "/v1/openapi.json": {
      "get": {
        "operationId": "getOpenApi",
        "tags": [
          "Meta"
        ],
        "summary": "This description",
        "description": "The OpenAPI 3.1 description of the API. It needs no key, costs nothing, and may be loaded from any site (`Access-Control-Allow-Origin: *`).",
        "security": [],
        "responses": {
          "200": {
            "description": "The OpenAPI document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/regions/search": {
      "get": {
        "operationId": "regionsSearch",
        "tags": [
          "Regions"
        ],
        "summary": "Find regions (countries, states, cities, districts) by name.",
        "description": "Regions by name, best first: one page (`next_cursor` is null).\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-regions-search"
        },
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The name to look for: local or English, a typo forgiven.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 200
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Only regions of this country (two-letter code).",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many regions to return (one page).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionsPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`, `missing_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter",
              "missing_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/regions/{type}/{id}": {
      "get": {
        "operationId": "regionsGet",
        "tags": [
          "Regions"
        ],
        "summary": "One region, with where it lies.",
        "description": "One region, with its `path`.\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-regions-type-id"
        },
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "description": "`relation` (an area with a boundary) or `node` (a place known as a point).",
            "schema": {
              "type": "string",
              "enum": [
                "relation",
                "node"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The OSM id.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,16}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Region"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `region_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "region_not_found": {
                    "$ref": "#/components/examples/error_region_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "region_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/regions/{type}/{id}/children": {
      "get": {
        "operationId": "regionsChildren",
        "tags": [
          "Regions"
        ],
        "summary": "The regions inside a region.",
        "description": "The regions inside a region, a page at a time.\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-regions-type-id-children"
        },
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "description": "`relation` (an area with a boundary) or `node` (a place known as a point).",
            "schema": {
              "type": "string",
              "enum": [
                "relation",
                "node"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The OSM id.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,16}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Regions per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `next_cursor` of the previous page, unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionsPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `region_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "region_not_found": {
                    "$ref": "#/components/examples/error_region_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "region_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/scans": {
      "post": {
        "operationId": "scansCreate",
        "tags": [
          "Scans"
        ],
        "summary": "Scan whole regions for place types: a free preview, or the full scan.",
        "description": "Creates a scan and starts its first run: a free preview (the default), or the full scan (`mode: \"full\"` with a `cost_limit`). With `enrich`, the full scan enriches every place it finds, and the preview prices it (`estimate.enrichment`). Answers 201, or 200 for a repeat of an earlier request with the same `Idempotency-Key`.\n\nFree: no credits are charged for the call; a full scan pays for the places it finds (and their enrichment, with `enrich`) under its `cost_limit`.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#post-v1-scans"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Makes a retry safe: a repeat with the same key and the same body within 24 hours answers 200 with the scan the first request made; the same key with another body is `idempotency_conflict`.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The scan an earlier request with this `Idempotency-Key` and body made.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Scan"
                }
              }
            }
          },
          "201": {
            "description": "The new scan.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Scan"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`, `invalid_json`, `missing_parameter`, `conflicting_parameters`, `region_not_scannable`, `regions_mixed_countries`, `too_many_regions`, `webhook_url_not_allowed`, `enrich_type_not_available`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "invalid_json": {
                    "$ref": "#/components/examples/error_invalid_json"
                  },
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  },
                  "conflicting_parameters": {
                    "$ref": "#/components/examples/error_conflicting_parameters"
                  },
                  "region_not_scannable": {
                    "$ref": "#/components/examples/error_region_not_scannable"
                  },
                  "regions_mixed_countries": {
                    "$ref": "#/components/examples/error_regions_mixed_countries"
                  },
                  "too_many_regions": {
                    "$ref": "#/components/examples/error_too_many_regions"
                  },
                  "webhook_url_not_allowed": {
                    "$ref": "#/components/examples/error_webhook_url_not_allowed"
                  },
                  "enrich_type_not_available": {
                    "$ref": "#/components/examples/error_enrich_type_not_available"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter",
              "invalid_json",
              "missing_parameter",
              "conflicting_parameters",
              "region_not_scannable",
              "regions_mixed_countries",
              "too_many_regions",
              "webhook_url_not_allowed",
              "enrich_type_not_available"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "402": {
            "description": "Not enough credits or a limit reached: `insufficient_credits`, `account_in_debt`, `spend_limit_reached`, `organization_credits_not_allowed`, `organization_member_limit_reached`, `organization_balance_exhausted`, `organization_in_debt`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "$ref": "#/components/examples/error_insufficient_credits"
                  },
                  "account_in_debt": {
                    "$ref": "#/components/examples/error_account_in_debt"
                  },
                  "spend_limit_reached": {
                    "$ref": "#/components/examples/error_spend_limit_reached"
                  },
                  "organization_credits_not_allowed": {
                    "$ref": "#/components/examples/error_organization_credits_not_allowed"
                  },
                  "organization_member_limit_reached": {
                    "$ref": "#/components/examples/error_organization_member_limit_reached"
                  },
                  "organization_balance_exhausted": {
                    "$ref": "#/components/examples/error_organization_balance_exhausted"
                  },
                  "organization_in_debt": {
                    "$ref": "#/components/examples/error_organization_in_debt"
                  }
                }
              }
            },
            "x-error-codes": [
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `region_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "region_not_found": {
                    "$ref": "#/components/examples/error_region_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "region_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "409": {
            "description": "Error: `idempotency_conflict`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "idempotency_conflict": {
                    "$ref": "#/components/examples/error_idempotency_conflict"
                  }
                }
              }
            },
            "x-error-codes": [
              "idempotency_conflict"
            ]
          },
          "415": {
            "description": "Error: `unsupported_media_type`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "$ref": "#/components/examples/error_unsupported_media_type"
                  }
                }
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`, `too_many_scans`, `preview_limit_reached`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  },
                  "too_many_scans": {
                    "$ref": "#/components/examples/error_too_many_scans"
                  },
                  "preview_limit_reached": {
                    "$ref": "#/components/examples/error_preview_limit_reached"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests",
              "too_many_scans",
              "preview_limit_reached"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          },
          "503": {
            "description": "Busy or unavailable for a moment: `temporarily_unavailable`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "temporarily_unavailable": {
                    "$ref": "#/components/examples/error_temporarily_unavailable"
                  }
                }
              }
            },
            "x-error-codes": [
              "temporarily_unavailable"
            ]
          }
        },
        "x-credits-per-call": 0,
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScanCreateBody"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "scansList",
        "tags": [
          "Scans"
        ],
        "summary": "The scans of this account, newest first.",
        "description": "The scans of this account made through the API, newest first.\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-scans"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Scans per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `next_cursor` of the previous page, unchanged.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScansPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/scans/{id}": {
      "get": {
        "operationId": "scansGet",
        "tags": [
          "Scans"
        ],
        "summary": "A scan: status, progress, estimate, result.",
        "description": "A scan as it stands now.\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-scans-id"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scan's ID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Scan"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `scan_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_not_found": {
                    "$ref": "#/components/examples/error_scan_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/scans/{id}/start": {
      "post": {
        "operationId": "scansStart",
        "tags": [
          "Scans"
        ],
        "summary": "Start the full scan from a finished preview.",
        "description": "Starts the full scan: from a finished preview it goes on from it; after a full scan it is a fresh full scan, whose places are paid for again and compared with the previous result. `enrich` sets the types it enriches with (null: none; left out: the scan's own).\n\nFree: no credits are charged for the call; the full scan pays for the places it finds (and their enrichment, with `enrich`) under its `cost_limit`.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#post-v1-scans-id-start"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scan's ID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Scan"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`, `invalid_json`, `missing_parameter`, `conflicting_parameters`, `too_many_regions`, `enrich_type_not_available`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "invalid_json": {
                    "$ref": "#/components/examples/error_invalid_json"
                  },
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  },
                  "conflicting_parameters": {
                    "$ref": "#/components/examples/error_conflicting_parameters"
                  },
                  "too_many_regions": {
                    "$ref": "#/components/examples/error_too_many_regions"
                  },
                  "enrich_type_not_available": {
                    "$ref": "#/components/examples/error_enrich_type_not_available"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter",
              "invalid_json",
              "missing_parameter",
              "conflicting_parameters",
              "too_many_regions",
              "enrich_type_not_available"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "402": {
            "description": "Not enough credits or a limit reached: `insufficient_credits`, `account_in_debt`, `spend_limit_reached`, `organization_credits_not_allowed`, `organization_member_limit_reached`, `organization_balance_exhausted`, `organization_in_debt`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "$ref": "#/components/examples/error_insufficient_credits"
                  },
                  "account_in_debt": {
                    "$ref": "#/components/examples/error_account_in_debt"
                  },
                  "spend_limit_reached": {
                    "$ref": "#/components/examples/error_spend_limit_reached"
                  },
                  "organization_credits_not_allowed": {
                    "$ref": "#/components/examples/error_organization_credits_not_allowed"
                  },
                  "organization_member_limit_reached": {
                    "$ref": "#/components/examples/error_organization_member_limit_reached"
                  },
                  "organization_balance_exhausted": {
                    "$ref": "#/components/examples/error_organization_balance_exhausted"
                  },
                  "organization_in_debt": {
                    "$ref": "#/components/examples/error_organization_in_debt"
                  }
                }
              }
            },
            "x-error-codes": [
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `scan_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_not_found": {
                    "$ref": "#/components/examples/error_scan_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "409": {
            "description": "Error: `scan_busy`, `scan_archived`, `scan_not_previewed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_busy": {
                    "$ref": "#/components/examples/error_scan_busy"
                  },
                  "scan_archived": {
                    "$ref": "#/components/examples/error_scan_archived"
                  },
                  "scan_not_previewed": {
                    "$ref": "#/components/examples/error_scan_not_previewed"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_busy",
              "scan_archived",
              "scan_not_previewed"
            ]
          },
          "415": {
            "description": "Error: `unsupported_media_type`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "$ref": "#/components/examples/error_unsupported_media_type"
                  }
                }
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`, `too_many_scans`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  },
                  "too_many_scans": {
                    "$ref": "#/components/examples/error_too_many_scans"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests",
              "too_many_scans"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScanStartBody"
              }
            }
          }
        }
      }
    },
    "/v1/scans/{id}/cancel": {
      "post": {
        "operationId": "scansCancel",
        "tags": [
          "Scans"
        ],
        "summary": "Stop the run in progress; what was found and paid for is kept.",
        "description": "Stops the run in progress (a preview, a full scan or an enrichment); a full scan keeps what it found and paid for, an enrichment what it made and paid for. With no run going, the scan as it is.\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#post-v1-scans-id-cancel"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scan's ID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Scan"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `scan_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_not_found": {
                    "$ref": "#/components/examples/error_scan_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "409": {
            "description": "Error: `scan_busy`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_busy": {
                    "$ref": "#/components/examples/error_scan_busy"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_busy"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/scans/{id}/places": {
      "get": {
        "operationId": "scansPlaces",
        "tags": [
          "Scans"
        ],
        "summary": "The places of the scan's latest full result.",
        "description": "The places of the scan's latest full result, in the order they were found. `include` adds each place's enrichment results (`enrichment`).\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-scans-id-places"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scan's ID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Places per page. With `reviews` or `photos` in `include`: 1 to 50, and 50 by default.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            },
            "x-maximum-with-items": 50
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `next_cursor` of the previous page, unchanged.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "change",
            "in": "query",
            "required": false,
            "description": "Only the places with this `change`.",
            "schema": {
              "type": "string",
              "enum": [
                "new",
                "changed",
                "same"
              ]
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "description": "Enrichment results to add to each place, as `enrichment`: the types, comma-separated, or `all`. With `reviews` or `photos` a page holds at most 50 places.",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "minItems": 1,
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "contacts",
                  "website",
                  "details",
                  "reviews",
                  "photos",
                  "all"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanPlacesPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `scan_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_not_found": {
                    "$ref": "#/components/examples/error_scan_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/scans/{id}/enrich": {
      "post": {
        "operationId": "scansEnrich",
        "tags": [
          "Scans"
        ],
        "summary": "Enrich the places of the scan's latest result: contacts, website check, place card, reviews, photos.",
        "description": "Enriches the places of the scan's latest full result (all of them, by `change`, or by `ids`) under a hold of its own: answers the scan, now at `stage: enrich` and `status: running`. With `dry_run: true` it answers the quote (`EnrichQuote`) and starts nothing. A place that already has a result fit to keep is left as it is, free, unless its type says `redo: true`.\n\nFree: no credits are charged for the call; the enrichment pays for its results under its `cost_limit`, and `dry_run` costs nothing.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#post-v1-scans-id-enrich"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The scan's ID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The scan, now at `stage: enrich`; with `dry_run: true`, the quote, and nothing started.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Scan"
                    },
                    {
                      "$ref": "#/components/schemas/EnrichQuote"
                    }
                  ],
                  "description": "The scan (at `stage: enrich`), or with `dry_run: true` the quote."
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`, `invalid_json`, `missing_parameter`, `conflicting_parameters`, `enrich_type_not_available`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  },
                  "invalid_json": {
                    "$ref": "#/components/examples/error_invalid_json"
                  },
                  "missing_parameter": {
                    "$ref": "#/components/examples/error_missing_parameter"
                  },
                  "conflicting_parameters": {
                    "$ref": "#/components/examples/error_conflicting_parameters"
                  },
                  "enrich_type_not_available": {
                    "$ref": "#/components/examples/error_enrich_type_not_available"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter",
              "invalid_json",
              "missing_parameter",
              "conflicting_parameters",
              "enrich_type_not_available"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "402": {
            "description": "Not enough credits or a limit reached: `insufficient_credits`, `account_in_debt`, `spend_limit_reached`, `organization_credits_not_allowed`, `organization_member_limit_reached`, `organization_balance_exhausted`, `organization_in_debt`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "$ref": "#/components/examples/error_insufficient_credits"
                  },
                  "account_in_debt": {
                    "$ref": "#/components/examples/error_account_in_debt"
                  },
                  "spend_limit_reached": {
                    "$ref": "#/components/examples/error_spend_limit_reached"
                  },
                  "organization_credits_not_allowed": {
                    "$ref": "#/components/examples/error_organization_credits_not_allowed"
                  },
                  "organization_member_limit_reached": {
                    "$ref": "#/components/examples/error_organization_member_limit_reached"
                  },
                  "organization_balance_exhausted": {
                    "$ref": "#/components/examples/error_organization_balance_exhausted"
                  },
                  "organization_in_debt": {
                    "$ref": "#/components/examples/error_organization_in_debt"
                  }
                }
              }
            },
            "x-error-codes": [
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "404": {
            "description": "Not found: `scan_not_found`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_not_found": {
                    "$ref": "#/components/examples/error_scan_not_found"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_not_found"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "409": {
            "description": "Error: `scan_busy`, `scan_archived`, `no_result_to_enrich`, `nothing_to_enrich`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "scan_busy": {
                    "$ref": "#/components/examples/error_scan_busy"
                  },
                  "scan_archived": {
                    "$ref": "#/components/examples/error_scan_archived"
                  },
                  "no_result_to_enrich": {
                    "$ref": "#/components/examples/error_no_result_to_enrich"
                  },
                  "nothing_to_enrich": {
                    "$ref": "#/components/examples/error_nothing_to_enrich"
                  }
                }
              }
            },
            "x-error-codes": [
              "scan_busy",
              "scan_archived",
              "no_result_to_enrich",
              "nothing_to_enrich"
            ]
          },
          "415": {
            "description": "Error: `unsupported_media_type`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "unsupported_media_type": {
                    "$ref": "#/components/examples/error_unsupported_media_type"
                  }
                }
              }
            },
            "x-error-codes": [
              "unsupported_media_type"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0,
        "x-enrichment-prices": [
          {
            "type": "contacts",
            "level": "standard",
            "per": "place",
            "credits": 0.75
          },
          {
            "type": "contacts",
            "level": "js",
            "per": "place",
            "credits": 4.25
          },
          {
            "type": "contacts",
            "level": "ai",
            "per": "place",
            "credits": 17.5
          },
          {
            "type": "contacts",
            "level": "ai_social",
            "per": "place",
            "credits": 20
          },
          {
            "type": "website",
            "per": "place",
            "credits": 2.25
          },
          {
            "type": "details",
            "per": "place",
            "credits": 1
          },
          {
            "type": "reviews",
            "per": "review",
            "credits": 0.2
          },
          {
            "type": "photos",
            "per": "photo",
            "credits": 0.25
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrichRequest"
              }
            }
          }
        }
      }
    },
    "/v1/account": {
      "get": {
        "operationId": "accountGet",
        "tags": [
          "Account"
        ],
        "summary": "The balance, prices and limits of the key in use.",
        "description": "What the key in use (or the connected app) may spend now: the credits available and held, any debt, who pays, its limits and what it spent today and this month, the account's monthly limit, the price of everything, and a running discount.\n\nFree: no credits are charged for the call.",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#get-v1-account"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "The answer.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "X-Credits-Charged": {
                "$ref": "#/components/headers/X-Credits-Charged"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: `invalid_parameter`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_parameter": {
                    "$ref": "#/components/examples/error_invalid_parameter"
                  }
                }
              }
            },
            "x-error-codes": [
              "invalid_parameter"
            ]
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `access_token_not_accepted`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "access_token_not_accepted": {
                    "$ref": "#/components/examples/error_access_token_not_accepted"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "access_token_not_accepted"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "429": {
            "description": "Too many requests: `rate_limited`, `too_many_concurrent_requests`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "rate_limited": {
                    "$ref": "#/components/examples/error_rate_limited"
                  },
                  "too_many_concurrent_requests": {
                    "$ref": "#/components/examples/error_too_many_concurrent_requests"
                  }
                }
              }
            },
            "x-error-codes": [
              "rate_limited",
              "too_many_concurrent_requests"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-credits-per-call": 0
      }
    },
    "/v1/mcp": {
      "post": {
        "operationId": "mcp",
        "tags": [
          "MCP"
        ],
        "summary": "The MCP server for AI agents",
        "description": "The API as the tools of a remote MCP server (Model Context Protocol, Streamable HTTP): an AI agent searches Google Maps, scans regions and enriches places through it. Every message is a JSON-RPC `POST` to this address, answered with JSON; there are no sessions and no event stream (`GET` and `DELETE` are 405). The server calls itself `placegrid`.\n\nIt takes an API key as every endpoint does, or the OAuth access token of a client that connected by signing in. One tool per endpoint, its arguments the endpoint's parameters, its answer the endpoint's JSON; each tool call is charged, limited and logged as its endpoint. A refused call is a tool result with `isError: true` and the error body as its text. Connecting and listing the tools cost nothing.\n\nHow to connect, and the tools: https://dev.enrichment.brontir.com/docs/api#mcp-server",
        "externalDocs": {
          "url": "https://dev.enrichment.brontir.com/docs/api#mcp-server"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "A JSON-RPC 2.0 message of the Model Context Protocol, or a batch of them.",
                "oneOf": [
                  {
                    "type": "object"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The JSON-RPC answer (a tool's refusal included, as a result with `isError: true`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "A notification: taken, with no answer."
          },
          "401": {
            "description": "No valid API key: `missing_api_key`, `invalid_api_key`, `invalid_access_token`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing_api_key": {
                    "$ref": "#/components/examples/error_missing_api_key"
                  },
                  "invalid_api_key": {
                    "$ref": "#/components/examples/error_invalid_api_key"
                  },
                  "invalid_access_token": {
                    "$ref": "#/components/examples/error_invalid_access_token"
                  }
                }
              }
            },
            "x-error-codes": [
              "missing_api_key",
              "invalid_api_key",
              "invalid_access_token"
            ]
          },
          "403": {
            "description": "The key or the account may not call the API: `api_key_disabled`, `account_inactive`, `api_not_enabled`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "api_key_disabled": {
                    "$ref": "#/components/examples/error_api_key_disabled"
                  },
                  "account_inactive": {
                    "$ref": "#/components/examples/error_account_inactive"
                  },
                  "api_not_enabled": {
                    "$ref": "#/components/examples/error_api_not_enabled"
                  }
                }
              }
            },
            "x-error-codes": [
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled"
            ]
          },
          "405": {
            "description": "Method not allowed: `method_not_allowed`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "method_not_allowed": {
                    "$ref": "#/components/examples/error_method_not_allowed"
                  }
                }
              }
            },
            "x-error-codes": [
              "method_not_allowed"
            ]
          },
          "500": {
            "description": "Something went wrong on our side: `internal_error`. Nothing is charged for an error.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/X-Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "internal_error": {
                    "$ref": "#/components/examples/error_internal_error"
                  }
                }
              }
            },
            "x-error-codes": [
              "internal_error"
            ]
          }
        },
        "x-sdk": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "pg_ + 40 lowercase base32 characters",
        "description": "Your API key as a bearer token: `Authorization: Bearer pg_YOUR_API_KEY`. The recommended way."
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your API key (pg_ + 40 lowercase base32 characters) in a header of its own."
      },
      "apiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "api_key",
        "description": "Your API key (pg_ + 40 lowercase base32 characters) in the address. An address is written down in logs, browser history and shared links, and the key with it: use the `Authorization` header."
      },
      "tokenQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "token",
        "description": "Your API key (pg_ + 40 lowercase base32 characters) in the address. An address is written down in logs, browser history and shared links, and the key with it: use the `Authorization` header."
      }
    },
    "headers": {
      "X-Request-Id": {
        "description": "The request ID, on every answer. Quote it when you contact us.",
        "schema": {
          "type": "string",
          "pattern": "^req_[a-z2-7]{26}$"
        }
      },
      "X-Credits-Charged": {
        "description": "What this call cost, in credits.",
        "schema": {
          "type": "number",
          "minimum": 0
        }
      },
      "X-Credits-Remaining": {
        "description": "What is left to spend after this call, in credits; below zero when the call cost more than was left (owed, paid first by the next purchase).",
        "schema": {
          "type": "number"
        }
      },
      "RateLimit-Limit": {
        "description": "The key's requests a minute.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "RateLimit-Remaining": {
        "description": "Requests left in the current minute.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until the minute's count starts again.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before asking again.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "The body of every error. Nothing is charged for an error.",
        "required": [
          "error",
          "message",
          "request_id",
          "docs_url"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "missing_api_key",
              "invalid_api_key",
              "api_key_disabled",
              "account_inactive",
              "api_not_enabled",
              "missing_parameter",
              "invalid_parameter",
              "conflicting_parameters",
              "invalid_page_token",
              "link_not_a_place",
              "short_link_dead",
              "place_not_found",
              "not_found",
              "method_not_allowed",
              "insufficient_credits",
              "account_in_debt",
              "spend_limit_reached",
              "organization_credits_not_allowed",
              "organization_member_limit_reached",
              "organization_balance_exhausted",
              "organization_in_debt",
              "rate_limited",
              "too_many_concurrent_requests",
              "capacity_busy",
              "temporarily_unavailable",
              "reviews_not_available",
              "invalid_json",
              "unsupported_media_type",
              "region_not_found",
              "region_not_scannable",
              "regions_mixed_countries",
              "too_many_regions",
              "scan_not_found",
              "scan_busy",
              "scan_archived",
              "scan_not_previewed",
              "too_many_scans",
              "preview_limit_reached",
              "webhook_url_not_allowed",
              "idempotency_conflict",
              "no_result_to_enrich",
              "nothing_to_enrich",
              "enrich_type_not_available",
              "invalid_access_token",
              "access_token_not_accepted",
              "source_unavailable",
              "timeout",
              "internal_error"
            ],
            "description": "The error's code: a stable string to branch on."
          },
          "message": {
            "type": "string",
            "description": "What was wrong and what to do, in English. The wording may change: branch on `error`."
          },
          "request_id": {
            "type": "string",
            "description": "The request ID, also in the `X-Request-Id` header. Quote it when you contact us."
          },
          "docs_url": {
            "type": "string",
            "format": "uri",
            "description": "The error's section in the API reference."
          },
          "param": {
            "type": "string",
            "description": "The parameter at fault (`missing_parameter`, `invalid_parameter`)."
          },
          "retry_after": {
            "type": "integer",
            "description": "Seconds to wait before asking again (429, 503)."
          },
          "candidates": {
            "type": "array",
            "description": "`place_not_found`: up to five places the name matched.",
            "items": {
              "type": "object",
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "address": {
                  "type": "string"
                },
                "data_id": {
                  "type": "string"
                }
              }
            }
          },
          "limit": {
            "type": "string",
            "enum": [
              "key_daily",
              "key_monthly",
              "account_monthly",
              "key",
              "account"
            ],
            "description": "Which limit. `spend_limit_reached`: `key_daily`, `key_monthly` or `account_monthly`. `rate_limited` and `too_many_concurrent_requests`: `key` (the key's or connected app's own) or `account` (all of the account's keys and connected apps together)."
          }
        },
        "additionalProperties": false
      },
      "SearchMetadata": {
        "type": "object",
        "required": [
          "id",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The request ID, the same as the `X-Request-Id` header."
          },
          "status": {
            "type": "string",
            "const": "Success"
          },
          "created_at": {
            "type": "string",
            "description": "When the request came in, as `2026-11-11 09:30:12 UTC`."
          },
          "processed_at": {
            "type": "string",
            "description": "When its answer was ready, as `2026-11-11 09:30:14 UTC`."
          },
          "total_time_taken": {
            "type": "number",
            "description": "Seconds the answer took."
          },
          "google_maps_url": {
            "type": "string",
            "format": "uri",
            "description": "The same request on Google Maps, when there is one."
          },
          "from_cache": {
            "type": "boolean",
            "description": "`true` when a recent copy answered (the `cache` parameter)."
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When that copy was read from Google Maps (place cards and photos)."
          },
          "stale": {
            "type": "boolean",
            "description": "`true` when Google Maps could not be read just then and an older copy of the place answered instead (`observed_at` says when it was read). Such an answer is not charged."
          }
        },
        "additionalProperties": true
      },
      "SearchParameters": {
        "type": "object",
        "description": "The parameters as they were understood, defaults included.",
        "properties": {
          "engine": {
            "type": "string",
            "const": "google_maps"
          },
          "type": {
            "type": "string",
            "enum": [
              "search",
              "place",
              "reviews",
              "photos"
            ]
          },
          "zoom": {
            "type": "number",
            "description": "A search: the zoom of the window, however it was given."
          },
          "radius": {
            "type": "number",
            "description": "A search: the radius in metres the window covers, however it was given."
          },
          "resolved_data_id": {
            "type": "string",
            "description": "A place: the Data ID it was found by."
          }
        },
        "additionalProperties": true
      },
      "GpsCoordinates": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          }
        }
      },
      "Pagination": {
        "type": "object",
        "description": "Present while there is a next page.",
        "properties": {
          "next_page_token": {
            "type": "string",
            "description": "Pass it unchanged as `next_page_token` for the next page."
          }
        },
        "additionalProperties": true
      },
      "Place": {
        "type": "object",
        "description": "A place as a search lists it. A field with no value is left out.",
        "properties": {
          "position": {
            "type": "integer",
            "description": "From 1 and running on: the second page starts at 21."
          },
          "title": {
            "type": "string",
            "description": "The place's name."
          },
          "place_id": {
            "type": "string",
            "description": "Place ID (`ChIJ…`)."
          },
          "data_id": {
            "type": "string",
            "description": "Data ID (`0x…:0x…`)."
          },
          "data_cid": {
            "type": "string",
            "description": "CID: the right half of `data_id` as a decimal number."
          },
          "provider_id": {
            "type": "string",
            "description": "Knowledge Graph ID (`/g/…`)."
          },
          "gps_coordinates": {
            "$ref": "#/components/schemas/GpsCoordinates"
          },
          "rating": {
            "type": "number",
            "description": "Rating."
          },
          "reviews": {
            "type": "integer",
            "description": "Number of reviews."
          },
          "price": {
            "type": "string",
            "description": "The price range as shown."
          },
          "extracted_price": {
            "type": "integer",
            "description": "The first number of `price`; left out for a range of signs."
          },
          "type": {
            "type": "string",
            "description": "The main category, in the language of `hl`."
          },
          "types": {
            "type": "array",
            "description": "Every category, in the language of `hl`.",
            "items": {
              "type": "string"
            }
          },
          "type_id": {
            "type": "string",
            "description": "A category key that does not depend on the language; in a category search, the category matched with the query."
          },
          "type_ids": {
            "type": "array",
            "description": "Every category key, the main one first.",
            "items": {
              "type": "string"
            }
          },
          "address": {
            "type": "string",
            "description": "The address without the name."
          },
          "address_components": {
            "type": "object",
            "description": "`street`, `street_line2`, `district`, `neighborhood`, `city`, `region`, `country_code`.",
            "additionalProperties": true
          },
          "open_state": {
            "type": "string",
            "description": "`Open · Closes 7 PM`."
          },
          "hours": {
            "type": "string",
            "description": "The same as `open_state`."
          },
          "operating_hours": {
            "type": "object",
            "description": "Hours per day; the keys are English day names whatever `hl` says.",
            "additionalProperties": true
          },
          "phone": {
            "type": "string",
            "description": "The phone as shown."
          },
          "phone_international": {
            "type": "string",
            "description": "The phone in international form."
          },
          "website": {
            "type": "string",
            "description": "The website."
          },
          "website_domain": {
            "type": "string",
            "description": "The website's domain."
          },
          "description": {
            "type": "string",
            "description": "A short description."
          },
          "thumbnail": {
            "type": "string",
            "description": "A picture of the place."
          },
          "user_review": {
            "type": "string",
            "description": "The review quote the list shows."
          },
          "extensions": {
            "type": "array",
            "description": "Amenities by group.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "unsupported_extensions": {
            "type": "array",
            "description": "What the place does not offer, by group.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "service_options": {
            "type": "object",
            "description": "`dine_in`, `takeout`, `delivery` … as `true` or `false`.",
            "additionalProperties": true
          },
          "order_online": {
            "type": "string",
            "description": "A link to order online."
          },
          "reserve_a_table": {
            "type": "string",
            "description": "A link to book a table."
          },
          "book_online": {
            "type": "string",
            "description": "A link to book an appointment."
          },
          "amenities": {
            "type": "array",
            "description": "A hotel's amenities.",
            "items": {
              "type": "string"
            }
          },
          "unclaimed_listing": {
            "type": "boolean",
            "description": "`true` when the owner has not claimed the listing."
          },
          "business_status": {
            "type": "string",
            "enum": [
              "operational",
              "closed_temporarily",
              "closed_permanently"
            ]
          },
          "sponsored": {
            "type": "boolean",
            "description": "The place is shown as an ad."
          },
          "plus_code": {
            "type": "string",
            "description": "Plus Code."
          },
          "timezone": {
            "type": "string",
            "description": "Time zone."
          },
          "country_code": {
            "type": "string",
            "description": "Two-letter country code."
          },
          "owner": {
            "type": "object",
            "description": "The owner's `name` and `id`.",
            "additionalProperties": true
          },
          "photos_count": {
            "type": "integer",
            "description": "How many photos the place has."
          },
          "hotel": {
            "type": "object",
            "description": "A hotel's card.",
            "additionalProperties": true
          },
          "links": {
            "type": "array",
            "description": "Every external link of the place, with its kind and label.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "PlaceDetails": {
        "type": "object",
        "description": "A full place card: the fields of a search place (but `position`, `user_review`, `sponsored`), with `type` as a list, and more. A field with no value is left out.",
        "properties": {
          "title": {
            "type": "string",
            "description": "The place's name."
          },
          "place_id": {
            "type": "string",
            "description": "Place ID (`ChIJ…`)."
          },
          "data_id": {
            "type": "string",
            "description": "Data ID (`0x…:0x…`)."
          },
          "data_cid": {
            "type": "string",
            "description": "CID: the right half of `data_id` as a decimal number."
          },
          "provider_id": {
            "type": "string",
            "description": "Knowledge Graph ID (`/g/…`)."
          },
          "gps_coordinates": {
            "$ref": "#/components/schemas/GpsCoordinates"
          },
          "rating": {
            "type": "number",
            "description": "Rating."
          },
          "reviews": {
            "type": "integer",
            "description": "Number of reviews."
          },
          "price": {
            "type": "string",
            "description": "The price range as shown."
          },
          "extracted_price": {
            "type": "integer",
            "description": "The first number of `price`; left out for a range of signs."
          },
          "type": {
            "type": "array",
            "description": "Every category (a list here, a string in a search).",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "type": "array",
            "description": "Every category, in the language of `hl`.",
            "items": {
              "type": "string"
            }
          },
          "type_id": {
            "type": "string",
            "description": "A category key that does not depend on the language; in a category search, the category matched with the query."
          },
          "type_ids": {
            "type": "array",
            "description": "Every category key, the main one first.",
            "items": {
              "type": "string"
            }
          },
          "address": {
            "type": "string",
            "description": "The address without the name."
          },
          "address_components": {
            "type": "object",
            "description": "`street`, `street_line2`, `district`, `neighborhood`, `city`, `region`, `country_code`.",
            "additionalProperties": true
          },
          "open_state": {
            "type": "string",
            "description": "`Open · Closes 7 PM`."
          },
          "hours": {
            "type": "string",
            "description": "The same as `open_state`."
          },
          "operating_hours": {
            "type": "object",
            "description": "Hours per day; the keys are English day names whatever `hl` says.",
            "additionalProperties": true
          },
          "phone": {
            "type": "string",
            "description": "The phone as shown."
          },
          "phone_international": {
            "type": "string",
            "description": "The phone in international form."
          },
          "website": {
            "type": "string",
            "description": "The website."
          },
          "website_domain": {
            "type": "string",
            "description": "The website's domain."
          },
          "description": {
            "type": "string",
            "description": "A short description."
          },
          "thumbnail": {
            "type": "string",
            "description": "A picture of the place."
          },
          "extensions": {
            "type": "array",
            "description": "Amenities by group.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "unsupported_extensions": {
            "type": "array",
            "description": "What the place does not offer, by group.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "service_options": {
            "type": "object",
            "description": "`dine_in`, `takeout`, `delivery` … as `true` or `false`.",
            "additionalProperties": true
          },
          "order_online": {
            "type": "string",
            "description": "A link to order online."
          },
          "reserve_a_table": {
            "type": "string",
            "description": "A link to book a table."
          },
          "book_online": {
            "type": "string",
            "description": "A link to book an appointment."
          },
          "amenities": {
            "type": "array",
            "description": "A hotel's amenities.",
            "items": {
              "type": "string"
            }
          },
          "unclaimed_listing": {
            "type": "boolean",
            "description": "`true` when the owner has not claimed the listing."
          },
          "business_status": {
            "type": "string",
            "enum": [
              "operational",
              "closed_temporarily",
              "closed_permanently"
            ]
          },
          "plus_code": {
            "type": "string",
            "description": "Plus Code."
          },
          "timezone": {
            "type": "string",
            "description": "Time zone."
          },
          "country_code": {
            "type": "string",
            "description": "Two-letter country code."
          },
          "owner": {
            "type": "object",
            "description": "The owner's `name` and `id`.",
            "additionalProperties": true
          },
          "photos_count": {
            "type": "integer",
            "description": "How many photos the place has."
          },
          "hotel": {
            "type": "object",
            "description": "A hotel's card.",
            "additionalProperties": true
          },
          "links": {
            "type": "array",
            "description": "Every external link of the place, with its kind and label.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "rating_summary": {
            "type": "array",
            "description": "`stars` and `amount` per star, five stars first.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "summary": {
            "type": "string",
            "description": "Google's long description."
          },
          "review_summary": {
            "type": "string",
            "description": "Google's summary of the reviews."
          },
          "owner_description": {
            "type": "string",
            "description": "The owner's description."
          },
          "popular_times": {
            "type": "object",
            "description": "`hour` and `busyness` per day (English day keys).",
            "additionalProperties": true
          },
          "live_busyness": {
            "type": "integer",
            "description": "How busy it is now."
          },
          "live_busyness_text": {
            "type": "string",
            "description": "How busy it is now, in words."
          },
          "typical_visit": {
            "type": "string",
            "description": "How long people usually stay."
          },
          "images": {
            "type": "array",
            "description": "Gallery tabs: `title`, `thumbnail`, `category_id` (for `/v1/maps/photos`).",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "photos_total": {
            "type": "integer",
            "description": "Photos in the gallery."
          },
          "menu": {
            "type": "object",
            "description": "`link` and `source` of the menu.",
            "additionalProperties": true
          },
          "menu_sections": {
            "type": "array",
            "description": "The menu, products or services: `title` and `items`.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "user_reviews": {
            "type": "array",
            "description": "Phrases from reviews the card shows.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "topics": {
            "type": "array",
            "description": "Topics of the reviews: `keyword`, `mentions`, `id`.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "reviews_preview": {
            "type": "array",
            "description": "Reviews the card itself shows.",
            "items": {
              "$ref": "#/components/schemas/Review"
            }
          },
          "posts": {
            "type": "array",
            "description": "The owner's posts.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "plus_code_local": {
            "type": "string",
            "description": "The Plus Code with a town."
          },
          "price_details": {
            "type": "array",
            "description": "What visitors spend: `label`, `reported`, `share`.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "department_hours": {
            "type": "array",
            "description": "Hours of departments.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "holiday_hours": {
            "type": "array",
            "description": "Holiday hours.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "fuel_prices": {
            "type": "array",
            "description": "Fuel prices.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "hotel_rates": {
            "type": "array",
            "description": "A hotel's prices at partners.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "nearby_stays": {
            "type": "array",
            "description": "Stays nearby.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "ticket_offers": {
            "type": "array",
            "description": "Tickets.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "experiences": {
            "type": "array",
            "description": "Tours.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "people_also_search_for": {
            "type": "array",
            "description": "Related places.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "at_this_place": {
            "type": "array",
            "description": "Places inside this one.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "nearby": {
            "type": "array",
            "description": "Places nearby.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      },
      "Review": {
        "type": "object",
        "description": "A review. A field with no value is left out.",
        "properties": {
          "position": {
            "type": "integer",
            "description": "From 1 on each page."
          },
          "link": {
            "type": "string",
            "description": "A link to the review."
          },
          "review_id": {
            "type": "string",
            "description": "The review's ID."
          },
          "source": {
            "type": "string",
            "description": "Where it was written (`Google`)."
          },
          "rating": {
            "type": "integer",
            "description": "Stars."
          },
          "date": {
            "type": "string",
            "description": "The date as shown (`2 days ago`)."
          },
          "iso_date": {
            "type": "string",
            "format": "date-time",
            "description": "When it was first written, when known."
          },
          "iso_date_of_last_edit": {
            "type": "string",
            "format": "date-time",
            "description": "The exact time of its last version."
          },
          "snippet": {
            "type": "string",
            "description": "The text as its author wrote it."
          },
          "extracted_snippet": {
            "type": "object",
            "description": "`original`, and `translated` into `hl` when the review is in another language.",
            "additionalProperties": true
          },
          "likes": {
            "type": "integer",
            "description": "Likes."
          },
          "views": {
            "type": "integer",
            "description": "Views."
          },
          "images": {
            "type": "array",
            "description": "Photos in the review.",
            "items": {
              "type": "string"
            }
          },
          "user": {
            "type": "object",
            "description": "`name`, `link`, `contributor_id`, `thumbnail`, `local_guide`, `local_guide_level`, `badge`, `reviews`, `photos`.",
            "additionalProperties": true
          },
          "details": {
            "type": "object",
            "description": "Answers to Google's questions, keys in the language of `hl`.",
            "additionalProperties": true
          },
          "aspects": {
            "type": "array",
            "description": "The same answers with language-free keys.",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "response": {
            "type": "object",
            "description": "The owner's reply.",
            "additionalProperties": true
          },
          "language": {
            "type": "string",
            "description": "The review's language."
          },
          "visit_date": {
            "type": "object",
            "description": "When the author was there: `year`, `month`, `label`.",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Photo": {
        "type": "object",
        "description": "A photo.",
        "properties": {
          "photo_id": {
            "type": "string",
            "description": "The photo's ID."
          },
          "thumbnail": {
            "type": "string",
            "description": "The photo as Google Maps shows it."
          },
          "image": {
            "type": "string",
            "description": "The same photo at full size."
          },
          "width": {
            "type": "integer",
            "description": "Width in pixels."
          },
          "height": {
            "type": "integer",
            "description": "Height in pixels."
          },
          "gps_coordinates": {
            "$ref": "#/components/schemas/GpsCoordinates"
          },
          "date": {
            "type": "string",
            "description": "When it was taken or added, when known."
          },
          "source": {
            "type": "string",
            "description": "Who added it, when known."
          }
        },
        "additionalProperties": true
      },
      "SearchResponse": {
        "type": "object",
        "required": [
          "search_metadata",
          "search_parameters",
          "local_results"
        ],
        "properties": {
          "search_metadata": {
            "$ref": "#/components/schemas/SearchMetadata"
          },
          "search_parameters": {
            "$ref": "#/components/schemas/SearchParameters"
          },
          "search_information": {
            "type": "object",
            "description": "`query_displayed`: the query as Google Maps read it.",
            "additionalProperties": true
          },
          "local_results": {
            "type": "array",
            "description": "The places of the page; `[]` when the search finds nothing.",
            "items": {
              "$ref": "#/components/schemas/Place"
            }
          }
        }
      },
      "PlaceResponse": {
        "type": "object",
        "required": [
          "search_metadata",
          "search_parameters",
          "place_results"
        ],
        "properties": {
          "search_metadata": {
            "$ref": "#/components/schemas/SearchMetadata"
          },
          "search_parameters": {
            "$ref": "#/components/schemas/SearchParameters"
          },
          "place_results": {
            "$ref": "#/components/schemas/PlaceDetails"
          }
        }
      },
      "ReviewsResponse": {
        "type": "object",
        "required": [
          "search_metadata",
          "search_parameters",
          "reviews"
        ],
        "properties": {
          "search_metadata": {
            "$ref": "#/components/schemas/SearchMetadata"
          },
          "search_parameters": {
            "$ref": "#/components/schemas/SearchParameters"
          },
          "place_info": {
            "type": "object",
            "description": "First page only: `title`, `address`, `rating`, `reviews`, `type`.",
            "additionalProperties": true
          },
          "topics": {
            "type": "array",
            "description": "First page only: topics of the reviews (`keyword`, `mentions`, `id`).",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "reviews": {
            "type": "array",
            "description": "The reviews of the page.",
            "items": {
              "$ref": "#/components/schemas/Review"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        }
      },
      "PhotosResponse": {
        "type": "object",
        "required": [
          "search_metadata",
          "search_parameters",
          "photos"
        ],
        "properties": {
          "search_metadata": {
            "$ref": "#/components/schemas/SearchMetadata"
          },
          "search_parameters": {
            "$ref": "#/components/schemas/SearchParameters"
          },
          "categories": {
            "type": "array",
            "description": "First page only: the gallery's tabs (`title`, `id`).",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "photos": {
            "type": "array",
            "description": "The photos of the page.",
            "items": {
              "$ref": "#/components/schemas/Photo"
            }
          },
          "photos_reported": {
            "type": "integer",
            "description": "How many photos Google counts for the gallery; it may change from page to page."
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        }
      },
      "RegionRef": {
        "type": "object",
        "required": [
          "type",
          "id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "relation",
              "node"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^\\d+$"
          }
        },
        "description": "A region as a scan takes it."
      },
      "Region": {
        "type": "object",
        "required": [
          "type",
          "id",
          "name",
          "kind",
          "country_code",
          "has_children",
          "scannable"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "relation",
              "node"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^\\d+$"
          },
          "name": {
            "type": "string",
            "description": "The local name."
          },
          "name_en": {
            "type": "string",
            "description": "The English name, when it differs."
          },
          "kind": {
            "type": "string",
            "description": "`country`, `region`, `district` (areas); `city`, `town`, `municipality`, `borough`, `suburb`, `village`, `quarter`, `neighbourhood`, `hamlet` (points)."
          },
          "admin_level": {
            "type": "integer",
            "description": "The OSM admin level of an area."
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Two-letter code of its country."
          },
          "population": {
            "type": "integer",
            "description": "When known."
          },
          "has_children": {
            "type": "boolean",
            "description": "Regions lie inside it."
          },
          "scannable": {
            "type": "boolean",
            "description": "False for the rare region a scan refuses."
          },
          "path": {
            "type": "array",
            "description": "Where it lies, country first, itself left out.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "id",
                "name"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "relation",
                    "node"
                  ]
                },
                "id": {
                  "type": "string",
                  "pattern": "^\\d+$"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "RegionsPage": {
        "type": "object",
        "required": [
          "regions",
          "next_cursor"
        ],
        "properties": {
          "regions": {
            "type": "array",
            "description": "The regions.",
            "items": {
              "$ref": "#/components/schemas/Region"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ScanCreateBody": {
        "type": "object",
        "required": [
          "regions",
          "place_types"
        ],
        "description": "A field not listed here is refused (`invalid_parameter`, naming it).",
        "additionalProperties": false,
        "properties": {
          "regions": {
            "type": "array",
            "description": "The regions to scan whole.",
            "items": {
              "$ref": "#/components/schemas/RegionRef"
            }
          },
          "place_types": {
            "type": "array",
            "minItems": 1,
            "maxItems": 200,
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            },
            "description": "Google Maps categories in English (`Dentist`, `Coffee shop`) or your own words."
          },
          "language": {
            "type": "string",
            "default": "en",
            "description": "The language of the search, as `hl`."
          },
          "mode": {
            "type": "string",
            "enum": [
              "preview",
              "full"
            ],
            "default": "preview",
            "description": "`preview` (free) estimates; `full` scans and pays for the places."
          },
          "cost_limit": {
            "description": "Required with `mode: \"full\"`, not taken with a preview: the most the scan may spend, in credits, or `\"none\"`.",
            "oneOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              {
                "type": "string",
                "const": "none"
              }
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 120,
            "description": "Default: the place types and the regions."
          },
          "webhook_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "maxLength": 2048,
            "description": "A public `https://` address the scan's events are posted to."
          },
          "enrich": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EnrichChoice"
              },
              {
                "type": "null"
              }
            ],
            "description": "Enrich every place the full scan finds, as it finds it, under the same `cost_limit`: the types, each `true` or its options. Kept with the scan for its later full scans; null switches it off. `{}`, or types that are all `false`, is no enrichment."
          }
        }
      },
      "ScanStartBody": {
        "type": "object",
        "required": [
          "cost_limit"
        ],
        "description": "A field not listed here is refused (`invalid_parameter`, naming it).",
        "additionalProperties": false,
        "properties": {
          "cost_limit": {
            "description": "The most the full scan may spend, in credits, or `\"none\"` for no maximum.",
            "oneOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              {
                "type": "string",
                "const": "none"
              }
            ]
          },
          "enrich": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EnrichChoice"
              },
              {
                "type": "null"
              }
            ],
            "description": "As on create; left out, the scan keeps its own. A start that is refused leaves it as it was."
          }
        }
      },
      "ScanEstimate": {
        "type": "object",
        "description": "After a preview: the full scan's places, credits (at today's prices) and time.",
        "properties": {
          "places": {
            "type": "integer",
            "description": "Most likely number of places."
          },
          "places_low": {
            "type": "integer",
            "description": "Low end."
          },
          "places_high": {
            "type": "integer",
            "description": "High end."
          },
          "credits": {
            "type": "number",
            "description": "Most likely cost of the full scan, in credits."
          },
          "credits_low": {
            "type": "number",
            "description": "Low end."
          },
          "credits_high": {
            "type": "number",
            "description": "High end."
          },
          "duration_sec": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Seconds the full scan would most likely take (its enrichment included); null when not known."
          },
          "enrichment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EnrichEstimate"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the scan's `enrich` adds to these figures; null without `enrich`, or when the preview's sample of places could not be read (the credits are then the scan's alone)."
          }
        }
      },
      "ScanResult": {
        "type": "object",
        "description": "After a full scan: its places against the previous full result.",
        "properties": {
          "places": {
            "type": "integer",
            "description": "Places in the result."
          },
          "new": {
            "type": "integer",
            "description": "New since the previous full result (a first result: all)."
          },
          "changed": {
            "type": "integer",
            "description": "Changed since then."
          },
          "missing": {
            "type": "integer",
            "description": "In the previous result, not found now."
          },
          "credits_charged": {
            "type": "number",
            "description": "What the result cost in all, in credits: its full scan and every enrichment made on it."
          }
        }
      },
      "Scan": {
        "type": "object",
        "required": [
          "id",
          "name",
          "status",
          "stage",
          "regions",
          "place_types",
          "language",
          "progress",
          "links"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The scan's ID (also its project's in the app)."
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "previewing",
              "previewed",
              "queued",
              "running",
              "completed",
              "partial",
              "failed",
              "cancelled"
            ]
          },
          "stage": {
            "type": "string",
            "enum": [
              "preview",
              "full",
              "enrich"
            ],
            "description": "Which run the status is about: the preview, the full scan, or an enrichment of the result (`POST /v1/scans/{id}/enrich`)."
          },
          "regions": {
            "type": "array",
            "description": "Its regions.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "id",
                "name"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "relation",
                    "node"
                  ]
                },
                "id": {
                  "type": "string",
                  "pattern": "^\\d+$"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          },
          "place_types": {
            "type": "array",
            "description": "Its place types.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "type": "string"
          },
          "progress": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "The run in progress, 0 to 1 (an enrichment: the share of its results settled); 1 once it ended."
          },
          "estimate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScanEstimate"
              },
              {
                "type": "null"
              }
            ]
          },
          "result": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScanResult"
              },
              {
                "type": "null"
              }
            ]
          },
          "cost_limit": {
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "const": "none"
              },
              {
                "type": "null"
              }
            ],
            "description": "The limit of the run shown (a full scan's, or an enrichment's at `stage: enrich`), or null before a full scan."
          },
          "stop_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the run shown stopped early: `budget`, `user`, `error`, or null."
          },
          "error": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "A failed run's reason, in our words."
          },
          "webhook_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "enrich": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EnrichChoice"
              },
              {
                "type": "null"
              }
            ],
            "description": "The types its full scans enrich with, with the values in force (`contacts` with its `level`, `reviews` and `photos` with their `max_per_place`, the others `true`); null for none."
          },
          "enrichment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ScanEnrichment"
              },
              {
                "type": "null"
              }
            ],
            "description": "The enrichment of the run in progress, or of the latest run that enriched; null when no run enriched."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ended_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "links": {
            "type": "object",
            "required": [
              "self",
              "places",
              "app"
            ],
            "properties": {
              "self": {
                "type": "string",
                "format": "uri"
              },
              "places": {
                "type": "string",
                "format": "uri"
              },
              "app": {
                "type": "string",
                "format": "uri",
                "description": "The scan in the PlaceGrid app."
              }
            }
          }
        }
      },
      "ScansPage": {
        "type": "object",
        "required": [
          "scans",
          "next_cursor"
        ],
        "properties": {
          "scans": {
            "type": "array",
            "description": "Newest first.",
            "items": {
              "$ref": "#/components/schemas/Scan"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ScanPlace": {
        "type": "object",
        "description": "A place of a scan, in the field names of a Maps search place. A field with no value is left out.",
        "properties": {
          "position": {
            "type": "integer",
            "description": "From 1, running on across pages."
          },
          "title": {
            "type": "string",
            "description": "The place's name."
          },
          "place_id": {
            "type": "string",
            "description": "Place ID (`ChIJ…`)."
          },
          "data_id": {
            "type": "string",
            "description": "Data ID (`0x…:0x…`)."
          },
          "data_cid": {
            "type": "string",
            "description": "CID."
          },
          "gps_coordinates": {
            "$ref": "#/components/schemas/GpsCoordinates"
          },
          "address": {
            "type": "string",
            "description": "The address."
          },
          "address_components": {
            "type": "object",
            "description": "`city`, `country_code`.",
            "additionalProperties": true
          },
          "phone": {
            "type": "string",
            "description": "The phone as shown."
          },
          "phone_international": {
            "type": "string",
            "description": "The phone in international form."
          },
          "website": {
            "type": "string",
            "description": "The website."
          },
          "website_domain": {
            "type": "string",
            "description": "Its domain."
          },
          "rating": {
            "type": "number",
            "description": "Rating."
          },
          "reviews": {
            "type": "integer",
            "description": "Number of reviews."
          },
          "type": {
            "type": "string",
            "description": "The main category."
          },
          "types": {
            "type": "array",
            "description": "Every category.",
            "items": {
              "type": "string"
            }
          },
          "type_id": {
            "type": "string",
            "description": "When known."
          },
          "type_ids": {
            "type": "array",
            "description": "When known.",
            "items": {
              "type": "string"
            }
          },
          "price": {
            "type": "string",
            "description": "When known."
          },
          "thumbnail": {
            "type": "string",
            "description": "When known."
          },
          "business_status": {
            "type": "string",
            "enum": [
              "operational",
              "closed_temporarily",
              "closed_permanently"
            ]
          },
          "change": {
            "type": "string",
            "enum": [
              "new",
              "changed",
              "same"
            ],
            "description": "Against the scan's previous full result."
          },
          "changed_fields": {
            "type": "array",
            "description": "What changed: `title`, `address`, `phone`, `website`, `type`, `business_status`, `gps_coordinates`.",
            "items": {
              "type": "string"
            }
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When a scan of this project first found the place."
          },
          "enrichment": {
            "$ref": "#/components/schemas/PlaceEnrichment",
            "description": "With `include`: the place's latest result of each type asked for; absent when it has none."
          }
        },
        "additionalProperties": true
      },
      "ScanPlacesPage": {
        "type": "object",
        "required": [
          "scan_id",
          "places",
          "next_cursor",
          "total"
        ],
        "properties": {
          "scan_id": {
            "type": "string",
            "format": "uuid"
          },
          "places": {
            "type": "array",
            "description": "The places of the page.",
            "items": {
              "$ref": "#/components/schemas/ScanPlace"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "total": {
            "type": "integer",
            "description": "Places in the result (with `change`, of that kind)."
          }
        }
      },
      "WebhookEvent": {
        "type": "object",
        "required": [
          "id",
          "type",
          "created_at",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^evt_[a-z2-7]+$",
            "description": "The same on every retry: deduplicate by it."
          },
          "type": {
            "type": "string",
            "enum": [
              "scan.previewed",
              "scan.completed",
              "scan.failed",
              "scan.cancelled",
              "enrichment.completed",
              "enrichment.failed",
              "enrichment.cancelled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "required": [
              "scan"
            ],
            "properties": {
              "scan": {
                "$ref": "#/components/schemas/Scan"
              }
            }
          }
        }
      },
      "EnrichChoice": {
        "type": "object",
        "description": "The enrichment types, each `true` (its defaults), `false` (not run) or its options; a type left out is not run.",
        "properties": {
          "contacts": {
            "description": "Emails, social profiles and phones found on the place's website, each with the page it was found on. Charged only where an email or a social profile is found.",
            "oneOf": [
              {
                "type": "boolean",
                "description": "`true`: run it with its defaults; `false`: do not run it."
              },
              {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "js",
                      "ai",
                      "ai_social"
                    ],
                    "default": "standard",
                    "description": "How deep the website is read, cheapest first: `standard` (the pages as served), `js` (shown in a browser first), `ai` (read by AI, which picks the next pages), `ai_social` (also the business's social profiles). A result made at a level stands for the ones before it."
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "website": {
            "description": "A check of the place's website: whether it works and where it leads, HTTPS, what it is built with, ad pixels, analytics, booking systems.",
            "oneOf": [
              {
                "type": "boolean",
                "description": "`true`: run it with its defaults; `false`: do not run it."
              },
              {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            ]
          },
          "details": {
            "description": "The full Google Maps card: categories, description, opening hours, the menu or services, the owner's posts, the rating by stars, the amenities.",
            "oneOf": [
              {
                "type": "boolean",
                "description": "`true`: run it with its defaults; `false`: do not run it."
              },
              {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            ]
          },
          "reviews": {
            "description": "Google reviews, newest first, with the topics they mention.",
            "oneOf": [
              {
                "type": "boolean",
                "description": "`true`: run it with its defaults; `false`: do not run it."
              },
              {
                "type": "object",
                "properties": {
                  "max_per_place": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "default": 20,
                    "description": "Reviews collected per place, at most."
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "photos": {
            "description": "Google Maps photos and the gallery's tabs.",
            "oneOf": [
              {
                "type": "boolean",
                "description": "`true`: run it with its defaults; `false`: do not run it."
              },
              {
                "type": "object",
                "properties": {
                  "max_per_place": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100,
                    "default": 10,
                    "description": "Photos collected per place, at most."
                  }
                },
                "additionalProperties": false
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "EnrichRequest": {
        "type": "object",
        "required": [
          "types"
        ],
        "description": "Enrich the places of the scan's latest full result. A field not listed here is refused (`invalid_parameter`, naming it).",
        "additionalProperties": false,
        "properties": {
          "types": {
            "type": "object",
            "description": "The types to run, each `true`, `false` or its options (with `redo`). At least one that runs.",
            "properties": {
              "contacts": {
                "description": "Emails, social profiles and phones found on the place's website, each with the page it was found on. Charged only where an email or a social profile is found.",
                "oneOf": [
                  {
                    "type": "boolean",
                    "description": "`true`: run it with its defaults; `false`: do not run it."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "level": {
                        "type": "string",
                        "enum": [
                          "standard",
                          "js",
                          "ai",
                          "ai_social"
                        ],
                        "default": "standard",
                        "description": "How deep the website is read, cheapest first: `standard` (the pages as served), `js` (shown in a browser first), `ai` (read by AI, which picks the next pages), `ai_social` (also the business's social profiles). A result made at a level stands for the ones before it."
                      },
                      "redo": {
                        "type": "boolean",
                        "default": false,
                        "description": "`false`: a place that already has a result of this type fit to keep (at this level and cap or more) is left as it is, free. `true`: it is made again, and charged again."
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "website": {
                "description": "A check of the place's website: whether it works and where it leads, HTTPS, what it is built with, ad pixels, analytics, booking systems.",
                "oneOf": [
                  {
                    "type": "boolean",
                    "description": "`true`: run it with its defaults; `false`: do not run it."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "redo": {
                        "type": "boolean",
                        "default": false,
                        "description": "`false`: a place that already has a result of this type fit to keep (at this level and cap or more) is left as it is, free. `true`: it is made again, and charged again."
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "details": {
                "description": "The full Google Maps card: categories, description, opening hours, the menu or services, the owner's posts, the rating by stars, the amenities.",
                "oneOf": [
                  {
                    "type": "boolean",
                    "description": "`true`: run it with its defaults; `false`: do not run it."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "redo": {
                        "type": "boolean",
                        "default": false,
                        "description": "`false`: a place that already has a result of this type fit to keep (at this level and cap or more) is left as it is, free. `true`: it is made again, and charged again."
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "reviews": {
                "description": "Google reviews, newest first, with the topics they mention.",
                "oneOf": [
                  {
                    "type": "boolean",
                    "description": "`true`: run it with its defaults; `false`: do not run it."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "max_per_place": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 500,
                        "default": 20,
                        "description": "Reviews collected per place, at most."
                      },
                      "redo": {
                        "type": "boolean",
                        "default": false,
                        "description": "`false`: a place that already has a result of this type fit to keep (at this level and cap or more) is left as it is, free. `true`: it is made again, and charged again."
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              },
              "photos": {
                "description": "Google Maps photos and the gallery's tabs.",
                "oneOf": [
                  {
                    "type": "boolean",
                    "description": "`true`: run it with its defaults; `false`: do not run it."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "max_per_place": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100,
                        "default": 10,
                        "description": "Photos collected per place, at most."
                      },
                      "redo": {
                        "type": "boolean",
                        "default": false,
                        "description": "`false`: a place that already has a result of this type fit to keep (at this level and cap or more) is left as it is, free. `true`: it is made again, and charged again."
                      }
                    },
                    "additionalProperties": false
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "places": {
            "type": "object",
            "description": "Which places of the latest full result; default: all of them. With both `change` and `ids`, the places that match both.",
            "properties": {
              "change": {
                "type": "string",
                "enum": [
                  "all",
                  "new",
                  "changed",
                  "same"
                ],
                "default": "all",
                "description": "Against the previous full result."
              },
              "ids": {
                "type": "array",
                "minItems": 1,
                "maxItems": 5000,
                "items": {
                  "type": "string"
                },
                "description": "Only these places: their `data_id` or `place_id` as `/places` gives them."
              }
            },
            "additionalProperties": false
          },
          "cost_limit": {
            "description": "Required unless `dry_run`: the most the enrichment may spend, in credits, or `\"none\"` for no maximum.",
            "oneOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              {
                "type": "string",
                "const": "none"
              }
            ]
          },
          "dry_run": {
            "type": "boolean",
            "default": false,
            "description": "`true`: the quote only. Nothing starts, nothing is held or charged."
          }
        }
      },
      "EnrichQuote": {
        "type": "object",
        "description": "What `POST /v1/scans/{id}/enrich` would do, with `dry_run: true`.",
        "required": [
          "scan_id",
          "places",
          "places_enriched",
          "types",
          "credits",
          "duration_sec",
          "nothing_to_do",
          "busy"
        ],
        "properties": {
          "scan_id": {
            "type": "string",
            "format": "uuid"
          },
          "places": {
            "type": "integer",
            "description": "Places picked by `places`."
          },
          "places_enriched": {
            "type": "integer",
            "description": "Of them, places some type would enrich."
          },
          "types": {
            "type": "array",
            "description": "Per type.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "level",
                "max_per_place",
                "redo",
                "places_applicable",
                "places_kept",
                "places",
                "credits"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "contacts",
                    "website",
                    "details",
                    "reviews",
                    "photos"
                  ]
                },
                "level": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "standard",
                    "js",
                    "ai",
                    "ai_social",
                    null
                  ],
                  "description": "The contacts level; null for the other types."
                },
                "max_per_place": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Reviews or photos per place; null for the other types."
                },
                "redo": {
                  "type": "boolean"
                },
                "places_applicable": {
                  "type": "integer",
                  "description": "Places it applies to: with a website (contacts, website), with reviews, with photos, or all (details)."
                },
                "places_kept": {
                  "type": "integer",
                  "description": "Of them, those with a result fit to keep, left as they are (`redo: false`)."
                },
                "places": {
                  "type": "integer",
                  "description": "Places it would enrich."
                },
                "credits": {
                  "type": "number",
                  "description": "Its credits; for contacts the most it can cost."
                }
              }
            }
          },
          "credits": {
            "type": "number",
            "description": "The total, at today's prices; for contacts the most it can cost."
          },
          "duration_sec": {
            "type": [
              "integer",
              "null"
            ],
            "description": "About how long it would take; null when not known, 0 with nothing to do."
          },
          "nothing_to_do": {
            "type": "boolean",
            "description": "`true`: a start would be refused (`nothing_to_enrich`)."
          },
          "busy": {
            "type": "boolean",
            "description": "`true`: the scan has a run in progress, so a start now would be refused (`scan_busy`); the quote itself stands."
          }
        }
      },
      "EnrichEstimate": {
        "type": "object",
        "description": "What a scan's `enrich` adds to a preview's estimate (also counted in its credits).",
        "required": [
          "credits",
          "credits_low",
          "credits_high",
          "types"
        ],
        "properties": {
          "credits": {
            "type": "number",
            "description": "Most likely cost of the enrichment, in credits."
          },
          "credits_low": {
            "type": "number",
            "description": "Low end."
          },
          "credits_high": {
            "type": "number",
            "description": "High end."
          },
          "types": {
            "type": "array",
            "description": "Per type.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "level",
                "places",
                "credits"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "contacts",
                    "website",
                    "details",
                    "reviews",
                    "photos"
                  ]
                },
                "level": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "standard",
                    "js",
                    "ai",
                    "ai_social",
                    null
                  ],
                  "description": "The contacts level; null for the other types."
                },
                "places": {
                  "type": "integer",
                  "description": "Places it would enrich."
                },
                "credits": {
                  "type": "number",
                  "description": "Its credits; for contacts the most it can cost."
                }
              }
            }
          }
        }
      },
      "ScanEnrichment": {
        "type": "object",
        "description": "The enrichment of a scan's run in progress, or of its latest run that enriched.",
        "required": [
          "stage",
          "types",
          "credits_charged"
        ],
        "properties": {
          "stage": {
            "type": "string",
            "enum": [
              "full",
              "enrich"
            ],
            "description": "The run: a full scan with `enrich`, or an enrichment of the result."
          },
          "types": {
            "type": "array",
            "description": "Per type.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "level",
                "max_per_place",
                "places",
                "done",
                "empty",
                "source_failed",
                "failed",
                "skipped",
                "pending",
                "reused",
                "credits_charged"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "contacts",
                    "website",
                    "details",
                    "reviews",
                    "photos"
                  ]
                },
                "level": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "standard",
                    "js",
                    "ai",
                    "ai_social",
                    null
                  ],
                  "description": "The contacts level; null for the other types."
                },
                "max_per_place": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Reviews or photos per place; null for the other types."
                },
                "places": {
                  "type": "integer",
                  "description": "Places queued for it so far: the sum of `done`, `empty`, `source_failed`, `failed`, `skipped` and `pending`."
                },
                "done": {
                  "type": "integer",
                  "description": "Results with something found."
                },
                "empty": {
                  "type": "integer",
                  "description": "Nothing found."
                },
                "source_failed": {
                  "type": "integer",
                  "description": "The place's own source failed: its website does not work, or Google Maps no longer lists it."
                },
                "failed": {
                  "type": "integer",
                  "description": "Failed on our side: not charged, tried again by the next enrichment."
                },
                "skipped": {
                  "type": "integer",
                  "description": "Left without a result because the run stopped first (its cost limit, the balance, a cancel): not charged."
                },
                "pending": {
                  "type": "integer",
                  "description": "Still to do."
                },
                "reused": {
                  "type": "integer",
                  "description": "Results kept from before: not made again, not charged."
                },
                "credits_charged": {
                  "type": "number",
                  "description": "Charged for this type so far."
                }
              }
            }
          },
          "credits_charged": {
            "type": "number",
            "description": "Charged for all of them so far."
          }
        }
      },
      "EnrichReason": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "description": "Why a result is `failed` or `skipped`, in our words. Nothing is charged for any of them.",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "website_does_not_exist",
              "website_page_not_found",
              "website_unreachable",
              "website_refused",
              "website_not_rendered",
              "website_parked",
              "website_elsewhere",
              "website_not_a_page",
              "website_not_public",
              "place_not_listed",
              "stopped_by_cost_limit",
              "stopped",
              "failed"
            ]
          },
          "message": {
            "type": "string",
            "description": "The reason in English."
          }
        },
        "x-place-own": [
          "website_does_not_exist",
          "website_page_not_found",
          "website_unreachable",
          "website_refused",
          "website_not_rendered",
          "website_parked",
          "website_elsewhere",
          "website_not_a_page",
          "website_not_public",
          "place_not_listed"
        ]
      },
      "PlaceEnrichment": {
        "type": "object",
        "description": "The results asked for by `include`: each type's latest result; a type the place has no result of is left out.",
        "properties": {
          "contacts": {
            "description": "The place's latest `contacts` result, by `status`.",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "done",
                      "empty"
                    ],
                    "description": "`done`: something was found; `empty`: nothing was found."
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "data": {
                    "$ref": "#/components/schemas/ContactsData",
                    "description": "`done`: what was found. `empty`: only when something was found all the same."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status",
                  "reason"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "failed"
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "website_leads_to": {
                        "type": "object",
                        "required": [
                          "kind"
                        ],
                        "description": "The website is not simply the business's own site: what it is, and the `url` it led to when another site.",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "moved",
                              "linkpage",
                              "social",
                              "booking",
                              "messenger",
                              "maps",
                              "directory",
                              "parked",
                              "elsewhere"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "skipped",
                      "pending"
                    ],
                    "description": "`skipped`: left when the run stopped (with `reason`); `pending`: still to do, or being done."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              }
            ]
          },
          "website": {
            "description": "The place's latest `website` result, by `status`.",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "done",
                      "empty"
                    ],
                    "description": "`done`: something was found; `empty`: nothing was found."
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "data": {
                    "$ref": "#/components/schemas/WebsiteData",
                    "description": "`done`: what was found. `empty`: only when something was found all the same."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status",
                  "reason"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "failed"
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "leads_to": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "skipped",
                      "pending"
                    ],
                    "description": "`skipped`: left when the run stopped (with `reason`); `pending`: still to do, or being done."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              }
            ]
          },
          "details": {
            "description": "The place's latest `details` result, by `status`.",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "done",
                      "empty"
                    ],
                    "description": "`done`: something was found; `empty`: nothing was found."
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "data": {
                    "$ref": "#/components/schemas/DetailsData",
                    "description": "`done`: what was found. `empty`: only when something was found all the same."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status",
                  "reason"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "failed"
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "skipped",
                      "pending"
                    ],
                    "description": "`skipped`: left when the run stopped (with `reason`); `pending`: still to do, or being done."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              }
            ]
          },
          "reviews": {
            "description": "The place's latest `reviews` result, by `status`.",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "done",
                      "empty"
                    ],
                    "description": "`done`: something was found; `empty`: nothing was found."
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "data": {
                    "$ref": "#/components/schemas/ReviewsData",
                    "description": "`done`: what was found. `empty`: only when something was found all the same."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status",
                  "reason"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "failed"
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "skipped",
                      "pending"
                    ],
                    "description": "`skipped`: left when the run stopped (with `reason`); `pending`: still to do, or being done."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              }
            ]
          },
          "photos": {
            "description": "The place's latest `photos` result, by `status`.",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "done",
                      "empty"
                    ],
                    "description": "`done`: something was found; `empty`: nothing was found."
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "data": {
                    "$ref": "#/components/schemas/PhotosData",
                    "description": "`done`: what was found. `empty`: only when something was found all the same."
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status",
                  "reason"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "failed"
                  },
                  "enriched_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "When it was made."
                  },
                  "credits_charged": {
                    "type": "number",
                    "description": "What it was charged, in credits; absent when nothing."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "skipped",
                      "pending"
                    ],
                    "description": "`skipped`: left when the run stopped (with `reason`); `pending`: still to do, or being done."
                  },
                  "reason": {
                    "$ref": "#/components/schemas/EnrichReason"
                  }
                }
              }
            ]
          }
        }
      },
      "ContactsData": {
        "type": "object",
        "required": [
          "level",
          "emails",
          "phones",
          "social_profiles"
        ],
        "properties": {
          "level": {
            "type": "string",
            "enum": [
              "standard",
              "js",
              "ai",
              "ai_social"
            ]
          },
          "emails": {
            "type": "array",
            "description": "The emails found.",
            "items": {
              "type": "object",
              "required": [
                "email",
                "type"
              ],
              "properties": {
                "email": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "general",
                    "person",
                    "department",
                    "branch",
                    "other"
                  ],
                  "description": "Told from the address only where that is reliable; `other` otherwise."
                },
                "department": {
                  "type": "string",
                  "enum": [
                    "orders",
                    "sales",
                    "service",
                    "events",
                    "management",
                    "finance",
                    "jobs",
                    "marketing",
                    "legal"
                  ],
                  "description": "With `type: department`: which department."
                },
                "found_on": {
                  "type": "string",
                  "description": "The page the email was found on."
                },
                "found_via": {
                  "type": "string",
                  "enum": [
                    "link",
                    "text",
                    "obfuscated",
                    "markup",
                    "ai",
                    "website"
                  ],
                  "description": "How it was found: a link, the page's text, written against harvesters, the page's structured data, read by AI, or the website on Google Maps is itself this page."
                }
              }
            }
          },
          "phones": {
            "type": "array",
            "description": "Phones the website lists (Google's own number is the place's `phone`).",
            "items": {
              "type": "object",
              "required": [
                "phone"
              ],
              "properties": {
                "phone": {
                  "type": "string"
                },
                "found_on": {
                  "type": "string",
                  "description": "The page the phone was found on."
                },
                "found_via": {
                  "type": "string",
                  "enum": [
                    "link",
                    "text",
                    "obfuscated",
                    "markup",
                    "ai",
                    "website"
                  ],
                  "description": "How it was found: a link, the page's text, written against harvesters, the page's structured data, read by AI, or the website on Google Maps is itself this page."
                }
              }
            }
          },
          "social_profiles": {
            "type": "array",
            "description": "Social profiles.",
            "items": {
              "type": "object",
              "required": [
                "network",
                "url"
              ],
              "properties": {
                "network": {
                  "type": "string",
                  "description": "`facebook`, `instagram`, `linkedin`, `x`, `youtube`, `tiktok`, `pinterest`…"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "found_on": {
                  "type": "string",
                  "description": "The page the profile was found on."
                },
                "found_via": {
                  "type": "string",
                  "enum": [
                    "link",
                    "text",
                    "obfuscated",
                    "markup",
                    "ai",
                    "website"
                  ],
                  "description": "How it was found: a link, the page's text, written against harvesters, the page's structured data, read by AI, or the website on Google Maps is itself this page."
                }
              }
            }
          },
          "booking_url": {
            "type": "string",
            "format": "uri",
            "description": "A booking link found."
          },
          "website_leads_to": {
            "type": "object",
            "required": [
              "kind"
            ],
            "description": "The website is not simply the business's own site: what it is, and the `url` it led to when another site.",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "moved",
                  "linkpage",
                  "social",
                  "booking",
                  "messenger",
                  "maps",
                  "directory",
                  "parked",
                  "elsewhere"
                ]
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "WebsiteData": {
        "type": "object",
        "required": [
          "state"
        ],
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "ok",
              "moved",
              "blocked",
              "error",
              "down",
              "gone",
              "parked",
              "elsewhere",
              "platform",
              "invalid"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The address checked."
          },
          "leads_to": {
            "type": "string",
            "format": "uri",
            "description": "Where it led, when another site."
          },
          "platform": {
            "type": "string",
            "enum": [
              "social",
              "booking",
              "messenger",
              "maps",
              "directory",
              "linkpage"
            ],
            "description": "`state: platform`: whose page it is."
          },
          "error": {
            "type": "string",
            "enum": [
              "no_page",
              "server_error",
              "not_a_page",
              "not_rendered",
              "blank"
            ],
            "description": "`state: error`: which."
          },
          "http_status": {
            "type": "integer",
            "description": "The HTTP status its page answered with."
          },
          "https": {
            "type": "object",
            "required": [
              "state"
            ],
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "valid",
                  "incomplete_chain",
                  "expired",
                  "not_yet_valid",
                  "wrong_name",
                  "self_signed",
                  "untrusted",
                  "none"
                ]
              },
              "issuer": {
                "type": "string"
              },
              "valid_until": {
                "type": "string",
                "format": "date-time"
              },
              "protocol": {
                "type": "string"
              },
              "redirects_to_https": {
                "type": "boolean",
                "description": "Its `http://` address leads to `https://`."
              }
            }
          },
          "cms": {
            "type": "string",
            "description": "What the site is built with."
          },
          "cms_version": {
            "type": "string",
            "description": "Its version, when the site says it."
          },
          "ad_pixels": {
            "type": "array",
            "description": "Ad pixels, as codes; a list only when a page of the site was read.",
            "items": {
              "type": "string",
              "enum": [
                "meta",
                "google_ads",
                "tiktok",
                "linkedin",
                "pinterest",
                "snapchat",
                "microsoft",
                "x",
                "reddit"
              ]
            }
          },
          "analytics": {
            "type": "array",
            "description": "Analytics and tag managers, as codes; a list only when a page of the site was read.",
            "items": {
              "type": "string",
              "enum": [
                "google_analytics",
                "google_tag_manager",
                "yandex_metrica",
                "hotjar",
                "clarity",
                "matomo"
              ]
            }
          },
          "booking_systems": {
            "type": "array",
            "description": "Booking systems the site uses, by name; a list only when a page of the site was read.",
            "items": {
              "type": "string"
            }
          },
          "booking_url": {
            "type": "string",
            "format": "uri",
            "description": "The place's own page on one of them."
          }
        }
      },
      "DetailsData": {
        "type": "object",
        "properties": {
          "primary_category": {
            "type": "string",
            "description": "The main category, in the scan's language."
          },
          "categories": {
            "type": "array",
            "description": "Every category.",
            "items": {
              "type": "string"
            }
          },
          "description": {
            "type": "string",
            "description": "The card's description."
          },
          "hours": {
            "type": "array",
            "description": "Opening hours per day.",
            "items": {
              "type": "object",
              "required": [
                "day",
                "hours"
              ],
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "monday",
                    "tuesday",
                    "wednesday",
                    "thursday",
                    "friday",
                    "saturday",
                    "sunday"
                  ]
                },
                "hours": {
                  "type": "string"
                }
              }
            }
          },
          "menu": {
            "type": "array",
            "description": "The menu, services or products, by section (at most 500 items).",
            "items": {
              "type": "object",
              "required": [
                "items"
              ],
              "properties": {
                "section": {
                  "type": "string"
                },
                "items": {
                  "type": "array",
                  "description": "Its items.",
                  "items": {
                    "$ref": "#/components/schemas/MenuItem"
                  }
                }
              }
            }
          },
          "menu_items": {
            "type": "integer",
            "description": "Items the card lists."
          },
          "menu_priced": {
            "type": "boolean",
            "description": "One of them has a price."
          },
          "owner_posts": {
            "type": "array",
            "description": "Up to 10 of the owner's posts, newest first.",
            "items": {
              "$ref": "#/components/schemas/OwnerPost"
            }
          },
          "last_post_at": {
            "type": "string",
            "description": "When the owner last posted."
          },
          "rating_histogram": {
            "type": "object",
            "description": "Reviews per star: `{ \"1\": n, … \"5\": n }`.",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "popular_times": {
            "type": "boolean",
            "description": "The card shows popular times."
          },
          "booking_url": {
            "type": "string",
            "format": "uri",
            "description": "Where to book."
          },
          "order_url": {
            "type": "string",
            "format": "uri",
            "description": "Where to order online."
          },
          "claimed": {
            "type": "boolean",
            "description": "`false`: Google marks the listing as not claimed by its owner. Google marks only unclaimed listings, so `true` does not come today."
          },
          "owner_name": {
            "type": "string",
            "description": "The owner's name as the card shows it."
          },
          "photos_total": {
            "type": "integer",
            "description": "How many photos the place has on Google (it drifts)."
          },
          "attributes": {
            "type": "array",
            "description": "What the card says the place has or offers, as Google words it in the scan's language: only what it marks as present, at most 60.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "MenuItem": {
        "type": "object",
        "description": "An item of the card's menu or services.",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "duration": {
            "type": "string"
          },
          "booking_url": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": true
      },
      "OwnerPost": {
        "type": "object",
        "description": "One of the owner's posts.",
        "properties": {
          "title": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "date_text": {
            "type": "string",
            "description": "As Google shows it, when no date is given."
          },
          "button_label": {
            "type": "string"
          },
          "button_url": {
            "type": "string",
            "format": "uri"
          },
          "image_url": {
            "type": "string",
            "format": "uri"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": true
      },
      "ReviewsData": {
        "type": "object",
        "required": [
          "collected",
          "reviews"
        ],
        "properties": {
          "collected": {
            "type": "integer",
            "description": "Reviews collected, up to `max_per_place`."
          },
          "average_rating": {
            "type": "number",
            "description": "Their average rating."
          },
          "first_review_at": {
            "type": "string",
            "description": "The oldest of them."
          },
          "last_review_at": {
            "type": "string",
            "description": "The newest of them."
          },
          "reviews_per_month": {
            "type": "number",
            "description": "How many a month they come at."
          },
          "reply_rate": {
            "type": "number",
            "description": "The share of them the owner answered, 0 to 1."
          },
          "topics": {
            "type": "array",
            "description": "What the reviews mention, as Google lists it.",
            "items": {
              "type": "object",
              "required": [
                "keyword"
              ],
              "properties": {
                "keyword": {
                  "type": "string"
                },
                "mentions": {
                  "type": "integer"
                }
              }
            }
          },
          "reviews": {
            "type": "array",
            "description": "Newest first.",
            "items": {
              "$ref": "#/components/schemas/EnrichedReview"
            }
          }
        }
      },
      "EnrichedReview": {
        "type": "object",
        "description": "A review collected.",
        "properties": {
          "review_id": {
            "type": "string"
          },
          "rating": {
            "type": "number"
          },
          "date": {
            "type": "string",
            "format": "date-time",
            "description": "When Google gives a date."
          },
          "date_text": {
            "type": "string",
            "description": "As Google shows it, when no date is given."
          },
          "text": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "author_reviews": {
            "type": "integer"
          },
          "local_guide": {
            "type": "boolean"
          },
          "likes": {
            "type": "integer"
          },
          "language": {
            "type": "string"
          },
          "owner_reply": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": true
      },
      "PhotosData": {
        "type": "object",
        "required": [
          "collected",
          "photos"
        ],
        "properties": {
          "collected": {
            "type": "integer",
            "description": "Photos collected, up to `max_per_place`."
          },
          "total_reported": {
            "type": "integer",
            "description": "Google's count of the gallery (it drifts)."
          },
          "categories": {
            "type": "array",
            "description": "The gallery's tabs as Google names them.",
            "items": {
              "type": "string"
            }
          },
          "photos": {
            "type": "array",
            "description": "The photos.",
            "items": {
              "$ref": "#/components/schemas/EnrichedPhoto"
            }
          }
        }
      },
      "EnrichedPhoto": {
        "type": "object",
        "description": "A photo collected.",
        "properties": {
          "photo_id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "thumbnail": {
            "type": "string",
            "format": "uri"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "date": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "Account": {
        "type": "object",
        "description": "What the key in use (or connected app) may spend now, and at what price.",
        "required": [
          "unlimited",
          "credits_available",
          "credits_held",
          "debt",
          "paid_by",
          "caller",
          "account_limits",
          "monthly_limit",
          "prices",
          "discount"
        ],
        "properties": {
          "unlimited": {
            "type": "boolean",
            "description": "An unlimited plan: the balance limits neither calls nor scans, while spending limits and a scan's `cost_limit` still apply. A member of an organization is never unlimited."
          },
          "credits_available": {
            "type": "number",
            "description": "Credits this key or connected app may spend now: the balance less what runs in progress hold and what Maps calls charged in the last few seconds (a member: what the organization allows), and no more than the key's daily and monthly limits and the account's monthly limit leave. Rounded down to two decimals."
          },
          "credits_held": {
            "type": "number",
            "description": "Held by scans and enrichments in progress."
          },
          "debt": {
            "type": "number",
            "description": "Credits owed: the balance below zero (a Maps call that cost more than was left, or a payment returned after its credits were spent); calls that cost credits are refused while it is above 0, and the next purchase pays it first. Rounded up to two decimals."
          },
          "paid_by": {
            "type": "string",
            "enum": [
              "account",
              "organization"
            ],
            "description": "`organization`: the account is a member whose work the organization pays for."
          },
          "caller": {
            "type": "object",
            "required": [
              "id_prefix",
              "name",
              "kind",
              "limits",
              "spent_today",
              "spent_this_month"
            ],
            "description": "The key or connected app in use.",
            "properties": {
              "id_prefix": {
                "type": "string",
                "description": "Enough of its ID to recognise it."
              },
              "name": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "api_key",
                  "connected_app"
                ]
              },
              "limits": {
                "type": "object",
                "required": [
                  "requests_per_minute",
                  "concurrent_requests",
                  "daily_credits",
                  "monthly_credits"
                ],
                "properties": {
                  "requests_per_minute": {
                    "type": "integer"
                  },
                  "concurrent_requests": {
                    "type": "integer"
                  },
                  "daily_credits": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Credits a UTC day; null: no limit of its own."
                  },
                  "monthly_credits": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Credits a UTC month; null: no limit of its own."
                  }
                }
              },
              "spent_today": {
                "type": "number",
                "description": "Spent this UTC day, credits held by its runs and the last few seconds of Maps calls included."
              },
              "spent_this_month": {
                "type": "number",
                "description": "Spent this UTC month, credits held by its runs and the last few seconds of Maps calls included."
              }
            }
          },
          "account_limits": {
            "type": "object",
            "required": [
              "requests_per_minute",
              "concurrent_requests"
            ],
            "description": "What all of the account's keys and connected apps may do together, over each one's own limits; 0: no such limit.",
            "properties": {
              "requests_per_minute": {
                "type": "integer",
                "description": "Requests a minute, all keys and connected apps together."
              },
              "concurrent_requests": {
                "type": "integer",
                "description": "Calls in progress at once, all keys and connected apps together."
              }
            }
          },
          "monthly_limit": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "credits",
                  "spent",
                  "resets_at"
                ],
                "properties": {
                  "credits": {
                    "type": "number"
                  },
                  "spent": {
                    "type": "number"
                  },
                  "resets_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The account's own monthly limit (`spent`: this UTC month, the last few seconds of Maps calls included); null when none is set."
          },
          "prices": {
            "type": "object",
            "required": [
              "maps",
              "scan_place",
              "enrich"
            ],
            "description": "Prices now, in credits, with any running discount.",
            "properties": {
              "maps": {
                "type": "array",
                "description": "Each Maps endpoint, per call.",
                "items": {
                  "type": "object",
                  "required": [
                    "endpoint",
                    "path",
                    "per",
                    "credits"
                  ],
                  "properties": {
                    "endpoint": {
                      "type": "string",
                      "enum": [
                        "maps.search",
                        "maps.place",
                        "maps.reviews",
                        "maps.photos"
                      ]
                    },
                    "path": {
                      "type": "string"
                    },
                    "per": {
                      "type": "string"
                    },
                    "credits": {
                      "type": "number"
                    },
                    "live_credits": {
                      "type": "number",
                      "description": "`maps.place` only: a call with `cache=false` (read live now)."
                    },
                    "empty_first_page_credits": {
                      "type": "number",
                      "description": "`maps.reviews` and `maps.photos` only: a first page with nothing on it."
                    }
                  }
                }
              },
              "scan_place": {
                "type": "number",
                "description": "A place a full scan finds."
              },
              "enrich": {
                "type": "array",
                "description": "Each enrichment type and contacts level.",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "per",
                    "credits"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "contacts",
                        "website",
                        "details",
                        "reviews",
                        "photos"
                      ]
                    },
                    "level": {
                      "type": "string",
                      "enum": [
                        "standard",
                        "js",
                        "ai",
                        "ai_social"
                      ]
                    },
                    "per": {
                      "type": "string",
                      "enum": [
                        "place",
                        "review",
                        "photo"
                      ]
                    },
                    "credits": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "discount": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "percent",
                  "ends_at"
                ],
                "properties": {
                  "percent": {
                    "type": "number"
                  },
                  "ends_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "A discount running now; null when none runs."
          }
        }
      }
    },
    "examples": {
      "error_missing_api_key": {
        "summary": "missing_api_key (401)",
        "value": {
          "error": "missing_api_key",
          "message": "No API key was sent. Send your key in the `Authorization: Bearer <key>` header. Keys are created in the API tab of the app.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-missing-api-key"
        }
      },
      "error_invalid_api_key": {
        "summary": "invalid_api_key (401)",
        "value": {
          "error": "invalid_api_key",
          "message": "The API key is not valid. Check that it was copied whole, or create a new key in the API tab of the app.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-api-key"
        }
      },
      "error_api_key_disabled": {
        "summary": "api_key_disabled (403)",
        "value": {
          "error": "api_key_disabled",
          "message": "This API key is switched off. Switch it on, or use another key, in the API tab of the app.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-api-key-disabled"
        }
      },
      "error_account_inactive": {
        "summary": "account_inactive (403)",
        "value": {
          "error": "account_inactive",
          "message": "The account is not ready to use the API: the e-mail address is not confirmed yet.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-account-inactive"
        }
      },
      "error_api_not_enabled": {
        "summary": "api_not_enabled (403)",
        "value": {
          "error": "api_not_enabled",
          "message": "The API is not available for this account yet.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-api-not-enabled"
        }
      },
      "error_missing_parameter": {
        "summary": "missing_parameter (400)",
        "value": {
          "error": "missing_parameter",
          "message": "The `q` parameter is required. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-missing-parameter",
          "param": "q"
        }
      },
      "error_invalid_parameter": {
        "summary": "invalid_parameter (400)",
        "value": {
          "error": "invalid_parameter",
          "message": "The `start` parameter is not valid: a multiple of 20 from 0 to 500. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-parameter",
          "param": "start"
        }
      },
      "error_conflicting_parameters": {
        "summary": "conflicting_parameters (400)",
        "value": {
          "error": "conflicting_parameters",
          "message": "Pass either `ll` or `lat` and `lng`, not both. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-conflicting-parameters"
        }
      },
      "error_invalid_page_token": {
        "summary": "invalid_page_token (400)",
        "value": {
          "error": "invalid_page_token",
          "message": "The `next_page_token` does not belong to this request: pass the token of the previous page unchanged, with the same place and order. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-page-token"
        }
      },
      "error_link_not_a_place": {
        "summary": "link_not_a_place (400)",
        "value": {
          "error": "link_not_a_place",
          "message": "The link or text names a point on the map, not a place. Pass a link to the place itself, its ID, or its name with the address. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-link-not-a-place"
        }
      },
      "error_short_link_dead": {
        "summary": "short_link_dead (400)",
        "value": {
          "error": "short_link_dead",
          "message": "The short link leads nowhere: it was removed or never existed. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-short-link-dead"
        }
      },
      "error_place_not_found": {
        "summary": "place_not_found (404)",
        "value": {
          "error": "place_not_found",
          "message": "No single place matches the request. Several places match the name: ask again with the `data_id` of the one you mean. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-place-not-found",
          "candidates": [
            {
              "title": "Café des Exemples",
              "address": "12 Rue de l'Exemple, 75004 Paris",
              "data_id": "0x47e66e1f00000001:0x1a2b3c4d5e6f7081"
            },
            {
              "title": "Café des Exemples",
              "address": "3 Place de l'Exemple, 69002 Lyon",
              "data_id": "0x47f4ea5100000002:0x2b3c4d5e6f708192"
            }
          ]
        }
      },
      "error_not_found": {
        "summary": "not_found (404)",
        "value": {
          "error": "not_found",
          "message": "There is no such endpoint. See the API reference for the list of endpoints.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-not-found"
        }
      },
      "error_method_not_allowed": {
        "summary": "method_not_allowed (405)",
        "value": {
          "error": "method_not_allowed",
          "message": "This endpoint does not accept POST requests.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-method-not-allowed"
        }
      },
      "error_insufficient_credits": {
        "summary": "insufficient_credits (402)",
        "value": {
          "error": "insufficient_credits",
          "message": "Not enough credits: this needs 3 credits and 1 are available. Buy credits in the app, then try again. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-insufficient-credits"
        }
      },
      "error_account_in_debt": {
        "summary": "account_in_debt (402)",
        "value": {
          "error": "account_in_debt",
          "message": "The balance is below zero: the account owes 120 credits. Calls resume once a purchase pays the debt. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-account-in-debt"
        }
      },
      "error_spend_limit_reached": {
        "summary": "spend_limit_reached (402)",
        "value": {
          "error": "spend_limit_reached",
          "message": "This does not fit in the key's daily spending limit. Raise it in the app, or wait until it resets at 2026-11-12T00:00:00Z. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-spend-limit-reached",
          "limit": "key_daily"
        }
      },
      "error_organization_credits_not_allowed": {
        "summary": "organization_credits_not_allowed (402)",
        "value": {
          "error": "organization_credits_not_allowed",
          "message": "Your organization does not let you spend its credits. Ask its owner to allow it. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-credits-not-allowed"
        }
      },
      "error_organization_member_limit_reached": {
        "summary": "organization_member_limit_reached (402)",
        "value": {
          "error": "organization_member_limit_reached",
          "message": "You have used your monthly credit limit set by your organization. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-member-limit-reached"
        }
      },
      "error_organization_balance_exhausted": {
        "summary": "organization_balance_exhausted (402)",
        "value": {
          "error": "organization_balance_exhausted",
          "message": "Your organization has no credits left for this call. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-balance-exhausted"
        }
      },
      "error_organization_in_debt": {
        "summary": "organization_in_debt (402)",
        "value": {
          "error": "organization_in_debt",
          "message": "Your organization's balance is below zero. Calls resume once a purchase pays the debt. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-in-debt"
        }
      },
      "error_rate_limited": {
        "summary": "rate_limited (429)",
        "value": {
          "error": "rate_limited",
          "message": "Too many requests: this key may make 300 requests a minute. Retry in 12 s. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-rate-limited",
          "retry_after": 12,
          "limit": "key"
        }
      },
      "error_too_many_concurrent_requests": {
        "summary": "too_many_concurrent_requests (429)",
        "value": {
          "error": "too_many_concurrent_requests",
          "message": "Too many requests at once: this key may have 10 in progress. Wait for one to finish. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-too-many-concurrent-requests",
          "limit": "key"
        }
      },
      "error_capacity_busy": {
        "summary": "capacity_busy (503)",
        "value": {
          "error": "capacity_busy",
          "message": "All capacity is in use right now. Retry in 5 s. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-capacity-busy",
          "retry_after": 5
        }
      },
      "error_temporarily_unavailable": {
        "summary": "temporarily_unavailable (503)",
        "value": {
          "error": "temporarily_unavailable",
          "message": "Reviews of this place cannot be read at the moment. Retry in a few seconds. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-temporarily-unavailable"
        }
      },
      "error_reviews_not_available": {
        "summary": "reviews_not_available (404)",
        "value": {
          "error": "reviews_not_available",
          "message": "This place has no Google reviews to read: its reviews come from a partner site. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-reviews-not-available"
        }
      },
      "error_invalid_json": {
        "summary": "invalid_json (400)",
        "value": {
          "error": "invalid_json",
          "message": "The request body is not valid JSON: there is a syntax error at character 42. Send a JSON object with `Content-Type: application/json`. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-json"
        }
      },
      "error_unsupported_media_type": {
        "summary": "unsupported_media_type (415)",
        "value": {
          "error": "unsupported_media_type",
          "message": "Send the request body as JSON with `Content-Type: application/json`. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-unsupported-media-type"
        }
      },
      "error_region_not_found": {
        "summary": "region_not_found (404)",
        "value": {
          "error": "region_not_found",
          "message": "There is no region relation/4850499. Find regions with `/v1/regions/search`. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-region-not-found",
          "param": "regions"
        }
      },
      "error_region_not_scannable": {
        "summary": "region_not_scannable (400)",
        "value": {
          "error": "region_not_scannable",
          "message": "The region relation/1234567 cannot be scanned on its own: it has no boundary to scan. Pick a region above or below it. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-region-not-scannable",
          "param": "regions"
        }
      },
      "error_regions_mixed_countries": {
        "summary": "regions_mixed_countries (400)",
        "value": {
          "error": "regions_mixed_countries",
          "message": "These regions cannot be scanned together. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-regions-mixed-countries",
          "param": "regions"
        }
      },
      "error_too_many_regions": {
        "summary": "too_many_regions (400)",
        "value": {
          "error": "too_many_regions",
          "message": "A scan takes at most 20000 regions. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-too-many-regions",
          "param": "regions"
        }
      },
      "error_scan_not_found": {
        "summary": "scan_not_found (404)",
        "value": {
          "error": "scan_not_found",
          "message": "There is no scan with this ID among the scans of this account.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-not-found"
        }
      },
      "error_scan_busy": {
        "summary": "scan_busy (409)",
        "value": {
          "error": "scan_busy",
          "message": "This scan has a run in progress. Wait for it to end, or cancel it first. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-busy"
        }
      },
      "error_scan_archived": {
        "summary": "scan_archived (409)",
        "value": {
          "error": "scan_archived",
          "message": "This scan is archived in the app. Unarchive it there to run it again. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-archived"
        }
      },
      "error_scan_not_previewed": {
        "summary": "scan_not_previewed (409)",
        "value": {
          "error": "scan_not_previewed",
          "message": "There is no finished preview to start this scan from. Create the scan with `mode: \"full\"`, or wait until its preview ends. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-not-previewed"
        }
      },
      "error_too_many_scans": {
        "summary": "too_many_scans (429)",
        "value": {
          "error": "too_many_scans",
          "message": "This key may have 3 scans running at once. Wait for one to end. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-too-many-scans"
        }
      },
      "error_preview_limit_reached": {
        "summary": "preview_limit_reached (429)",
        "value": {
          "error": "preview_limit_reached",
          "message": "The daily number of previews is used up: this account may start 50 previews through the API a day. More can be started from 2026-11-17T00:00:00.000Z (midnight UTC); or start a full scan with `mode: \"full\"` now. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-preview-limit-reached",
          "retry_after": 30600
        }
      },
      "error_webhook_url_not_allowed": {
        "summary": "webhook_url_not_allowed (400)",
        "value": {
          "error": "webhook_url_not_allowed",
          "message": "The webhook URL must be a public `https://` address. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-webhook-url-not-allowed",
          "param": "webhook_url"
        }
      },
      "error_idempotency_conflict": {
        "summary": "idempotency_conflict (409)",
        "value": {
          "error": "idempotency_conflict",
          "message": "This `Idempotency-Key` was already used with a different request body. Use a new key for a new request. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-idempotency-conflict"
        }
      },
      "error_no_result_to_enrich": {
        "summary": "no_result_to_enrich (409)",
        "value": {
          "error": "no_result_to_enrich",
          "message": "This scan has no full result to enrich yet. Start its full scan, or pass `enrich` to it so places are enriched as they are found. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-no-result-to-enrich"
        }
      },
      "error_nothing_to_enrich": {
        "summary": "nothing_to_enrich (409)",
        "value": {
          "error": "nothing_to_enrich",
          "message": "Nothing to enrich: every place picked already has the results asked for, or none of them applies (no website, no reviews, no photos). Pass `redo: true` to make results again. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-nothing-to-enrich"
        }
      },
      "error_enrich_type_not_available": {
        "summary": "enrich_type_not_available (400)",
        "value": {
          "error": "enrich_type_not_available",
          "message": "The `contacts (ai_social)` enrichment cannot run at the moment. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-enrich-type-not-available",
          "param": "types.contacts.level"
        }
      },
      "error_invalid_access_token": {
        "summary": "invalid_access_token (401)",
        "value": {
          "error": "invalid_access_token",
          "message": "The access token is not valid or the app was disconnected. Connect the app again, or use an API key. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-access-token"
        }
      },
      "error_access_token_not_accepted": {
        "summary": "access_token_not_accepted (401)",
        "value": {
          "error": "access_token_not_accepted",
          "message": "Access tokens of connected apps work only with the MCP server (`/v1/mcp`). To call this endpoint, send an API key; keys are created in the API tab of the app. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-access-token-not-accepted"
        }
      },
      "error_source_unavailable": {
        "summary": "source_unavailable (502)",
        "value": {
          "error": "source_unavailable",
          "message": "The place data could not be read right now. Retry in a few seconds. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-source-unavailable"
        }
      },
      "error_timeout": {
        "summary": "timeout (504)",
        "value": {
          "error": "timeout",
          "message": "The answer took too long. Retry in a few seconds. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-timeout"
        }
      },
      "error_internal_error": {
        "summary": "internal_error (500)",
        "value": {
          "error": "internal_error",
          "message": "Something went wrong on our side. Retry in a few seconds; if it keeps failing, contact support with the request ID. Nothing was charged.",
          "request_id": "req_4kq2m7xv3wz6c5b2n7p3radt5e",
          "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-internal-error"
        }
      }
    },
    "responses": {
      "NotFound": {
        "description": "An address no endpoint answers: `not_found`.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/X-Request-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "not_found": {
                "$ref": "#/components/examples/error_not_found"
              }
            }
          }
        },
        "x-error-codes": [
          "not_found"
        ]
      }
    }
  },
  "webhooks": {
    "scan.previewed": {
      "post": {
        "operationId": "webhookScanPreviewed",
        "summary": "The scan.previewed event, posted to the scan's `webhook_url`.",
        "description": "The preview has ended: the estimate is ready.\n\nSigned: `PlaceGrid-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, keyed with the account's whole `whsec_…` secret; refuse a `t` more than 300 s from your clock and compare in constant time.\n\nAnswer 2xx within 10 s; redirects are not followed. A failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, then given up. The same event may come more than once: deduplicate by `id`.",
        "security": [],
        "parameters": [
          {
            "name": "PlaceGrid-Signature",
            "in": "header",
            "required": true,
            "description": "The signature (see above).",
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+(,v1=[0-9a-f]{64})+$"
            }
          },
          {
            "name": "PlaceGrid-Event-Id",
            "in": "header",
            "required": true,
            "description": "The event's `id`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookEvent"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "scan.previewed"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received; answer within 10 s."
          }
        }
      }
    },
    "scan.completed": {
      "post": {
        "operationId": "webhookScanCompleted",
        "summary": "The scan.completed event, posted to the scan's `webhook_url`.",
        "description": "The full scan has ended, whole (`completed`) or stopped early (`partial`): see `data.scan.status`. With `enrich`, once the enrichment of its places is done too.\n\nSigned: `PlaceGrid-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, keyed with the account's whole `whsec_…` secret; refuse a `t` more than 300 s from your clock and compare in constant time.\n\nAnswer 2xx within 10 s; redirects are not followed. A failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, then given up. The same event may come more than once: deduplicate by `id`.",
        "security": [],
        "parameters": [
          {
            "name": "PlaceGrid-Signature",
            "in": "header",
            "required": true,
            "description": "The signature (see above).",
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+(,v1=[0-9a-f]{64})+$"
            }
          },
          {
            "name": "PlaceGrid-Event-Id",
            "in": "header",
            "required": true,
            "description": "The event's `id`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookEvent"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "scan.completed"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received; answer within 10 s."
          }
        }
      }
    },
    "scan.failed": {
      "post": {
        "operationId": "webhookScanFailed",
        "summary": "The scan.failed event, posted to the scan's `webhook_url`.",
        "description": "A run could not be completed.\n\nSigned: `PlaceGrid-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, keyed with the account's whole `whsec_…` secret; refuse a `t` more than 300 s from your clock and compare in constant time.\n\nAnswer 2xx within 10 s; redirects are not followed. A failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, then given up. The same event may come more than once: deduplicate by `id`.",
        "security": [],
        "parameters": [
          {
            "name": "PlaceGrid-Signature",
            "in": "header",
            "required": true,
            "description": "The signature (see above).",
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+(,v1=[0-9a-f]{64})+$"
            }
          },
          {
            "name": "PlaceGrid-Event-Id",
            "in": "header",
            "required": true,
            "description": "The event's `id`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookEvent"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "scan.failed"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received; answer within 10 s."
          }
        }
      }
    },
    "scan.cancelled": {
      "post": {
        "operationId": "webhookScanCancelled",
        "summary": "The scan.cancelled event, posted to the scan's `webhook_url`.",
        "description": "A run was cancelled.\n\nSigned: `PlaceGrid-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, keyed with the account's whole `whsec_…` secret; refuse a `t` more than 300 s from your clock and compare in constant time.\n\nAnswer 2xx within 10 s; redirects are not followed. A failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, then given up. The same event may come more than once: deduplicate by `id`.",
        "security": [],
        "parameters": [
          {
            "name": "PlaceGrid-Signature",
            "in": "header",
            "required": true,
            "description": "The signature (see above).",
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+(,v1=[0-9a-f]{64})+$"
            }
          },
          {
            "name": "PlaceGrid-Event-Id",
            "in": "header",
            "required": true,
            "description": "The event's `id`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookEvent"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "scan.cancelled"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received; answer within 10 s."
          }
        }
      }
    },
    "enrichment.completed": {
      "post": {
        "operationId": "webhookEnrichmentCompleted",
        "summary": "The enrichment.completed event, posted to the scan's `webhook_url`.",
        "description": "An enrichment of the result (`POST /v1/scans/{id}/enrich`, or one started in the app) has ended, whole (`completed`) or stopped early (`partial`): see `data.scan.status`; `data.scan.stage` is `enrich`.\n\nSigned: `PlaceGrid-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, keyed with the account's whole `whsec_…` secret; refuse a `t` more than 300 s from your clock and compare in constant time.\n\nAnswer 2xx within 10 s; redirects are not followed. A failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, then given up. The same event may come more than once: deduplicate by `id`.",
        "security": [],
        "parameters": [
          {
            "name": "PlaceGrid-Signature",
            "in": "header",
            "required": true,
            "description": "The signature (see above).",
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+(,v1=[0-9a-f]{64})+$"
            }
          },
          {
            "name": "PlaceGrid-Event-Id",
            "in": "header",
            "required": true,
            "description": "The event's `id`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookEvent"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "enrichment.completed"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received; answer within 10 s."
          }
        }
      }
    },
    "enrichment.failed": {
      "post": {
        "operationId": "webhookEnrichmentFailed",
        "summary": "The enrichment.failed event, posted to the scan's `webhook_url`.",
        "description": "An enrichment of the result could not be completed.\n\nSigned: `PlaceGrid-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, keyed with the account's whole `whsec_…` secret; refuse a `t` more than 300 s from your clock and compare in constant time.\n\nAnswer 2xx within 10 s; redirects are not followed. A failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, then given up. The same event may come more than once: deduplicate by `id`.",
        "security": [],
        "parameters": [
          {
            "name": "PlaceGrid-Signature",
            "in": "header",
            "required": true,
            "description": "The signature (see above).",
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+(,v1=[0-9a-f]{64})+$"
            }
          },
          {
            "name": "PlaceGrid-Event-Id",
            "in": "header",
            "required": true,
            "description": "The event's `id`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookEvent"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "enrichment.failed"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received; answer within 10 s."
          }
        }
      }
    },
    "enrichment.cancelled": {
      "post": {
        "operationId": "webhookEnrichmentCancelled",
        "summary": "The enrichment.cancelled event, posted to the scan's `webhook_url`.",
        "description": "An enrichment of the result was cancelled.\n\nSigned: `PlaceGrid-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, keyed with the account's whole `whsec_…` secret; refuse a `t` more than 300 s from your clock and compare in constant time.\n\nAnswer 2xx within 10 s; redirects are not followed. A failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, then given up. The same event may come more than once: deduplicate by `id`.",
        "security": [],
        "parameters": [
          {
            "name": "PlaceGrid-Signature",
            "in": "header",
            "required": true,
            "description": "The signature (see above).",
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+(,v1=[0-9a-f]{64})+$"
            }
          },
          {
            "name": "PlaceGrid-Event-Id",
            "in": "header",
            "required": true,
            "description": "The event's `id`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookEvent"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "const": "enrichment.cancelled"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received; answer within 10 s."
          }
        }
      }
    }
  },
  "x-errors": [
    {
      "code": "missing_api_key",
      "status": 401,
      "retryable": false,
      "message": "No API key was sent. Send your key in the `Authorization: Bearer <key>` header. Keys are created in the API tab of the app.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-missing-api-key"
    },
    {
      "code": "invalid_api_key",
      "status": 401,
      "retryable": false,
      "message": "The API key is not valid. Check that it was copied whole, or create a new key in the API tab of the app.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-api-key"
    },
    {
      "code": "api_key_disabled",
      "status": 403,
      "retryable": false,
      "message": "This API key is switched off. Switch it on, or use another key, in the API tab of the app.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-api-key-disabled"
    },
    {
      "code": "account_inactive",
      "status": 403,
      "retryable": false,
      "message": "The account is not ready to use the API: {reason}",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-account-inactive"
    },
    {
      "code": "api_not_enabled",
      "status": 403,
      "retryable": false,
      "message": "The API is not available for this account yet.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-api-not-enabled"
    },
    {
      "code": "missing_parameter",
      "status": 400,
      "retryable": false,
      "message": "The `{param}` parameter is required. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-missing-parameter"
    },
    {
      "code": "invalid_parameter",
      "status": 400,
      "retryable": false,
      "message": "The `{param}` parameter is not valid: {expected}. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-parameter"
    },
    {
      "code": "conflicting_parameters",
      "status": 400,
      "retryable": false,
      "message": "{detail} Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-conflicting-parameters"
    },
    {
      "code": "invalid_page_token",
      "status": 400,
      "retryable": false,
      "message": "The `next_page_token` does not belong to this request: pass the token of the previous page unchanged, with the same place and order. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-page-token"
    },
    {
      "code": "link_not_a_place",
      "status": 400,
      "retryable": false,
      "message": "The link or text names a point on the map, not a place. Pass a link to the place itself, its ID, or its name with the address. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-link-not-a-place"
    },
    {
      "code": "short_link_dead",
      "status": 400,
      "retryable": false,
      "message": "The short link leads nowhere: it was removed or never existed. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-short-link-dead"
    },
    {
      "code": "place_not_found",
      "status": 404,
      "retryable": false,
      "message": "No single place matches the request. {detail}Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-place-not-found"
    },
    {
      "code": "not_found",
      "status": 404,
      "retryable": false,
      "message": "There is no such endpoint. See the API reference for the list of endpoints.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-not-found"
    },
    {
      "code": "method_not_allowed",
      "status": 405,
      "retryable": false,
      "message": "This endpoint does not accept {method} requests.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-method-not-allowed"
    },
    {
      "code": "insufficient_credits",
      "status": 402,
      "retryable": false,
      "message": "Not enough credits: this needs {price} credits and {available} are available. Buy credits in the app, then try again. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-insufficient-credits"
    },
    {
      "code": "account_in_debt",
      "status": 402,
      "retryable": false,
      "message": "The balance is below zero: the account owes {debt} credits. Calls resume once a purchase pays the debt. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-account-in-debt"
    },
    {
      "code": "spend_limit_reached",
      "status": 402,
      "retryable": false,
      "message": "This does not fit in the {limit} spending limit. Raise it in the app, or wait until it resets at {resetsAt}. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-spend-limit-reached"
    },
    {
      "code": "organization_credits_not_allowed",
      "status": 402,
      "retryable": false,
      "message": "Your organization does not let you spend its credits. Ask its owner to allow it. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-credits-not-allowed"
    },
    {
      "code": "organization_member_limit_reached",
      "status": 402,
      "retryable": false,
      "message": "You have used your monthly credit limit set by your organization. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-member-limit-reached"
    },
    {
      "code": "organization_balance_exhausted",
      "status": 402,
      "retryable": false,
      "message": "Your organization has no credits left for this call. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-balance-exhausted"
    },
    {
      "code": "organization_in_debt",
      "status": 402,
      "retryable": false,
      "message": "Your organization's balance is below zero. Calls resume once a purchase pays the debt. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-organization-in-debt"
    },
    {
      "code": "rate_limited",
      "status": 429,
      "retryable": true,
      "message": "Too many requests: {who} may make {limit} requests a minute. Retry in {retryAfter} s. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-rate-limited"
    },
    {
      "code": "too_many_concurrent_requests",
      "status": 429,
      "retryable": true,
      "message": "Too many requests at once: {who} may have {limit} in progress. Wait for one to finish. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-too-many-concurrent-requests"
    },
    {
      "code": "capacity_busy",
      "status": 503,
      "retryable": true,
      "message": "All capacity is in use right now. Retry in {retryAfter} s. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-capacity-busy"
    },
    {
      "code": "temporarily_unavailable",
      "status": 503,
      "retryable": true,
      "message": "{what} cannot be read at the moment. Retry in a few seconds. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-temporarily-unavailable"
    },
    {
      "code": "reviews_not_available",
      "status": 404,
      "retryable": false,
      "message": "This place has no Google reviews to read: its reviews come from a partner site. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-reviews-not-available"
    },
    {
      "code": "invalid_json",
      "status": 400,
      "retryable": false,
      "message": "The request body is not valid JSON: {detail} Send a JSON object with `Content-Type: application/json`. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-json"
    },
    {
      "code": "unsupported_media_type",
      "status": 415,
      "retryable": false,
      "message": "Send the request body as JSON with `Content-Type: application/json`. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-unsupported-media-type"
    },
    {
      "code": "region_not_found",
      "status": 404,
      "retryable": false,
      "message": "There is no region {region}. Find regions with `/v1/regions/search`. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-region-not-found"
    },
    {
      "code": "region_not_scannable",
      "status": 400,
      "retryable": false,
      "message": "The region {region} cannot be scanned on its own: {detail} Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-region-not-scannable"
    },
    {
      "code": "regions_mixed_countries",
      "status": 400,
      "retryable": false,
      "message": "These regions cannot be scanned together. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-regions-mixed-countries"
    },
    {
      "code": "too_many_regions",
      "status": 400,
      "retryable": false,
      "message": "A scan takes at most {limit} regions. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-too-many-regions"
    },
    {
      "code": "scan_not_found",
      "status": 404,
      "retryable": false,
      "message": "There is no scan with this ID among the scans of this account.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-not-found"
    },
    {
      "code": "scan_busy",
      "status": 409,
      "retryable": true,
      "message": "This scan has a run in progress. Wait for it to end, or cancel it first. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-busy"
    },
    {
      "code": "scan_archived",
      "status": 409,
      "retryable": false,
      "message": "This scan is archived in the app. Unarchive it there to run it again. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-archived"
    },
    {
      "code": "scan_not_previewed",
      "status": 409,
      "retryable": false,
      "message": "There is no finished preview to start this scan from. Create the scan with `mode: \"full\"`, or wait until its preview ends. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-scan-not-previewed"
    },
    {
      "code": "too_many_scans",
      "status": 429,
      "retryable": true,
      "message": "This key may have {limit} scans running at once. Wait for one to end. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-too-many-scans"
    },
    {
      "code": "preview_limit_reached",
      "status": 429,
      "retryable": true,
      "message": "The daily number of previews is used up: this account may start {limit} previews{where} a day. More can be started from {resetsAt} (midnight UTC); or start a full scan with `mode: \"full\"` now. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-preview-limit-reached"
    },
    {
      "code": "webhook_url_not_allowed",
      "status": 400,
      "retryable": false,
      "message": "The webhook URL must be a public `https://` address. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-webhook-url-not-allowed"
    },
    {
      "code": "idempotency_conflict",
      "status": 409,
      "retryable": false,
      "message": "This `Idempotency-Key` was already used with a different request body. Use a new key for a new request. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-idempotency-conflict"
    },
    {
      "code": "no_result_to_enrich",
      "status": 409,
      "retryable": false,
      "message": "This scan has no full result to enrich yet. Start its full scan, or pass `enrich` to it so places are enriched as they are found. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-no-result-to-enrich"
    },
    {
      "code": "nothing_to_enrich",
      "status": 409,
      "retryable": false,
      "message": "Nothing to enrich: every place picked already has the results asked for, or none of them applies (no website, no reviews, no photos). Pass `redo: true` to make results again. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-nothing-to-enrich"
    },
    {
      "code": "enrich_type_not_available",
      "status": 400,
      "retryable": false,
      "message": "The `{param}` enrichment cannot run at the moment. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-enrich-type-not-available"
    },
    {
      "code": "invalid_access_token",
      "status": 401,
      "retryable": false,
      "message": "The access token is not valid or the app was disconnected. Connect the app again, or use an API key. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-invalid-access-token"
    },
    {
      "code": "access_token_not_accepted",
      "status": 401,
      "retryable": false,
      "message": "Access tokens of connected apps work only with the MCP server (`/v1/mcp`). To call this endpoint, send an API key; keys are created in the API tab of the app. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-access-token-not-accepted"
    },
    {
      "code": "source_unavailable",
      "status": 502,
      "retryable": true,
      "message": "The place data could not be read right now. Retry in a few seconds. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-source-unavailable"
    },
    {
      "code": "timeout",
      "status": 504,
      "retryable": true,
      "message": "The answer took too long. Retry in a few seconds. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-timeout"
    },
    {
      "code": "internal_error",
      "status": 500,
      "retryable": true,
      "message": "Something went wrong on our side. Retry in a few seconds; if it keeps failing, contact support with the request ID. Nothing was charged.",
      "docs_url": "https://dev.enrichment.brontir.com/docs/api#error-internal-error"
    }
  ]
}