{
  "openapi": "3.1.0",
  "info": {
    "title": "LocalViking API",
    "description": "LocalViking Public API",
    "version": "1.0",
    "x-logo": {
      "url": "/localviking-logo.png",
      "backgroundColor": "#FFFFFF",
      "altText": "LocalViking Logo"
    }
  },
  "servers": [
    {
      "url": "https://api.localviking.com"
    }
  ],
  "paths": {
    "/geogrid_configs": {
      "get": {
        "tags": [
          "Geogrid Configs"
        ],
        "summary": "geogrid_configs#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Geogrid Configs list. Items are returned without `tags` — fetch `GET /geogrid_configs/{id}` when you need them.\n",
        "operationId": "geogrid_configs",
        "parameters": [
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PerPage"
          },
          {
            "name": "by_location_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "a1b2c3d4",
              "description": "Filter by Location ID"
            }
          },
          {
            "name": "by_place_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "ChIJPwlCz0zGwoAR2UN0qS6BHtE",
              "description": "Place_ID of GBP"
            }
          },
          {
            "name": "by_business_name",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "Starbucks",
              "description": "Name of GBP (exact match)"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "headers": {
              "Page-Number": {
                "description": "Current page number.",
                "schema": {
                  "type": "integer"
                }
              },
              "Page-Size": {
                "description": "Number of records per page.",
                "schema": {
                  "type": "integer"
                }
              },
              "Total-Count": {
                "description": "Total number of records matching the query.",
                "schema": {
                  "type": "integer"
                }
              },
              "Total-Pages": {
                "description": "Total number of pages available.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GeogridConfigListItem"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          }
        }
      },
      "post": {
        "tags": [
          "Geogrid Configs"
        ],
        "summary": "geogrid_config#create",
        "security": [
          {
            "api_key": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeogridConfigCreate"
              },
              "examples": {
                "weekly": {
                  "summary": "Weekly schedule (every Monday)",
                  "value": {
                    "business_name": "East Village Pizza",
                    "business_place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "business_address": "231 Main St, Dunedin, FL 34698",
                    "grid_center_lat": 40.7281911,
                    "grid_center_lng": -73.98509899999999,
                    "grid_size": 3,
                    "period": "weekly",
                    "day_number": 1,
                    "tags": [
                      "priority",
                      "client-a"
                    ],
                    "search_terms": [
                      "pizza near me"
                    ]
                  }
                },
                "with_disabled_points": {
                  "summary": "Weekly schedule with two grid points disabled via mask",
                  "value": {
                    "business_name": "East Village Pizza",
                    "business_place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "grid_center_lat": 40.7281911,
                    "grid_center_lng": -73.98509899999999,
                    "grid_size": 3,
                    "grid_mask": "011011111",
                    "period": "weekly",
                    "day_number": 1,
                    "search_terms": [
                      "pizza near me"
                    ]
                  }
                },
                "biweekly": {
                  "summary": "Bi-weekly schedule (every other Monday)",
                  "value": {
                    "business_name": "East Village Pizza",
                    "business_place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "grid_center_lat": 40.7281911,
                    "grid_center_lng": -73.98509899999999,
                    "grid_size": 3,
                    "period": "biweekly",
                    "day_number": 1,
                    "search_terms": [
                      "pizza near me"
                    ]
                  }
                },
                "monthly": {
                  "summary": "Monthly schedule (first week)",
                  "value": {
                    "business_name": "East Village Pizza",
                    "business_place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "grid_center_lat": 40.7281911,
                    "grid_center_lng": -73.98509899999999,
                    "grid_size": 3,
                    "period": "monthly",
                    "week_number": 1,
                    "search_terms": [
                      "pizza near me"
                    ]
                  }
                },
                "day_of_month": {
                  "summary": "Day of month schedule (15th of each month)",
                  "value": {
                    "business_name": "East Village Pizza",
                    "business_place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "grid_center_lat": 40.7281911,
                    "grid_center_lng": -73.98509899999999,
                    "grid_size": 3,
                    "period": "day_of_month",
                    "month_day": 15,
                    "search_terms": [
                      "pizza near me"
                    ]
                  }
                },
                "quarterly_monthly": {
                  "summary": "Quarterly schedule (4th week Monday - e.g. January 26, 2026)",
                  "value": {
                    "business_name": "East Village Pizza",
                    "business_place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "grid_center_lat": 40.7281911,
                    "grid_center_lng": -73.98509899999999,
                    "grid_size": 3,
                    "period": "quarterly_monthly",
                    "week_number": 4,
                    "day_number": 1,
                    "search_terms": [
                      "pizza near me"
                    ]
                  }
                },
                "quarterly_day_of_month": {
                  "summary": "Quarterly on the 15th, starting in January",
                  "value": {
                    "business_name": "East Village Pizza",
                    "business_place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "business_address": "231 Main St, Dunedin, FL 34698",
                    "grid_center_lat": 40.7281911,
                    "grid_center_lng": -73.98509899999999,
                    "grid_size": 3,
                    "period": "quarterly_day_of_month",
                    "month_day": 15,
                    "starting_month": "January",
                    "tags": "priority,client-a",
                    "search_terms": [
                      "pizza near me"
                    ]
                  }
                }
              }
            }
          }
        },
        "description": "Create Geogrid Config.\n\n`tags` accepts an array of strings or a single comma-separated string (`\"priority,client-a\"`). Business identity fields are applied on create only — they cannot be changed later with `PUT /geogrid_configs/{id}`.\n",
        "operationId": "create_geogrid_config",
        "responses": {
          "201": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeogridConfigShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "description": "Validations errors or not enough credits.",
                      "example": {
                        "grid_center_lat": [
                          "can't be blank"
                        ],
                        "grid_center_lng": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/geogrid_configs/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "tags": [
          "Geogrid Configs"
        ],
        "summary": "geogrid_config#show",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Show Geogrid Config",
        "operationId": "geogrid_config",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeogridConfigShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "geogrid config not found"
          }
        }
      },
      "put": {
        "tags": [
          "Geogrid Configs"
        ],
        "summary": "geogrid_config#update",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Update Geogrid Config.\n\nOnly grid geometry, schedule, `note`, `local` and `tags` are mutable. Business identity — `business_name`, `business_address`, `business_country`, `business_place_id`, `business_store_code`, `gbp_id`, `location_id` — is fixed when the config is created. Sending those fields is **not an error**: they are ignored and the request still returns `200` with the unchanged values. `search_terms` is ignored here too — use the Search Terms endpoints to add, toggle or remove keywords.\n\nChanging `grid_size` re-enables every grid point — positions are numbered per size, so an old mask has no meaning on the new grid. Send a `grid_mask` sized for the new grid in the same request to keep points disabled.\n\n`tags` accepts an array of strings or a single comma-separated string and **replaces** the whole tag set rather than merging into it. Send `[]` or `\"\"` to clear every tag, or omit the key to leave tags untouched.\n",
        "operationId": "update_geogrid_config",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeogridConfigUpdate"
              },
              "examples": {
                "change_to_weekly": {
                  "summary": "Change to weekly schedule",
                  "value": {
                    "period": "weekly",
                    "day_number": 1
                  }
                },
                "change_to_biweekly": {
                  "summary": "Change to bi-weekly schedule",
                  "value": {
                    "period": "biweekly",
                    "day_number": 1
                  }
                },
                "change_to_monthly": {
                  "summary": "Change to monthly schedule",
                  "value": {
                    "period": "monthly",
                    "week_number": 2
                  }
                },
                "change_to_day_of_month": {
                  "summary": "Change to day of month schedule",
                  "value": {
                    "period": "day_of_month",
                    "month_day": 15
                  }
                },
                "change_to_quarterly": {
                  "summary": "Change to quarterly schedule (4th week Monday)",
                  "value": {
                    "period": "quarterly_monthly",
                    "week_number": 4,
                    "day_number": 1
                  }
                },
                "run_at_local_hour": {
                  "summary": "Weekly, 9am in the location's time zone",
                  "value": {
                    "period": "weekly",
                    "day_number": 1,
                    "hour": 9,
                    "time_zone": "Eastern Time (US & Canada)"
                  }
                },
                "replace_mask": {
                  "summary": "Disable two grid points on a 3×3 grid",
                  "value": {
                    "grid_mask": "011011111"
                  }
                },
                "resize_with_mask": {
                  "summary": "Change grid size and keep points disabled on the new grid",
                  "value": {
                    "grid_size": 5,
                    "grid_mask": "0111111111111111111111111"
                  }
                },
                "replace_tags": {
                  "summary": "Replace the entire tag set",
                  "value": {
                    "tags": [
                      "client-b",
                      "urgent"
                    ]
                  }
                },
                "clear_tags": {
                  "summary": "Remove every tag",
                  "value": {
                    "tags": []
                  }
                },
                "ignored_business_fields": {
                  "summary": "Business identity is ignored (returns 200, values unchanged)",
                  "value": {
                    "business_name": "This will not be applied",
                    "note": "only the note changes"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeogridConfigShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "description": "Validations errors or not enough credits",
                      "example": {
                        "grid_center_lat": [
                          "can't be blank"
                        ],
                        "grid_center_lng": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Geogrid Configs"
        ],
        "summary": "geogrid_config#destroy",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Delete Geogrid Config",
        "operationId": "delete_geogrid_config",
        "responses": {
          "204": {
            "description": "successful"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/geogrid_configs/{geogrid_config_id}/search_terms": {
      "post": {
        "tags": [
          "Search Terms"
        ],
        "summary": "search_term#create",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "geogrid_config_id",
            "in": "path",
            "description": "geogrid_config_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchTermCreate"
              }
            }
          }
        },
        "description": "Create Search Term",
        "operationId": "create_search_term",
        "responses": {
          "201": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchTermShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "description": "Validation messages keyed by field. Note the singular `error` key — the Geogrid Config endpoints use a plural `errors` object instead.",
                      "example": {
                        "text": [
                          "has already been taken"
                        ]
                      }
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "validations"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/geogrid_configs/{geogrid_config_id}/search_terms/{id}": {
      "put": {
        "tags": [
          "Search Terms"
        ],
        "summary": "search_term#update",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "geogrid_config_id",
            "in": "path",
            "description": "geogrid_config_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchTermUpdate"
              }
            }
          }
        },
        "description": "Update Search Term.\n\nOnly `active` is applied. `text` is immutable — delete the search term and create a new one to change the keyword. Omitting `active` disables the term.\n",
        "operationId": "update_search_term",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchTermShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      },
      "delete": {
        "tags": [
          "Search Terms"
        ],
        "summary": "search_term#destroy",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "geogrid_config_id",
            "in": "path",
            "description": "geogrid_config_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Delete Search Term",
        "operationId": "destroy_search_term",
        "responses": {
          "200": {
            "description": "successful"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/geogrids": {
      "get": {
        "tags": [
          "Geogrids"
        ],
        "summary": "geogrids#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Geogrids list",
        "operationId": "geogrids",
        "parameters": [
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PerPage"
          },
          {
            "name": "by_state",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "initialized",
                "error",
                "finished"
              ],
              "description": "Geogrid processing state"
            }
          },
          {
            "name": "by_geogrid_config_id",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Filter by config ID"
            }
          },
          {
            "name": "by_location_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "a1b2c3d4",
              "description": "Filter by LocalViking Location ID"
            }
          },
          {
            "name": "by_search_term",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "emergency plumbers",
              "description": "Filter by keyword text (exact match)"
            }
          },
          {
            "name": "by_place_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "ChIJPwlCz0zGwoAR2UN0qS6BHtE",
              "description": "Place_ID of GBP"
            }
          },
          {
            "name": "by_business_name",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "Starbucks",
              "description": "Name of GBP (exact match)"
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2024-07-29T09:16:52+00:00",
              "description": "Display only geogrids newer than passed timestamp"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "headers": {
              "Page-Number": {
                "description": "Current page number.",
                "schema": {
                  "type": "integer"
                }
              },
              "Page-Size": {
                "description": "Number of records per page.",
                "schema": {
                  "type": "integer"
                }
              },
              "Has-More": {
                "description": "Whether another page follows. This endpoint deliberately skips the total-row count, so `Total-Count` and `Total-Pages` are not returned.\n",
                "schema": {
                  "type": "boolean"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Geogrid"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          }
        }
      },
      "post": {
        "tags": [
          "Geogrids"
        ],
        "summary": "geogrid#create",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Create Geogrid.\n\n`tags` accepts an array of strings or a single comma-separated string (`\"priority,client-a\"`).\n",
        "operationId": "create_geogrid",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeogridCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Geogrid created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "readOnly": true,
                      "example": "0vzw45re"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "description": "Validations errors or not enough credits",
                      "example": {
                        "grid_center_lat": [
                          "can't be blank"
                        ],
                        "grid_center_lng": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/geogrids/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "tags": [
          "Geogrids"
        ],
        "summary": "geogrid#show",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Show Geogrid",
        "operationId": "geogrid",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Geogrid"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "description": "geogrid not found"
          }
        }
      }
    },
    "/gmb/reviews": {
      "get": {
        "tags": [
          "Reviews"
        ],
        "summary": "reviews#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "List of Reviews",
        "operationId": "reviews",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "default": 1,
              "type": "integer",
              "description": "Page number"
            }
          },
          {
            "name": "per",
            "in": "query",
            "schema": {
              "default": 20,
              "maximum": 100,
              "type": "integer",
              "description": "Per page value. Will be used max value if exceeded."
            }
          },
          {
            "name": "by_place_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "ChIJPwlCz0zGwoAR2UN0qS6BHtE",
              "description": "Filter by Place_ID of GBP (exact match, case sensitive)"
            }
          },
          {
            "name": "by_location_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "73zy1wzo",
              "description": "Filter by LocalViking Location ID (exact match, case sensitive)"
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2022-07-29T09:16:52+03:00",
              "description": "Filter by created_at or updated_at  \nDisplay only reviews where created_at is greater than since, or, if not, where updated_at is greater than since\n"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/gmb/reviews/{remote_id}/reply": {
      "parameters": [
        {
          "name": "remote_id",
          "in": "path",
          "description": "Review remote ID",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "patch": {
        "tags": [
          "Reviews"
        ],
        "summary": "review#reply",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Update Review by adding a reply",
        "operationId": "review",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewReply"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": "Reply can't be blank"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/locations": {
      "get": {
        "tags": [
          "Locations"
        ],
        "summary": "locations#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "List of Locations",
        "operationId": "locations",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "default": 1,
              "type": "integer"
            }
          },
          {
            "name": "per",
            "in": "query",
            "schema": {
              "default": 25,
              "maximum": 50,
              "type": "integer"
            }
          },
          {
            "name": "by_name",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "Taco Bell",
              "description": "Filter by name of GBP (contain, case insensitive)"
            }
          },
          {
            "name": "by_place_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "ChIJPwlCz0zGwoAR2UN0qS6BHtE",
              "description": "Filter by Place_ID of GBP (exact match, case sensitive)"
            }
          },
          {
            "name": "by_gbp_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": 10824749171115180000,
              "description": "Filter by GBP ID"
            }
          },
          {
            "name": "with_geogrid_configs",
            "in": "query",
            "schema": {
              "type": "boolean",
              "description": "Only locations with geogrid configs"
            }
          },
          {
            "name": "with_geogrids",
            "in": "query",
            "schema": {
              "type": "boolean",
              "description": "Only locations with geogrids. Both live and schedules ones are considered"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Location"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      },
      "post": {
        "tags": [
          "Locations"
        ],
        "summary": "locations#create",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Create Location",
        "operationId": "create_location",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "place_id": {
                    "type": "string",
                    "example": "ChIJUXC5nQhtkFQRK1daqKRwwga"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Location created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Location"
                }
              }
            }
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": {
                        "place_id": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/locations/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "tags": [
          "Locations"
        ],
        "summary": "location#show",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Show Location",
        "operationId": "location",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Location"
                }
              }
            }
          },
          "404": {
            "description": "location not found"
          }
        }
      }
    },
    "/locations/{id}/enable": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "tags": [
          "Locations"
        ],
        "summary": "location#enable",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Enable a location. The organization's plan sets how many locations may be enabled at once; when that is exhausted the call is refused and nothing changes. Enabling starts a background fetch of the location's dependencies, and resumes anything scheduled against it (geogrids, keyword rank syncs, audit reports), which spends credits per run.\n",
        "operationId": "enable_location",
        "responses": {
          "204": {
            "description": "Location enabled"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "422": {
            "description": "The plan has no room for another enabled location",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Location limit exceeded. Upgrade your billing plan to increase it."
                    },
                    "type": {
                      "type": "string",
                      "example": "locations_limit_reached"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/locations/{id}/disable": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "tags": [
          "Locations"
        ],
        "summary": "location#disable",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Disable a location. Nothing is deleted -- keywords, geogrids, audit reports and their history stay and return when the location is enabled again -- but everything scheduled against it stops running. Refused while the dependency fetch started by enabling is still in flight.\n",
        "operationId": "disable_location",
        "responses": {
          "204": {
            "description": "Location disabled"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "422": {
            "description": "The location is still syncing its dependencies",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Location is still syncing its dependencies -- try again shortly."
                    },
                    "type": {
                      "type": "string",
                      "example": "location_still_in_sync"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/gmb/locations/{location_id}/insights": {
      "get": {
        "deprecated": true,
        "tags": [
          "Location Insights"
        ],
        "summary": "gmb/locations/:location_id/insights#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "Location remote ID or place ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date_from": {
                    "type": "string",
                    "format": "date",
                    "example": "2021-06-07",
                    "description": "By default, it will be 30 days ago. Default 27 days range will be applied if not specified any valid data for both `date_from` and `date_to` parameters."
                  },
                  "date_to": {
                    "type": "string",
                    "format": "date",
                    "example": "2021-06-08",
                    "description": "By default, it will be three days ago due to Google providing us the statistics with a three days delay. Default 27 days range will be applied if not specified any valid data for both `date_from` and `date_to` parameters."
                  },
                  "page": {
                    "type": "integer",
                    "example": 2,
                    "default": 1,
                    "description": "Page number"
                  },
                  "per": {
                    "type": "integer",
                    "example": 25,
                    "default": 25,
                    "maximum": 100,
                    "description": "Per page value. Will be used max value if exceeded."
                  },
                  "metrics": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "queries_direct",
                        "queries_indirect",
                        "views_maps",
                        "views_search",
                        "actions_website",
                        "actions_phone",
                        "actions_driving_directions",
                        "photos_views_merchant",
                        "photos_views_customers",
                        "photos_count_merchant",
                        "photos_count_customers",
                        "local_post_views_search",
                        "local_post_actions_call_to_action",
                        "queries_chain"
                      ]
                    },
                    "uniqueItems": true,
                    "description": "With this parameter you can vary the output data. By default all insights will be displayed."
                  }
                }
              }
            }
          }
        },
        "description": "List of Location Insights",
        "operationId": "location_insights_list",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GmbLocationInsight"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "description": "location not found"
          }
        }
      }
    },
    "/gmb/locations/{location_id}/performance_metrics": {
      "get": {
        "tags": [
          "Location Performance Metrics"
        ],
        "summary": "gmb/locations/:location_id/performance_metrics#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "Location remote ID or place ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date_from": {
                    "type": "string",
                    "format": "date",
                    "example": "2021-06-07",
                    "description": "By default, it will be 30 days ago. Default 27 days range will be applied if not specified any valid data for both `date_from` and `date_to` parameters."
                  },
                  "date_to": {
                    "type": "string",
                    "format": "date",
                    "example": "2021-06-08",
                    "description": "By default, it will be three days ago due to Google providing us the statistics with a three days delay. Default 27 days range will be applied if not specified any valid data for both `date_from` and `date_to` parameters."
                  },
                  "page": {
                    "type": "integer",
                    "example": 2,
                    "default": 1,
                    "description": "Page number"
                  },
                  "per": {
                    "type": "integer",
                    "example": 25,
                    "default": 25,
                    "maximum": 100,
                    "description": "Per page value. Will be used max value if exceeded."
                  },
                  "metrics": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "business_impressions_desktop_maps",
                        "business_impressions_desktop_search",
                        "business_impressions_mobile_maps",
                        "business_impressions_mobile_search",
                        "business_conversations",
                        "business_direction_requests",
                        "call_clicks",
                        "website_clicks"
                      ]
                    },
                    "uniqueItems": true,
                    "description": "With this parameter you can vary the output data. By default all metrics will be displayed."
                  }
                }
              }
            }
          }
        },
        "description": "List of Location Performance Metrics",
        "operationId": "location_performance_metrics_list",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GmbLocationPerformanceMetric"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "description": "location not found"
          }
        }
      }
    },
    "/gmb/locations/{location_id}/search_impressions": {
      "get": {
        "tags": [
          "Location Search Impressions Insights"
        ],
        "summary": "gmb/locations/:location_id/search_impressions#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "location_id",
            "in": "path",
            "description": "Location remote ID or place ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date_from": {
                    "type": "string",
                    "format": "date",
                    "example": "2021-06-01",
                    "description": "By default, it is the beginning of month before previous month. Google API returns search impressions insights by month only and for the current month data will be available only after the month is finished. So it is the reason why we by default returns data for previous month and month before previous."
                  },
                  "date_to": {
                    "type": "string",
                    "format": "date",
                    "example": "2021-07-01",
                    "description": "By default, it is the beginning of previous month. See date_from description for more details."
                  },
                  "page": {
                    "type": "integer",
                    "example": 2,
                    "default": 1,
                    "description": "Page number"
                  },
                  "per": {
                    "type": "integer",
                    "example": 25,
                    "default": 25,
                    "maximum": 100,
                    "description": "Per page value. Will be used max value if exceeded."
                  }
                }
              }
            }
          }
        },
        "description": "List of Location Search Impressions Insights",
        "operationId": "location_search_impressions_insights_list",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GmbLocationSearchImpressionsInsight"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "description": "location not found"
          }
        }
      }
    },
    "/audit_configurations": {
      "get": {
        "tags": [
          "Audit Configurations"
        ],
        "summary": "audit_configurations#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "List Audit Configurations",
        "operationId": "audit_configurations",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditConfiguration"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      },
      "post": {
        "tags": [
          "Audit Configurations"
        ],
        "summary": "audit_configurations#create",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Create Audit Configuration",
        "operationId": "create_audit_confiugration",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuditConfigurationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Audit Configuration created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditConfiguration"
                }
              }
            }
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": {
                        "name": [
                          "can't be blank"
                        ],
                        "keyword": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/audit_configurations/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "tags": [
          "Audit Configurations"
        ],
        "summary": "audit_configurations#show",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Show Audit Configuration",
        "operationId": "audit_configuration",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditConfiguration"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "description": "audit configuration not found"
          }
        }
      },
      "put": {
        "tags": [
          "Audit Configurations"
        ],
        "summary": "audit_configurations#update",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Update Audit Configuration",
        "operationId": "update_audit_configuration",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuditConfigurationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditConfiguration"
                }
              }
            }
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": {
                        "name": [
                          "can't be blank"
                        ],
                        "keyword": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Audit Configurations"
        ],
        "summary": "audit_configurations#destroy",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Delete Audit Configuration",
        "operationId": "destroy_audit_configuration",
        "responses": {
          "204": {
            "description": "successful"
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/audit_configurations/{audit_configuration_id}/raw": {
      "get": {
        "tags": [
          "Audit Configurations"
        ],
        "summary": "audit_configurations#raw",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "audit_configuration_id",
            "in": "path",
            "description": "Audit Configuration ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Show Audit Configuration with audit data",
        "operationId": "show_audit_configuration_raw",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditConfigurationRaw"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/audit_configurations/{audit_configuration_id}/audits": {
      "get": {
        "tags": [
          "Audit Reports"
        ],
        "summary": "audit_reports#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "audit_configuration_id",
            "in": "path",
            "description": "Audit Configuration ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "List Audit Reports",
        "operationId": "audit_reports",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuditReport"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/audit_configurations/{audit_configuration_id}/run_audit": {
      "post": {
        "tags": [
          "Audit Configurations"
        ],
        "summary": "audit_configurations#run_audit",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "audit_configuration_id",
            "in": "path",
            "description": "Audit Configuration ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Run Audit",
        "operationId": "run_audit",
        "responses": {
          "201": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditReport"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/audit_configurations/{audit_configuration_id}/audits/{id}": {
      "get": {
        "tags": [
          "Audit Reports"
        ],
        "summary": "audit_reports#show",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "audit_configuration_id",
            "in": "path",
            "description": "Audit Configuration ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Show Audit Report",
        "operationId": "audit_report",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditReport"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      },
      "delete": {
        "tags": [
          "Audit Reports"
        ],
        "summary": "audit_reports#destroy",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "audit_configuration_id",
            "in": "path",
            "description": "Audit Configuration ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Delete Audit Report",
        "operationId": "destroy_audit_report",
        "responses": {
          "204": {
            "description": "successful"
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/no_gbp_audits": {
      "get": {
        "tags": [
          "No GBP Audits"
        ],
        "summary": "no_gbp_audits#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "No GBP Audit list",
        "operationId": "list_no_gbp_audits",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NoGbpAudit"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      },
      "post": {
        "tags": [
          "No GBP Audits"
        ],
        "summary": "no_gbp_audits#create",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Create no GBP Audit",
        "operationId": "create_no_gbp_audits",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NoGbpAuditCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoGbpAudit"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "422": {
            "description": "Can't run audit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "example": {
                        "type": [
                          "internal"
                        ],
                        "error": [
                          "no_coordinates_found"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/no_gbp_audits/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "tags": [
          "No GBP Audits"
        ],
        "summary": "no_gbp_audits#show",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Show no GBP Audit",
        "operationId": "show_no_gbp_audits",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoGbpAuditShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/reports": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "reports#list",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "List of Reports",
        "operationId": "reports",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Report"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/reports/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "report#show",
        "security": [
          {
            "api_key": []
          }
        ],
        "description": "Show Report",
        "operationId": "report",
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportShow"
                }
              }
            }
          },
          "404": {
            "description": "report not found"
          }
        }
      }
    },
    "/images": {
      "get": {
        "tags": [
          "GeoBooster"
        ],
        "summary": "images#list",
        "description": "Use this endpoint to get Images list\n",
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "get_images",
        "parameters": [
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "Images list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageShow"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      },
      "post": {
        "tags": [
          "GeoBooster"
        ],
        "summary": "images#create",
        "description": "Use this endpoint to create Image\n",
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "create_image",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "Allowed formats: `jpg`, `jpeg`, `png`, `gif`, `heic`, `webp`"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Image created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "validation"
                    },
                    "error": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": {
                        "file": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/gb/businesses": {
      "get": {
        "tags": [
          "GeoBooster"
        ],
        "summary": "businesses#list",
        "description": "Use this endpoint to get Businesses list\n",
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "get_businesses",
        "parameters": [
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "Businesses list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BusinessShow"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/gb/employees": {
      "get": {
        "tags": [
          "GeoBooster"
        ],
        "summary": "employees#list",
        "description": "Use this endpoint to get employees list\n",
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "gb_employees_list",
        "parameters": [
          {
            "$ref": "#/components/parameters/Page"
          },
          {
            "$ref": "#/components/parameters/PerPage"
          },
          {
            "name": "business_id",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Filter by business_id",
              "example": "0vzw45re"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Employees list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeeShow"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      },
      "post": {
        "tags": [
          "GeoBooster"
        ],
        "summary": "employees#create",
        "description": "Use this endpoint to create employee for GB buisness\n",
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "gb_create_employee",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employee": {
                    "$ref": "#/components/schemas/EmployeeCreate",
                    "required": [
                      "name",
                      "email"
                    ]
                  }
                },
                "required": [
                  "employee"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Employee created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "validation"
                    },
                    "error": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": {
                        "email": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/gb/employees/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "description": "Employee ID",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "put": {
        "tags": [
          "GeoBooster"
        ],
        "summary": "employees#update",
        "description": "Use this endpoint to update employee for GB buisness\n",
        "security": [
          {
            "api_key": []
          }
        ],
        "operationId": "gb_update_employee",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employee": {
                    "$ref": "#/components/schemas/EmployeeCreate"
                  }
                },
                "required": [
                  "employee"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Category updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeShow"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "validation"
                    },
                    "error": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": {
                        "email": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/gb/businesses/{business_id}/moments": {
      "post": {
        "tags": [
          "GeoBooster"
        ],
        "summary": "moments#create",
        "description": "Use this endpoint to create moment for GB buisness\n",
        "security": [
          {
            "api_key": []
          }
        ],
        "parameters": [
          {
            "name": "business_id",
            "in": "path",
            "description": "Business ID",
            "required": true,
            "schema": {
              "type": "string",
              "example": "0vzw45re"
            }
          }
        ],
        "operationId": "gb_create_moment",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "moment": {
                    "type": "object",
                    "properties": {
                      "employee_id": {
                        "type": "string",
                        "description": "Employee ID",
                        "example": "0vzw45re"
                      },
                      "categories": {
                        "type": "array",
                        "description": "Categories Name",
                        "items": {
                          "type": "string",
                          "description": "Category Name",
                          "example": [
                            "Plumbing",
                            "Spring"
                          ]
                        }
                      },
                      "customer": {
                        "type": "string",
                        "description": "Customer",
                        "example": "John Doe"
                      },
                      "description": {
                        "type": "string",
                        "description": "Description",
                        "example": "Excelent work"
                      },
                      "approved": {
                        "description": "Defines if the Moment will be approved upon creation or preserved as a draft. Default true",
                        "type": "boolean",
                        "example": true
                      },
                      "scheduled_at": {
                        "type": "string",
                        "description": "Publication timestamp of Moment. Expects UTC time in ISO 8601 format.",
                        "format": "date-time",
                        "example": "2024-10-07T10:42:37.115Z"
                      },
                      "from_office": {
                        "type": "boolean",
                        "description": "From office",
                        "example": true
                      },
                      "formatted_address": {
                        "type": "string",
                        "description": "Formatted address",
                        "example": "Bay Lake, FL 32836, USA. If it will be blank then `[country, administrative_area, city]` will be used."
                      },
                      "country": {
                        "type": "string",
                        "description": "Country ISO code, `required` unless `from_office` is `true`",
                        "example": "US"
                      },
                      "administrative_area": {
                        "type": "string",
                        "description": "Administrative area, `required` unless `from_office` is `true`",
                        "example": "NY"
                      },
                      "city": {
                        "type": "string",
                        "description": "City, `required` unless `from_office` is `true`",
                        "example": "New York"
                      },
                      "coords": {
                        "type": "object",
                        "properties": {
                          "lat": {
                            "type": "number",
                            "format": "float",
                            "description": "Latitude, `required` unless `from_office` is `true`",
                            "minimum": -90,
                            "maximum": 90,
                            "example": 0
                          },
                          "lng": {
                            "type": "number",
                            "format": "float",
                            "description": "Longitude, `required` unless `from_office` is `true`",
                            "minimum": -90,
                            "maximum": 90,
                            "example": 0
                          }
                        }
                      },
                      "publish_gbp_video": {
                        "type": "boolean",
                        "description": "Publish video",
                        "example": true
                      },
                      "video_urls": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "description": "Video URL",
                          "example": "https://somewhere.s3.us-east-1.amazonaws.com/video.MOV"
                        }
                      },
                      "images": {
                        "type": "array",
                        "description": "If multiple images attached, the first array element is always the cover image",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Image ID",
                              "example": "0vzw45re"
                            },
                            "description": {
                              "type": "string",
                              "description": "Image description",
                              "example": "This image is amazing"
                            }
                          }
                        }
                      }
                    },
                    "required": [
                      "description",
                      "customer"
                    ]
                  }
                },
                "required": [
                  "moment"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Moment created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "0vzw45re"
                    },
                    "customer": {
                      "type": "string",
                      "example": "John Doe"
                    },
                    "description": {
                      "type": "string",
                      "example": "Excelent work"
                    },
                    "state": {
                      "type": "string",
                      "example": "approved"
                    },
                    "business": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "0vzw45re"
                        },
                        "name": {
                          "type": "string",
                          "example": "Awesome Business"
                        },
                        "place_id": {
                          "type": "string",
                          "example": "8e089522353be5bc7d8a061f3cced4a1"
                        },
                        "remote_id": {
                          "type": "string",
                          "example": 1221388546578571000
                        }
                      }
                    },
                    "category": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "0vzw45re"
                        },
                        "title": {
                          "type": "string",
                          "example": "Plumbing"
                        }
                      }
                    },
                    "categories": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "0vzw45re"
                          },
                          "title": {
                            "type": "string",
                            "example": "Plumbing"
                          }
                        }
                      },
                      "example": [
                        {
                          "id": "0vzw45re",
                          "title": "Plumbing"
                        },
                        {
                          "id": "2vtw71mo",
                          "title": "Spring"
                        }
                      ]
                    },
                    "employee": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "0vzw45re"
                        },
                        "name": {
                          "type": "string",
                          "example": "Awesome Employee"
                        }
                      }
                    },
                    "from_office": {
                      "type": "boolean",
                      "example": true
                    },
                    "coords": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "format": "float",
                          "description": "Latitude",
                          "example": 0
                        },
                        "lng": {
                          "type": "number",
                          "format": "float",
                          "description": "Longitude",
                          "example": 0
                        }
                      }
                    },
                    "country": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "United States of America"
                        },
                        "iso_code": {
                          "type": "string",
                          "example": "US"
                        }
                      }
                    },
                    "administrative_area": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Georgia"
                        },
                        "short_name": {
                          "type": "string",
                          "example": "GA"
                        }
                      }
                    },
                    "city": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "New York"
                        },
                        "short_name": {
                          "type": "string",
                          "example": "NY"
                        }
                      }
                    },
                    "formatted_address": {
                      "type": "string",
                      "example": "Bay Lake, FL 32836, USA"
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "v7l8jyz1"
                          },
                          "full_url": {
                            "type": "string",
                            "example": "http://example.com/uploads/image/v7/v7l8jyz1/cat.jpeg"
                          },
                          "thumbnail_url": {
                            "type": "string",
                            "example": "http://example.com/uploads/image/v7/v7l8jyz1/preview_cat.jpeg"
                          },
                          "description": {
                            "type": "string",
                            "example": "This image is amazing"
                          }
                        }
                      }
                    },
                    "video_urls": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "https://somewhere.s3.us-east-1.amazonaws.com/video.MOV"
                      }
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "readOnly": true,
                      "example": "2021-06-07T09:26:37.925Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "422": {
            "description": "Validations failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "validation"
                    },
                    "error": {
                      "type": "object",
                      "description": "Validations errors",
                      "example": {
                        "country": [
                          "can't be blank"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/gb/public/moments": {
      "get": {
        "tags": [
          "GeoBoosterWidget"
        ],
        "summary": "Moments list",
        "description": "Use this endpoint to get a paginated collection of Moments\n",
        "security": [
          {
            "gb_widget_id": []
          }
        ],
        "operationId": "approved_moments",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileMoments"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/gb_widget_401"
          }
        }
      }
    }
  },
  "webhooks": {
    "new_moment": {
      "post": {
        "tags": [
          "GeoBoosterWidget"
        ],
        "summary": "Moments Webhook",
        "description": "Every 5 minutes LocalViking checks if there are new or updated Moments for every business in the GeoBooster section.\n\nWhen Moments are present, LocalViking performs POST request to the webhook URL, specified for a business.\n\n The Webhook expects any 2xx status code to indicate that the data was received successfully.\nOtherwise, the Moments will be added to the next webhook request.\n",
        "security": [
          {
            "moment_webhook_token": []
          }
        ],
        "operationId": "updated_moment_webhook",
        "requestBody": {
          "description": "Array of recently created Moments that weren't delivered.\n",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MobileMoments"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "description": "Response with any 2XX status to indicate that the Moments were received successfully\n"
          }
        }
      }
    },
    "geogrid_created": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Geogrid Created",
        "description": "When a Scheduled Geogrid search has been completed, it is sent to Webhooks configured to receive this event.\n",
        "operationId": "geogrid_created_webhook",
        "security": [],
        "requestBody": {
          "description": "Geogrid Created Event Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeogridCreatedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "audit_report_created": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Audit Report Created",
        "description": "When an Audit Report is finished, it is sent to Webhooks configured to receive this event.\n",
        "operationId": "audit_report_created_webhook",
        "security": [],
        "requestBody": {
          "description": "Audit Report Created Event Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuditReportCreatedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "audit_report_failed": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Audit Report Failed",
        "description": "When an Audit Report requested from GeogridWidget fails due to no competitors being found, it is sent to Webhooks configured to receive this event.\n",
        "operationId": "audit_report_failed_webhook",
        "security": [],
        "requestBody": {
          "description": "Audit Report Failed Event Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuditReportFailedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "review_created": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "New GMB Review",
        "description": "When a new GMB review received, it is sent to Webhooks configured to receive this event.",
        "operationId": "review_created_webhook",
        "security": [],
        "requestBody": {
          "description": "New Review Event Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewCreatedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "location_updated": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "GMB Location Updated",
        "description": "When a Location representation in GMB API changes, it is sent to Webhooks configured to receive this event.\n",
        "operationId": "location_updated_webhook",
        "security": [],
        "requestBody": {
          "description": "GMB Location Updated Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationUpdatedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "location_verified": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "GMB Location Verified",
        "description": "When a Location passes verification.\n",
        "operationId": "location_verified_webhook",
        "security": [],
        "requestBody": {
          "description": "GMB Location Verified Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationVerifiedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "location_deactivated": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "GMB Location Deactivated",
        "description": "When a Location receives a status indicating that it's no longer present on Google Maps, it is sent to Webhooks configured to receive this event.\n",
        "operationId": "location_deactivated_webhook",
        "security": [],
        "requestBody": {
          "description": "GMB Location Deactivated Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationDeactivatedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "location_reactivated": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "GMB Location Reactivated",
        "description": "When a Location becomes available on Google Maps again, it is sent to Webhooks configured to receive this event.\n",
        "operationId": "location_reactivated_webhook",
        "security": [],
        "requestBody": {
          "description": "GMB Location Reactivated Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationReactivatedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    },
    "google_account_disconnected": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Google Account Disconnected",
        "description": "When a Google Account token become invalid for any reason.\n",
        "operationId": "google_account_disconnected_webhook",
        "security": [],
        "requestBody": {
          "description": "Google Account Disconnected Event Webhook",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoogleAccountDisconnectedWebhook"
              }
            }
          }
        },
        "responses": {
          "2xx": {
            "$ref": "#/components/responses/webhook_200"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Can be obtained here: https://localviking.com/api_tokens \\\nExample: `Token i52p8GShC2Mj6bSVY4Jdc5k9`\n"
      },
      "gb_widget_id": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Widget ID can be obtained at https://localviking.com/gb/widgets inside the edit embed section. \\\nExample: `Widget-Id ab12cd34`\n"
      },
      "gb_widget_token": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "`Deprecated` — use `gb_widget_id` instead. \\\nExample: `Widget-Token 05b51af3349eb6bd5bb2041f9c886aqq`\n"
      },
      "gb_business_token": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "`Deprecated` \\\nExample: `Business-Token 05b51af3349eb6bd5bb2041f9c886aqq`\n"
      },
      "moment_webhook_token": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "API keys authorization is supported for Webhooks. Specify webhook and token on Business settings page\nto add the token to authorization header.\n\nExample: `Token i52p8GShC2Mj6bSVY4Jdc5k9`\n"
      }
    },
    "parameters": {
      "Page": {
        "name": "page",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        }
      },
      "PerPage": {
        "name": "per_page",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 20
        }
      }
    },
    "schemas": {
      "GeogridBusinessIdentity": {
        "type": "object",
        "properties": {
          "business_country": {
            "type": "string",
            "example": "US"
          },
          "business_name": {
            "type": "string",
            "example": "East Village Pizza"
          },
          "business_address": {
            "type": "string",
            "example": "231 Main St, Dunedin, FL 34698",
            "description": "Settable on create only. When no address was stored, the response falls back to `No Address Provided` for API-created configs, or `Service Area Business` for configs created in the UI.\n"
          },
          "business_place_id": {
            "type": "string",
            "description": "Google's PlaceID  \n[View Documentation](https://developers.google.com/maps/documentation/places/web-service/place-id)\n",
            "example": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA"
          },
          "business_store_code": {
            "type": "string",
            "readOnly": true,
            "example": "SF-0142"
          },
          "gbp_id": {
            "type": "string",
            "example": "1221388546578571000"
          },
          "location_id": {
            "type": "string",
            "example": "0vzw45re"
          }
        }
      },
      "GeogridGridGeometry": {
        "type": "object",
        "properties": {
          "grid_center_lat": {
            "type": "number",
            "format": "float",
            "example": 40.7281911
          },
          "grid_center_lng": {
            "type": "number",
            "format": "float",
            "example": -73.98509899999999
          },
          "grid_size": {
            "type": "integer",
            "example": 3,
            "default": 3,
            "enum": [
              3,
              5,
              7,
              9,
              13
            ]
          },
          "grid_point_distance": {
            "type": "number",
            "format": "float",
            "example": 1000,
            "description": "meters: `[100, 200, 500, 1000, 2500, 5000, 10000, 25000]` <br> miles: `[0.1, 0.25, 0.5, 0.75, 1, 2, 3, 5, 8, 10]`",
            "default": 100
          },
          "grid_distance_measure": {
            "type": "string",
            "enum": [
              "meters",
              "miles"
            ],
            "example": "meters",
            "default": "meters"
          },
          "grid_mask": {
            "type": "string",
            "description": "Per-point activity mask: a string of exactly `grid_size × grid_size` characters, one per grid point, in the same order as `grid_ranks_str` — from the north-west corner, west to east, then row by row southwards. `1` is an active point, `0` a disabled one; disabled points are not scanned and consume no credits. Responses always include the mask. Omit the key to keep the stored mask on update (every point is active on creation); send `null` to re-enable every point. A mask of the wrong length, with characters other than `0`/`1`, or disabling every point returns a `422` validation error keyed `grid_mask`. Only a quoted string is accepted: an array or an object is ignored as if the key were omitted, and an unquoted mask starting with `0` is not valid JSON.\n",
            "example": "011011011"
          },
          "local": {
            "type": "boolean",
            "example": true,
            "default": true
          }
        }
      },
      "GeogridAttrsModel": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GeogridBusinessIdentity"
          },
          {
            "$ref": "#/components/schemas/GeogridGridGeometry"
          }
        ]
      },
      "GeogridSchedule": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "weekly",
              "biweekly",
              "monthly",
              "day_of_month",
              "once",
              "quarterly_monthly",
              "quarterly_day_of_month",
              "quarterly_12_weeks"
            ],
            "example": "monthly",
            "default": "weekly",
            "description": "`once` creates an on-demand config that never auto-runs. `biweekly` runs every other week on `day_number`, counting the weeks from the config's next run. Fields not relevant to the selected period are cleared on save and returned as `null` — switching from `monthly` to `weekly`, for example, drops `week_number`.\n"
          },
          "day_number": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6,
            "example": 1,
            "default": 0,
            "description": "A day of the week when report generation runs. `0` is `Sunday`. Required if `period` is `weekly`, `biweekly`, `monthly` or `quarterly_monthly`."
          },
          "week_number": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4,
            "example": 1,
            "description": "A week of the month when report generation runs. Required if `period` is `monthly` or `quarterly_monthly`."
          },
          "month_day": {
            "type": "integer",
            "minimum": 1,
            "maximum": 31,
            "example": 1,
            "description": "A day of the month when report generation runs. Required if `period` is `day_of_month`, `quarterly_day_of_month` or `quarterly_12_weeks`."
          },
          "hour": {
            "type": "integer",
            "minimum": 0,
            "maximum": 23,
            "example": 9,
            "description": "Hour of the day the run starts, in `time_zone`. Only applied when **both** `hour` and `time_zone` are present — send one without the other and both are discarded. When unset, runs happen at a fixed internal hour.\n"
          },
          "time_zone": {
            "type": "string",
            "example": "Eastern Time (US & Canada)",
            "description": "Rails zone name (`Eastern Time (US & Canada)`) or IANA identifier (`America/New_York`). Normalised to the Rails name on write, so the response may differ from what was sent. See `hour` for the pairing rule.\n"
          },
          "starting_month": {
            "type": "string",
            "enum": [
              "January",
              "February",
              "March",
              "April",
              "May",
              "June",
              "July",
              "August",
              "September",
              "October",
              "November",
              "December"
            ],
            "example": "January",
            "description": "Month of the first run. Required when `period` is any `quarterly_*` value."
          }
        }
      },
      "SearchTermShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "95ppomg5"
          },
          "active": {
            "type": "boolean",
            "example": true
          },
          "text": {
            "type": "string",
            "example": "my awesome keyword"
          },
          "gif_url": {
            "type": "string",
            "readOnly": true
          },
          "gif_generated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          },
          "geogrids_count": {
            "type": "integer",
            "readOnly": true,
            "example": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          }
        }
      },
      "GeogridConfigListItem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GeogridAttrsModel"
          },
          {
            "$ref": "#/components/schemas/GeogridSchedule"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "readOnly": true,
                "example": "v4z2y85r"
              },
              "note": {
                "type": "string",
                "example": "its just a note"
              },
              "processed_at": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2021-06-07T09:26:37.925Z"
              },
              "scheduled_at": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2021-06-07T09:26:37.925Z"
              },
              "last_geogrid_created_at": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2021-06-07T09:26:37.925Z"
              },
              "search_terms": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SearchTermShow"
                }
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2021-06-07T09:26:37.925Z"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2021-06-07T09:26:37.925Z"
              }
            }
          }
        ]
      },
      "GeogridTags": {
        "description": "Accepts either an array of strings or a single comma-separated string (`\"priority,client-a\"`). On update the value **replaces** the whole tag set rather than merging into it. Send `[]` or `\"\"` to clear every tag. Omit the key to leave tags untouched. A value of any other shape is ignored, not rejected.\n",
        "oneOf": [
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          {
            "type": "string"
          }
        ],
        "example": [
          "priority",
          "client-a"
        ]
      },
      "GeogridConfigCreate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GeogridAttrsModel"
          },
          {
            "$ref": "#/components/schemas/GeogridSchedule"
          },
          {
            "type": "object",
            "properties": {
              "note": {
                "type": "string",
                "example": "its just a note"
              },
              "search_terms": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "uniqueItems": true
              },
              "tags": {
                "$ref": "#/components/schemas/GeogridTags"
              }
            },
            "required": [
              "business_name",
              "business_place_id",
              "grid_center_lat",
              "grid_center_lng"
            ]
          }
        ]
      },
      "GeogridConfigShow": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GeogridConfigListItem"
          },
          {
            "type": "object",
            "properties": {
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Tags associated with the scheduled geogrids config. Returned on `GET /geogrid_configs/{id}`; omitted from the list endpoint to avoid unnecessary lookups.\n",
                "example": [
                  "priority",
                  "client-a"
                ]
              }
            }
          }
        ]
      },
      "GeogridConfigUpdate": {
        "description": "Only grid geometry, schedule, `note`, `local` and `tags` are mutable. Business identity — `business_name`, `business_address`, `business_country`, `business_place_id`, `business_store_code`, `gbp_id`, `location_id` — is fixed when the config is created. Sending those fields is **not an error**: they are ignored and the request still returns `200` with the unchanged values. `search_terms` is ignored here too — use the Search Terms endpoints to add, toggle or remove keywords. Changing `grid_size` re-enables every grid point — positions are numbered per size, so an old mask has no meaning on the new grid. Send a `grid_mask` sized for the new grid in the same request to keep points disabled.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/GeogridGridGeometry"
          },
          {
            "$ref": "#/components/schemas/GeogridSchedule"
          },
          {
            "type": "object",
            "properties": {
              "note": {
                "type": "string",
                "example": "its just a note"
              },
              "tags": {
                "$ref": "#/components/schemas/GeogridTags"
              }
            }
          }
        ]
      },
      "SearchTermCreate": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "example": "my awesome keyword",
            "writeOnly": true
          }
        },
        "required": [
          "text"
        ]
      },
      "SearchTermUpdate": {
        "type": "object",
        "description": "Only `active` is applied. `text` is immutable — delete the search term and create a new one to change the keyword. Omitting `active` disables the term.\n",
        "properties": {
          "active": {
            "type": "boolean",
            "example": true
          }
        },
        "required": [
          "active"
        ]
      },
      "Geogrid": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GeogridAttrsModel"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "readOnly": true,
                "example": "0vzw45re"
              },
              "ranks": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "readOnly": true,
                    "minimum": 1,
                    "maximum": 21
                  },
                  "minItems": 3,
                  "maxItems": 13
                },
                "readOnly": true,
                "example": [
                  [
                    1,
                    1,
                    1
                  ],
                  [
                    1,
                    1,
                    1
                  ],
                  [
                    1,
                    1,
                    1
                  ]
                ]
              },
              "competitors": {
                "type": "array",
                "description": "Array of competitor businesses collected from all points of the geogrid search.",
                "example": [
                  {
                    "name": "East Village Pizza",
                    "rating": 4.8,
                    "reviews_count": 342,
                    "place_id": "ChIJqcgHCJ1ZwokRRmJ-uWL5DAA",
                    "image_src": "https://lh3.googleusercontent.com/p/AF1QipLuigiPizza=w408-h408-k-no",
                    "maps_url": "https://maps.google.com/maps?cid=1002003004005006001",
                    "categories": [
                      "Pizza restaurant",
                      "Italian restaurant",
                      "Takeout restaurant"
                    ],
                    "geogrid": {
                      "atgr": 1,
                      "agr": 1,
                      "solv": 1,
                      "ranks": [
                        [
                          1,
                          1,
                          1
                        ],
                        [
                          1,
                          1,
                          1
                        ],
                        [
                          1,
                          1,
                          1
                        ]
                      ]
                    },
                    "address": "231 Main St, Dunedin, FL 34698",
                    "your_company": true
                  },
                  {
                    "name": "Tony’s New York Pizza",
                    "rating": 4.5,
                    "reviews_count": 198,
                    "place_id": "ChIJK7fgW9u5kcRYRkFpz9xjRAQ",
                    "image_src": "https://lh3.googleusercontent.com/p/AF1QipTonyPizza=w408-h408-k-no",
                    "maps_url": "https://maps.google.com/maps?cid=2003004005006007002",
                    "categories": [
                      "Pizza restaurant",
                      "Italian restaurant"
                    ],
                    "geogrid": {
                      "atgr": 4.5,
                      "agr": 4.6,
                      "solv": 0.29,
                      "ranks": [
                        [
                          2,
                          2,
                          2
                        ],
                        [
                          2,
                          2,
                          2
                        ],
                        [
                          2,
                          2,
                          2
                        ]
                      ]
                    },
                    "address": "78 Bay St, Clearwater, FL 33755",
                    "your_company": false
                  },
                  {
                    "name": "Mama Rosa Pizzeria",
                    "rating": 4.3,
                    "reviews_count": 121,
                    "place_id": "ChIJR4gq3tXJwYgR3RmsPl_mr9A",
                    "image_src": "https://lh3.googleusercontent.com/p/AF1QipMamaRosa=w408-h408-k-no",
                    "maps_url": "https://maps.google.com/maps?cid=3004005006007008003",
                    "categories": [
                      "Pizza restaurant",
                      "Italian restaurant",
                      "Family restaurant"
                    ],
                    "geogrid": {
                      "atgr": 4.2,
                      "agr": 4.3,
                      "solv": 0.33,
                      "ranks": [
                        [
                          3,
                          3,
                          3
                        ],
                        [
                          3,
                          3,
                          3
                        ],
                        [
                          3,
                          3,
                          3
                        ]
                      ]
                    },
                    "address": "452 Gulf Blvd, Indian Rocks Beach, FL 33785",
                    "your_company": false
                  }
                ]
              },
              "agr": {
                "type": "number",
                "format": "float",
                "readOnly": true,
                "example": 7.91,
                "description": "Average Grid Rank. Only nodes with ranks equal to \"20\" and less considered. If there are no such nodes, `null` value is returned.\n"
              },
              "atgr": {
                "type": "number",
                "format": "float",
                "readOnly": true,
                "example": 18.06,
                "description": "Average Total Grid Rank. All nodes considered. The \"21\" value is used for nodes with ranks over \"20\". If the grid is either in \"processing\" or \"error\" state, `null` value is returned.\n"
              },
              "solv": {
                "type": "number",
                "format": "float",
                "readOnly": true,
                "example": 0.02,
                "description": "Share of Local Voice. The percentage of nodes having ranks equal to \"3\" and less. If the grid is either in \"processing\" or \"error\" state, `null` value is returned.\n"
              },
              "state": {
                "type": "string",
                "enum": [
                  "initialized",
                  "error",
                  "finished"
                ],
                "readOnly": true,
                "example": "finished"
              },
              "search_term": {
                "type": "string",
                "example": "keyword"
              },
              "image_url": {
                "type": "string",
                "readOnly": true
              },
              "headless_image_url": {
                "type": "string",
                "readOnly": true,
                "description": "A geogrid-image with map only."
              },
              "geogrid_config_id": {
                "type": "string",
                "readOnly": true,
                "example": "4sfv3432"
              },
              "image_public_path": {
                "type": "string",
                "readOnly": true,
                "example": "/images/geogrids/v10/zw/n0/zwn0vd9n/the-sub-joint-sandwich-shop-13x13-20240730-1345.png"
              },
              "highlighted_positions": {
                "type": "array",
                "readOnly": true,
                "items": {
                  "type": "integer"
                },
                "example": [
                  1,
                  2
                ]
              },
              "public_url": {
                "type": "string",
                "readOnly": true,
                "example": "https://app.localbusinessreporting.com/stats/geogrids/zwn0vd9n"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2024-09-05T17:47:18.136+02:00"
              },
              "created_at_formatted": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "Sep  5, 2024 5:47 PM"
              },
              "finished_at": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "example": "2024-09-05T18:20:22.942+02:00"
              },
              "grid_ranks_str": {
                "type": "string",
                "readOnly": true,
                "example": "111111111"
              },
              "top3_since_last_run": {
                "type": "boolean",
                "readOnly": true,
                "example": false,
                "description": "Identifies if a geogrid has a node that received a rank equal to \"3\" or less but had a rank greater than \"3\" during the last run.  The field is present for scheduled geogrids only.\n"
              },
              "brand_new_top3": {
                "type": "boolean",
                "readOnly": true,
                "description": "Identifies if a geogrid has a node that has received a rank equal to or less than \"3\" for the first time in the current geogrid configuration. The field is present for scheduled geogrids only.\n",
                "example": false
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "readOnly": true,
                "description": "Tags associated with the geogrid. For scheduled geogrids, tags are merged with the tags of the parent scheduled geogrids config. Returned on `GET /geogrids/{id}` and in the `geogrid.created` webhook payload; omitted from the list endpoint to avoid unnecessary lookups.\n",
                "example": [
                  "priority",
                  "client-a"
                ]
              }
            }
          }
        ]
      },
      "GeogridCreate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/GeogridAttrsModel"
          },
          {
            "type": "object",
            "properties": {
              "search_term": {
                "type": "string",
                "writeOnly": true,
                "example": "keyword"
              },
              "tags": {
                "$ref": "#/components/schemas/GeogridTags"
              }
            },
            "required": [
              "business_name",
              "business_place_id",
              "grid_center_lat",
              "grid_center_lng",
              "search_term"
            ]
          }
        ]
      },
      "Review": {
        "type": "object",
        "properties": {
          "remote_id": {
            "type": "string",
            "description": "Google ID of the Review",
            "example": "AIe9_BHVBnWjBJvk33vq2QEm0wl-I3Al1cEffT9w2cmTcBulPFWr3FnBa1oRVLKmfo7H1fUSKmxvlxXzc5JpbTfQB6xqQakttYA3CH_JZ4WWXMSNmtZVNTE"
          },
          "remote_location_id": {
            "type": "string",
            "description": "Google ID of an associated GMB Location",
            "example": 17283743038847394000
          },
          "reviewer": {
            "type": "object",
            "properties": {
              "display_name": {
                "type": "string",
                "description": "Review author name",
                "example": "John Doe"
              },
              "profile_photo_url": {
                "type": "string",
                "format": "uri",
                "description": "Google profile photo url",
                "example": "https://lh5.googleusercontent.com/-uLMclY7tUQo/AAAAAAAAAAI/AAAAAAAAAAA/Hgcdk2MR49Y/c-rp-mo-br100/photo.jpg"
              }
            }
          },
          "rating": {
            "type": "number",
            "description": "Google ID of an associated GMB Location",
            "enum": [
              1,
              2,
              3,
              4,
              5
            ]
          },
          "location_name": {
            "type": "string",
            "example": "Lesch LLC"
          },
          "location_place_id": {
            "type": "string",
            "description": "Google's PlaceID  \n[View Documentation](https://developers.google.com/maps/documentation/places/web-service/place-id)\n",
            "example": "ChIJPwlCz0zGwoAR2UN0qS6BHtE"
          },
          "text": {
            "type": "string",
            "description": "Review author name",
            "example": "Great place!!!"
          },
          "reply": {
            "type": "string",
            "description": "Reply for the review by owner",
            "example": "Your feedback is very important for us! Thank you!"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Google's timestamp in ISO8601 format",
            "example": "2022-10-17T17:38:36.189+03:00"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Google's timestamp in ISO8601 format",
            "example": "2022-10-18T10:41:03.168+03:00"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "description": "Google's timestamp in ISO8601 format  \nIt is only present if the review has been marked as deleted. \nIf the review is not deleted, this field will not appear in the response.\n",
            "example": "2022-11-17T13:28:37.189+03:00"
          }
        }
      },
      "ReviewReply": {
        "type": "object",
        "properties": {
          "reply": {
            "type": "string",
            "example": "Your feedback is very important for us! Thank you!"
          }
        },
        "required": [
          "reply"
        ]
      },
      "Location": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "a1b2c3d4"
          },
          "name": {
            "type": "string",
            "readOnly": true,
            "example": "Taco Bell"
          },
          "gbp_id": {
            "type": "string",
            "readOnly": true,
            "example": 8252129062116837000
          },
          "labels": {
            "type": "array",
            "readOnly": true,
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "example": [
              "lable1",
              "lable2"
            ]
          },
          "enabled": {
            "type": "boolean",
            "readOnly": true,
            "example": true
          },
          "address": {
            "type": "string",
            "readOnly": true,
            "example": "5200 CA-1, Pacifica, CA 94044, Estados Unidos"
          },
          "source_type": {
            "type": "string",
            "readOnly": true,
            "example": "Manual"
          },
          "place_id": {
            "type": "string",
            "readOnly": true,
            "example": "ChIJS2lAypx6j4AR97GeGitnTx8"
          },
          "store_code": {
            "type": "string",
            "readOnly": true,
            "example": "taco-la"
          },
          "states": {
            "type": "array",
            "readOnly": true,
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "example": [
              "verified",
              "suspended",
              "can_update",
              "can_delete",
              "disconnected",
              "can_modify_service_list"
            ]
          },
          "tags": {
            "type": "array",
            "readOnly": true,
            "items": {
              "type": "string"
            },
            "uniqueItems": true,
            "example": [
              "Los Angeles",
              "Taco"
            ]
          },
          "note": {
            "type": "string",
            "readOnly": true,
            "example": "Best taco in LA!"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          },
          "keywords_synced_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          },
          "time_zone": {
            "type": "string",
            "readOnly": true,
            "description": "Location Time Zone",
            "example": "Pacific Time (US & Canada)"
          },
          "category": {
            "description": "Primary Category",
            "readOnly": true,
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "example": "Do-it-yourself shop",
                "description": "Category Title"
              },
              "remote_id": {
                "type": "string",
                "example": "gcid:do_it_yourself_store",
                "description": "Google ID of a category"
              }
            }
          },
          "additional_categories": {
            "type": "array",
            "readOnly": true,
            "description": "List of additional categories",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "Tool rental service"
                },
                "remote_id": {
                  "type": "string",
                  "example": "gcid:tool_rental_service"
                }
              }
            }
          },
          "phone_number": {
            "type": "string",
            "format": "phone",
            "readOnly": true,
            "example": "+1-123-1234567"
          },
          "additional_phone_numbers": {
            "type": "array",
            "readOnly": true,
            "description": "**Only for GBP Locations.** List of additional phone numbers.",
            "items": {
              "type": "string",
              "format": "phone"
            },
            "example": [
              "+1-777-01010100",
              "+1-777-01010200"
            ]
          },
          "gmb_url": {
            "type": "string",
            "format": "uri",
            "readOnly": true,
            "description": "Google Maps Business URL",
            "example": "https://google.com/maps/place/Some+Business/@32.4588242,-117.2444177,4.9z/data=[...]"
          },
          "website_url": {
            "type": "string",
            "format": "uri",
            "readOnly": true,
            "description": "Business website URL listed on Google Maps",
            "example": "https://business.com"
          },
          "google_account_emails": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            },
            "readOnly": true,
            "description": "**Only for GBP Locations.** List of connected Google Accounts linked with the location",
            "example": [
              "account@gmail.com",
              "another@your-company-business-domain.com"
            ]
          },
          "service_area": {
            "type": "object",
            "readOnly": true,
            "description": "**Only for GBP Locations.** List of service areas in raw Google format",
            "properties": {
              "places": {
                "type": "object",
                "properties": {
                  "place_infos": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "place_id": {
                          "type": "string",
                          "description": "Google PlaceID",
                          "example": "ChIJCzYy5IS16lQRQrfeQ5K5Oxw"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name associated with the PlaceID",
                          "example": "United States"
                        }
                      }
                    },
                    "examples": [
                      {
                        "name": "United States",
                        "place_id": "ChIJCzYy5IS16lQRQrfeQ5K5Oxw"
                      }
                    ]
                  },
                  "business_type": {
                    "type": "string",
                    "enum": [
                      "CUSTOMER_AND_BUSINESS_LOCATION",
                      "CUSTOMER_LOCATION_ONLY"
                    ],
                    "description": "Business Type. Usually, that's an indicator to distinguish SAB and regular locations.  See more: https://developers.google.com/my-business/reference/rest/v4/accounts.locations#businesstype\n"
                  }
                }
              }
            },
            "example": {
              "places": {
                "place_infos": [
                  {
                    "name": "United States",
                    "place_id": "ChIJCzYy5IS16lQRQrfeQ5K5Oxw"
                  }
                ]
              },
              "business_type": "CUSTOMER_AND_BUSINESS_LOCATION"
            }
          },
          "description": {
            "type": "string",
            "readOnly": true,
            "description": "**Only for GBP Locations.** Google Business Profile description",
            "example": "We do some job month after month."
          }
        }
      },
      "GmbLocationInsight": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "example": "2021-06-07",
            "description": "Dates are displayed in UTC time zone"
          },
          "queries_direct": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "queries_indirect": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "views_maps": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "views_search": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "actions_website": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "actions_phone": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "actions_driving_directions": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "photos_views_merchant": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "photos_views_customers": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "photos_count_merchant": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "photos_count_customers": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "local_post_views_search": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "local_post_actions_call_to_action": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "metric_unspecified": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          },
          "queries_chain": {
            "readOnly": true,
            "type": "integer",
            "example": 1,
            "deprecated": true,
            "description": "Available only for the history data fetched via the deprecated Report Insights API"
          }
        }
      },
      "GmbLocationPerformanceMetric": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "example": "2021-06-07",
            "description": "Dates are displayed in UTC time zone"
          },
          "business_impressions_desktop_maps": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          },
          "business_impressions_desktop_search": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          },
          "business_impressions_mobile_maps": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          },
          "business_impressions_mobile_search": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          },
          "business_conversations": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          },
          "business_direction_requests": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          },
          "call_clicks": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          },
          "website_clicks": {
            "readOnly": true,
            "type": "integer",
            "example": 1
          }
        }
      },
      "GmbLocationSearchImpressionsInsight": {
        "type": "object",
        "properties": {
          "search_keyword": {
            "type": "string",
            "readOnly": true,
            "example": "traffic runners",
            "description": "A search keywords used to find a business in search or maps."
          },
          "insights_value": {
            "readOnly": true,
            "type": "integer",
            "example": 25,
            "description": "The sum of the number of unique users that used the keyword in a month."
          },
          "less_threshold": {
            "readOnly": true,
            "type": "boolean",
            "example": false,
            "description": "An indicator that says that the actual insights value is below than the threshold. For example if less_threshold is true and insights_value is 15 it means that the actual insights value is less than 15."
          },
          "month": {
            "readOnly": true,
            "type": "string",
            "format": "date",
            "example": "2021-06",
            "description": "The year and month of this insight."
          }
        }
      },
      "AuditConfiguration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "0vzw45re"
          },
          "creator_id": {
            "type": "integer",
            "readOnly": true,
            "example": 9460
          },
          "name": {
            "type": "string",
            "example": "Myles Long"
          },
          "status": {
            "type": "string",
            "enum": [
              "initialized",
              "searching_competitors",
              "choosing_competitors",
              "scheduled",
              "disabled"
            ],
            "readOnly": true,
            "example": "scheduled"
          },
          "report_in_progress": {
            "type": "boolean",
            "example": true,
            "default": false
          },
          "report_started_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z",
            "default": null
          },
          "report_finished_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z",
            "default": null
          },
          "processed_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z",
            "default": null
          },
          "scheduled_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "example": "Apr 22, 2023",
            "default": null
          },
          "last_report_created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z",
            "default": null
          },
          "reports_count": {
            "type": "integer",
            "readOnly": true,
            "example": 11,
            "default": 0
          },
          "location": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "example": "Reichel Inc"
              },
              "address": {
                "type": "string",
                "example": "Laronda Prairie, 8907, Lueilwitzfort, New Mexico 49005, US"
              },
              "store_code": {
                "type": "string",
                "example": "GReich001"
              },
              "location_id": {
                "type": "string",
                "example": "7221388546578571045"
              }
            }
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "Teriyaki Chicken Donburi"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "Apr 21, 2023 8:43 AM"
          },
          "schedule": {
            "type": "object",
            "properties": {
              "day_number": {
                "type": "integer",
                "default": 0
              },
              "week_number": {
                "type": "integer",
                "example": 2
              },
              "periodicity": {
                "type": "string",
                "default": "weekly",
                "example": "monthly"
              },
              "month_day": {
                "type": "integer",
                "example": null
              }
            }
          },
          "chosen_competitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 1727
                },
                "name": {
                  "type": "string",
                  "example": "Yundt Group"
                },
                "formatted_address": {
                  "type": "string",
                  "example": "904 Mika Pass, VonRuedenfurt, AK 24180-1318"
                },
                "image_src": {
                  "type": "string",
                  "example": "https://pigment.github.io/fake-logos/logos/medium/color/13.png"
                }
              }
            }
          }
        }
      },
      "AuditConfigurationAttrsModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Graham Plumbing and Drain Cleaning, Inc."
          },
          "place_id": {
            "type": "string",
            "example": "ChIJUXC5nQhtkFQRK1daqKRwwga"
          },
          "keyword": {
            "type": "string",
            "example": "emergency cleaning"
          },
          "schedule_attributes": {
            "type": "object",
            "properties": {
              "day_number": {
                "type": "integer",
                "example": 1
              },
              "week_number": {
                "type": "integer",
                "example": 1,
                "enum": [
                  1,
                  2,
                  3,
                  4
                ]
              },
              "month_day": {
                "type": "integer",
                "example": 1
              },
              "periodicity": {
                "type": "string",
                "example": "weekly",
                "enum": [
                  "weekly",
                  "monthly",
                  "day_of_month"
                ]
              }
            }
          }
        }
      },
      "AuditConfigurationCreate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/AuditConfigurationAttrsModel",
            "required": [
              "name",
              "place_id",
              "keyword",
              "schedule_attributes"
            ]
          }
        ]
      },
      "AuditConfigurationUpdate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/AuditConfigurationAttrsModel"
          }
        ]
      },
      "AuditConfigurationRaw": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true,
            "example": 102
          },
          "name": {
            "type": "string",
            "example": "Myles Long"
          },
          "obfuscated_id": {
            "type": "string",
            "readOnly": true,
            "example": "0vzw45re"
          },
          "status": {
            "type": "string",
            "enum": [
              "initialized",
              "searching_competitors",
              "choosing_competitors",
              "scheduled",
              "disabled"
            ],
            "readOnly": true,
            "example": "scheduled"
          },
          "creator_id": {
            "type": "integer",
            "readOnly": true,
            "example": 9460
          },
          "organization_id": {
            "type": "integer",
            "readOnly": true,
            "example": 3
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "Teriyaki Chicken Donburi"
            }
          },
          "report_started_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2023-04-05 02:32:36 -0400",
            "default": null
          },
          "report_finished_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2023-04-05 02:32:36 -0400",
            "default": null
          },
          "org_location_id": {
            "type": "integer",
            "readOnly": true,
            "example": 278839
          },
          "competitors_ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "example": 194083908
            }
          },
          "scheduled_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "example": "2023-04-09",
            "default": null
          },
          "last_report_created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2023-04-05 02:32:36 -0400",
            "default": null
          },
          "processing_log_data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "report_id": {
                      "type": "string",
                      "example": "v4z2d75r"
                    },
                    "user_email": {
                      "type": "string",
                      "example": "team@localviking.com"
                    }
                  }
                },
                "error": {
                  "type": "string",
                  "example": null
                },
                "message": {
                  "type": "string",
                  "example": "Audit sections populated"
                },
                "timestamp": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-05T06:32:38.354Z"
                }
              }
            }
          },
          "reports_count": {
            "type": "integer",
            "readOnly": true,
            "example": 11,
            "default": 0
          },
          "posts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "CIHM0ogKEICAgICRuZLMxgE"
                },
                "text": {
                  "type": "string",
                  "example": "App Academy has upcoming courses! The application process takes ~3-8 weeks, so make sure to apply right away."
                },
                "photo_url": {
                  "type": "string",
                  "default": null,
                  "example": null
                },
                "when": {
                  "type": "string",
                  "example": "6 days ago"
                },
                "timestamp": {
                  "type": "integer",
                  "example": 1680727230
                },
                "shared_places_spot_id": {
                  "type": "integer",
                  "example": 64984
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-11T14:27:38.110Z"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-11T14:27:38.110Z"
                }
              }
            }
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "olMnROxuJhOHdV-otpWYIg"
                },
                "timestamp": {
                  "type": "integer",
                  "example": 1681207200
                },
                "preview_url": {
                  "type": "string",
                  "example": "https://streetviewpixels-pa.googleapis.com/v1/thumbnail?panoid=olMnROxuJhOHdV-otpWYIg&cb_client=maps_sv.tactile.gps&w=203&h=100&yaw=68.34002&pitch=0&thumbfov=100"
                },
                "date": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2020-10-14 04:00:00 -0400"
                },
                "shared_places_spot_id": {
                  "type": "integer",
                  "example": 64984
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-12 09:38:28 -0400"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-12 09:38:28 -0400"
                }
              }
            }
          },
          "reviews": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "ChdDSUhNMG9nS0VJQ0FnSURoZzVISDJ3RRAB"
                },
                "when": {
                  "type": "string",
                  "example": "3 weeks ago"
                },
                "stars": {
                  "type": "integer",
                  "example": 5
                },
                "timestamp": {
                  "type": "integer",
                  "example": 1678948405
                },
                "author": {
                  "type": "string",
                  "example": "Brittany Hasty"
                },
                "author_homepage": {
                  "type": "string",
                  "example": "https://www.google.com/maps/contrib/106545334564729713182?hl=en-US"
                },
                "author_title": {
                  "type": "string",
                  "example": "1 review"
                },
                "author_reviews_count": {
                  "type": "integer",
                  "example": 1
                },
                "response_timestamp": {
                  "type": "integer",
                  "example": 0
                },
                "shared_places_spot_id": {
                  "type": "integer",
                  "example": 194083908
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-12 09:39:08 -0400"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-12 09:39:08 -0400"
                }
              }
            }
          },
          "summaries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "batch_id": {
                  "type": "string",
                  "example": "7ac69e60-e5af-4a7f-b3fc-b60837a13e29"
                },
                "status": {
                  "type": "string",
                  "example": "done"
                },
                "places_scraper_errors": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "example": "locationId must match format \"uuid\""
                  }
                },
                "photos_count": {
                  "type": "integer",
                  "example": 6
                },
                "posts_count": {
                  "type": "integer",
                  "example": 5
                },
                "reviews_count": {
                  "type": "integer",
                  "example": 61
                },
                "location_categories": {
                  "type": "object"
                },
                "shared_places_spot_id": {
                  "type": "integer",
                  "example": 194083908
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-12 09:39:08 -0400"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2023-04-12 09:39:08 -0400"
                }
              }
            }
          }
        }
      },
      "AuditReport": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "qxl09olg"
          },
          "created_by": {
            "type": "string",
            "readOnly": true,
            "example": "schedule"
          },
          "creator_email": {
            "type": "string",
            "readOnly": true,
            "example": null
          },
          "configuration_id": {
            "type": "string",
            "example": "3v5j0vl8"
          },
          "configuration_name": {
            "type": "string",
            "example": "Marge Innastraightline"
          },
          "keyword": {
            "type": "string",
            "example": "Linguine with Clams"
          },
          "schedule": {
            "type": "object",
            "properties": {
              "day_number": {
                "type": "integer",
                "default": 0
              },
              "week_number": {
                "type": "integer",
                "example": 2
              },
              "periodicity": {
                "type": "string",
                "default": "weekly",
                "example": "monthly"
              },
              "month_day": {
                "type": "integer",
                "example": null
              }
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "initialized",
              "collecting_data",
              "finished",
              "finished_with_warnings",
              "failed"
            ],
            "readOnly": true,
            "example": "finished"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "Apr 21, 2023 12:12 PM"
          },
          "finished_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "Apr 21, 2023 12:12 PM"
          },
          "pending_report_sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "failed_report_sources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "report_warnings": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "Categories section is not completed"
            }
          },
          "chosen_competitors": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "American Window & Glass Inc"
            }
          },
          "location": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "example": "Lesch LLC"
              },
              "address": {
                "type": "string",
                "example": "Alexis Lodge, 58650, North Katherynview, Minnesota 66462, US"
              },
              "store_code": {
                "type": "string",
                "example": "GLesch001"
              }
            }
          }
        }
      },
      "NoGbpAudit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "a1b2c3d4"
          },
          "keyword": {
            "type": "string",
            "readOnly": true,
            "example": "food"
          },
          "status": {
            "type": "string",
            "enum": [
              "initialized",
              "collecting_data",
              "finished",
              "finished_with_warnings",
              "failed"
            ],
            "readOnly": true,
            "example": "collecting_data"
          },
          "created_at": {
            "type": "string",
            "description": "Created Timestamp",
            "format": "date-time",
            "example": "May 22, 2024 9:10 AM"
          },
          "address": {
            "type": "string",
            "readOnly": true,
            "example": "Moskow Idaho USA"
          },
          "finished_at": {
            "type": "string",
            "readOnly": true,
            "description": "Finished Timestamp",
            "format": "date-time",
            "example": "May 22, 2024 9:40 AM"
          }
        }
      },
      "NoGbpAuditCreate": {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "example": "food",
            "writeOnly": true
          },
          "city": {
            "type": "string",
            "example": "Moscow",
            "writeOnly": true
          },
          "state": {
            "type": "string",
            "example": "Idaho",
            "writeOnly": true
          },
          "country": {
            "type": "string",
            "example": "USA",
            "writeOnly": true
          }
        },
        "required": [
          "keyword",
          "city"
        ]
      },
      "NoGbpAuditShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "a1b2c3d4"
          },
          "keyword": {
            "type": "string",
            "readOnly": true,
            "example": "fender"
          },
          "status": {
            "type": "string",
            "enum": [
              "initialized",
              "collecting_data",
              "finished",
              "finished_with_warnings",
              "failed"
            ],
            "readOnly": true,
            "example": "collecting_data"
          },
          "created_at": {
            "type": "string",
            "description": "Created Timestamp",
            "format": "date-time",
            "example": "May 22, 2024 9:10 AM"
          },
          "address": {
            "type": "string",
            "readOnly": true,
            "example": "Moskow Idaho USA"
          },
          "finished_at": {
            "type": "string",
            "readOnly": true,
            "description": "Finished Timestamp",
            "format": "date-time",
            "example": "May 22, 2024 9:40 AM"
          },
          "competitors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "competitor": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "readOnly": true,
                      "example": "Guitarguitar Glasgow"
                    },
                    "rating": {
                      "type": "number",
                      "readOnly": true,
                      "example": 4.8
                    },
                    "place_id": {
                      "type": "string",
                      "readOnly": true,
                      "example": "ChIJt1lu46NGiEgR1hu6b1VHsWA"
                    },
                    "image_src": {
                      "type": "string",
                      "readOnly": true,
                      "example": "https://lh5.googleusercontent.com/p/AF1QipOHSkdqs2g6vsTbFBpZZ8RZYW7KfwDtUIBOKKjT=w408-h306-k-no"
                    },
                    "maps_url": {
                      "type": "string",
                      "readOnly": true,
                      "example": "https://maps.google.com/maps?cid=6967428530791128022"
                    },
                    "categories": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "example": [
                        "Guitar store",
                        "Musical instrument store"
                      ]
                    },
                    "address": {
                      "type": "string",
                      "readOnly": true,
                      "example": "36 Trongate, Glasgow G1 5ES, United Kingdom"
                    },
                    "order": {
                      "type": "string",
                      "readOnly": true,
                      "example": null
                    },
                    "phone": {
                      "type": "string",
                      "readOnly": true,
                      "example": 12345678
                    },
                    "lon": {
                      "type": "string",
                      "readOnly": true,
                      "example": -4.2447549
                    },
                    "lat": {
                      "type": "string",
                      "readOnly": true,
                      "example": 55.85700759999999
                    }
                  }
                },
                "summary": {
                  "type": "object",
                  "properties": {
                    "location_attributes": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 55
                        },
                        "human_name": {
                          "type": "string",
                          "readOnly": true,
                          "example": "LGBTQ+ friendly"
                        }
                      }
                    },
                    "location_categories": {
                      "type": "object",
                      "properties": {
                        "hamburger_restaurant": {
                          "type": "string",
                          "readOnly": true,
                          "example": "Hamburger restaurant"
                        }
                      }
                    },
                    "service_areas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "example": [
                        "San Francisco"
                      ]
                    },
                    "business_attributes": {
                      "type": "object",
                      "properties": {
                        "present": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "group": {
                                "type": "string",
                                "readOnly": true,
                                "example": "Service options"
                              },
                              "attr": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "example": [
                                  "Delivery",
                                  "Takeaway",
                                  "Dine-in"
                                ]
                              }
                            }
                          }
                        },
                        "absent": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "group": {
                                "type": "string",
                                "readOnly": true,
                                "example": "Payments"
                              },
                              "attr": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "example": [
                                  "Credit cards"
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "google_rating": {
                      "type": "number",
                      "readOnly": true,
                      "example": 4.8
                    },
                    "google_total_media_count": {
                      "type": "integer",
                      "example": 36
                    },
                    "media_count": {
                      "type": "integer",
                      "example": 36
                    },
                    "google_total_posts_count": {
                      "type": "integer",
                      "example": 1
                    },
                    "posts_count": {
                      "type": "integer",
                      "example": 0
                    },
                    "google_total_reviews_count": {
                      "type": "integer",
                      "example": 7
                    },
                    "reviews_count": {
                      "type": "integer",
                      "example": 7
                    }
                  }
                },
                "posts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "readOnly": true,
                        "example": "AF1QipMq5_b9tNTS_SWinnesmj5sixmQLp98aF5bdfml"
                      },
                      "text": {
                        "type": "string",
                        "readOnly": true,
                        "example": "Get points toward free pizza by ordering online, in-store"
                      },
                      "photo_url": {
                        "type": "string",
                        "readOnly": true,
                        "example": "https://lh3.googleusercontent.com/geougc/AF1QipO9v8t86Pa1QSzh0tX7ybMYBlzQ12__bdP"
                      },
                      "when": {
                        "type": "string",
                        "readOnly": true,
                        "example": "4 years ago"
                      },
                      "post_type_id": {
                        "type": "integer",
                        "readOnly": true,
                        "example": 1
                      },
                      "post_type_name": {
                        "type": "string",
                        "readOnly": true,
                        "example": "event"
                      },
                      "original_photo_url": {
                        "type": "string",
                        "readOnly": true,
                        "example": "https://lh3.googleusercontent.com/geougc/AF1QipO9v8t86Pa1QSzh0tX7ybMYBlzQ12__bdPzw"
                      },
                      "timestamp": {
                        "type": "integer",
                        "readOnly": true,
                        "example": 1540820548,
                        "description": "Unix timestamp"
                      }
                    }
                  }
                },
                "media": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "readOnly": true,
                        "example": "AF1QipMq5_b9tNTS_SWinnesmj5sixmQLp98aF5bdfml"
                      },
                      "preview_url": {
                        "type": "string",
                        "readOnly": true,
                        "example": "https://lh5.googleusercontent.com/p/AF1QipMq5_b9tNTS_SWinnesmj5sixmQLp98aF5bdfml=w203-h152-k-no"
                      },
                      "kind": {
                        "type": "string",
                        "readOnly": true,
                        "example": "image"
                      },
                      "media_type_id": {
                        "type": "integer",
                        "readOnly": true,
                        "example": 1
                      },
                      "media_type_name": {
                        "type": "string",
                        "readOnly": true,
                        "example": "image"
                      },
                      "original_url": {
                        "type": "string",
                        "readOnly": true,
                        "example": "https://lh5.googleusercontent.com/p/AF1QipMq5_b9tNTS_SWinnesmj5sixmQLp98aF5bdfml=w4032-h3024"
                      },
                      "timestamp": {
                        "type": "integer",
                        "readOnly": true,
                        "example": 1540820548,
                        "description": "Unix timestamp"
                      }
                    }
                  }
                },
                "reviews": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "readOnly": true,
                        "example": "ChZDSUhNMG9nS0VJQ0FnSUNzZ1BTOGR3EAE"
                      },
                      "body": {
                        "type": "string",
                        "readOnly": true,
                        "example": "David and Lori to help in my firm's interest to hire an executive assistant"
                      },
                      "author": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "readOnly": true,
                            "example": "Erik Sorenson"
                          },
                          "homepage": {
                            "type": "string",
                            "readOnly": true,
                            "example": "https://www.google.com/maps/contrib/10651688"
                          },
                          "photos_count": {
                            "type": "integer",
                            "example": 3
                          },
                          "rank": {
                            "type": "string",
                            "readOnly": true,
                            "example": "1 review"
                          },
                          "reviews_count": {
                            "type": "integer",
                            "example": 1
                          }
                        }
                      },
                      "stars": {
                        "type": "integer",
                        "example": 5
                      },
                      "max_stars": {
                        "type": "integer",
                        "example": 5
                      },
                      "when": {
                        "type": "string",
                        "readOnly": true,
                        "example": "4 years ago"
                      },
                      "link": {
                        "type": "string",
                        "readOnly": true,
                        "example": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sChZDSUhNMG9nS0VJQ0FnSUNzZ1BTOG"
                      },
                      "timestamp": {
                        "type": "integer",
                        "readOnly": true,
                        "example": 1540820548,
                        "description": "Unix timestamp"
                      },
                      "response_body": {
                        "type": "string",
                        "readOnly": true,
                        "example": "Sorry we weren't available at that time."
                      },
                      "response_timestamp": {
                        "type": "integer",
                        "readOnly": true,
                        "example": 1540820548
                      }
                    }
                  }
                },
                "gbp_services": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "category": {
                        "type": "string",
                        "readOnly": true,
                        "example": "Employment Agency"
                      },
                      "name": {
                        "type": "string",
                        "readOnly": true,
                        "example": "Direct Hire"
                      },
                      "description": {
                        "type": "string",
                        "readOnly": true,
                        "example": "Some description"
                      },
                      "price": {
                        "type": "string",
                        "readOnly": true
                      }
                    }
                  }
                },
                "qna": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "readOnly": true,
                        "example": "8@1:CAESG0J6VVVCVWdCSkl0aW9OT21BQVNZY0E|"
                      },
                      "body": {
                        "type": "string",
                        "readOnly": true,
                        "example": "Do you deal in slate countertops?"
                      },
                      "section": {
                        "type": "string",
                        "readOnly": true,
                        "example": "answered"
                      },
                      "upvote_count": {
                        "type": "integer",
                        "readOnly": true,
                        "example": 2
                      },
                      "when": {
                        "type": "string",
                        "readOnly": true,
                        "example": "5 years ago"
                      },
                      "author": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "readOnly": true,
                            "example": "Eileen Furber"
                          },
                          "avatar": {
                            "type": "string",
                            "readOnly": true,
                            "example": "https://lh3.googleusercontent.com/a/ACg8ocLKmjhF81zw"
                          },
                          "homepage": {
                            "type": "string",
                            "readOnly": true,
                            "example": "https://www.google.com/maps/contrib/114948?hl=en-US"
                          },
                          "merchant": {
                            "type": "boolean",
                            "readOnly": true,
                            "example": false
                          }
                        }
                      },
                      "answers": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "readOnly": true,
                              "example": "8@1:CAESG0J6VVVCVWdC0aW9OT21BQVNZY0E|"
                            },
                            "body": {
                              "type": "string",
                              "readOnly": true,
                              "example": "yes we do"
                            },
                            "upvote_count": {
                              "type": "integer",
                              "readOnly": true,
                              "example": 0
                            },
                            "when": {
                              "type": "string",
                              "readOnly": true,
                              "example": "5 years ago"
                            },
                            "author": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "readOnly": true,
                                  "example": "Thomas Michaels Design"
                                },
                                "avatar": {
                                  "type": "string",
                                  "readOnly": true,
                                  "example": "https://lh3.googleusercontent.com/a/ACg8ocLKmjhF81zw"
                                },
                                "homepage": {
                                  "type": "string",
                                  "readOnly": true,
                                  "example": "https://www.google.com/maps/contrib/114948?hl=en-US"
                                },
                                "merchant": {
                                  "type": "boolean",
                                  "readOnly": true,
                                  "example": false
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Report": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "qxl09olg"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "Apr 21, 2023 12:12 PM"
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "Lesch LLC"
                },
                "address": {
                  "type": "string",
                  "example": "Alexis Lodge, 58650, North Katherynview, Minnesota 66462, US"
                },
                "location_type": {
                  "type": "string",
                  "example": "sab_with_address"
                },
                "store_code": {
                  "type": "string",
                  "example": "GLesch001"
                }
              }
            }
          },
          "configuration_name": {
            "type": "string",
            "example": "Lesch Summary"
          },
          "configuration_id": {
            "type": "string",
            "example": "3v5j0vl8"
          },
          "periods": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date-range",
              "readOnly": true,
              "example": [
                "Jun 30, 2024 — Sep 30, 2024",
                "June 30 — September 30"
              ]
            }
          },
          "report_url": {
            "type": "string",
            "readOnly": true,
            "example": "https://localviking.com/stats/reports/3doj3zv0"
          },
          "report_pdf": {
            "type": "string",
            "readOnly": true,
            "example": "https://localviking.com/stats/reports/3doj3zv0.pdf"
          }
        }
      },
      "ReportShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "qxl09olg"
          },
          "charts": {
            "type": "object",
            "properties": {
              "stats": {
                "type": "array",
                "description": "Array of selected metrics with current and comparison values",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "readOnly": true,
                      "example": "business_impressions_desktop_maps"
                    },
                    "sum": {
                      "type": "integer",
                      "readOnly": true,
                      "example": 51
                    },
                    "data": {
                      "type": "array",
                      "readOnly": true,
                      "example": []
                    },
                    "name": {
                      "type": "string",
                      "readOnly": true,
                      "example": "Business impressions desktop maps"
                    },
                    "settings": {
                      "type": "object",
                      "properties": {
                        "show_decreases": {
                          "type": "boolean",
                          "readOnly": true,
                          "example": true
                        },
                        "show_zero_value": {
                          "type": "boolean",
                          "readOnly": true,
                          "example": true
                        }
                      }
                    },
                    "sum_compare": {
                      "type": "integer",
                      "readOnly": true,
                      "example": 30
                    }
                  }
                }
              },
              "chart_data": {
                "type": "array",
                "description": "Array of chart lines for the current period, with each line representing a metric",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "readOnly": true,
                      "example": "business_impressions_desktop_maps"
                    },
                    "name": {
                      "type": "string",
                      "readOnly": true,
                      "example": "Business impressions desktop maps"
                    },
                    "data": {
                      "type": "array",
                      "description": "Chart data points (current period)",
                      "items": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "integer",
                            "readOnly": true,
                            "example": 1751587200000
                          },
                          "y": {
                            "type": "number",
                            "readOnly": true,
                            "example": 5
                          }
                        }
                      }
                    },
                    "color": {
                      "type": "string",
                      "readOnly": true,
                      "example": "#377dff"
                    },
                    "xAxis": {
                      "type": "integer",
                      "readOnly": true,
                      "example": 0
                    }
                  }
                }
              },
              "blank_terms": {
                "type": "array",
                "example": []
              },
              "search_terms": {
                "type": "array",
                "description": "Array of search term data, including current rank and related images",
                "example": [
                  {
                    "id": 3194,
                    "text": "new shop",
                    "new_rank": "21.0",
                    "newest_image": "http://localviking.com/geogrids/image_on_the_fly/olv3qomz.png?headless=false",
                    "oldest_image": null,
                    "newest_geogrid_oid": "olv3qomz",
                    "oldest_geogrid_oid": null
                  }
                ]
              },
              "negative_terms": {
                "type": "array",
                "example": []
              },
              "positive_terms": {
                "type": "array",
                "example": []
              },
              "chart_compare_data": {
                "type": "array",
                "description": "Array of chart lines for the comparison period, with each line representing a metric",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "readOnly": true,
                      "example": "business_impressions_desktop_maps"
                    },
                    "name": {
                      "type": "string",
                      "readOnly": true,
                      "example": "Business impressions desktop maps"
                    },
                    "data": {
                      "type": "array",
                      "readOnly": true,
                      "description": "Chart data points (comparison period)",
                      "items": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "integer",
                            "readOnly": true,
                            "example": 1720051200000
                          },
                          "y": {
                            "type": "number",
                            "readOnly": true,
                            "example": 0
                          }
                        }
                      }
                    },
                    "color": {
                      "type": "string",
                      "readOnly": true,
                      "example": "#29ba6c"
                    },
                    "xAxis": {
                      "type": "integer",
                      "readOnly": true,
                      "example": 1
                    }
                  }
                }
              }
            }
          },
          "start": {
            "type": "string",
            "format": "mm/dd/yyyy",
            "readOnly": true,
            "example": "06/09/2025"
          },
          "end": {
            "type": "string",
            "format": "mm/dd/yyyy",
            "readOnly": true,
            "example": "09/09/2025"
          },
          "compare_start": {
            "type": "string",
            "format": "mm/dd/yyyy",
            "readOnly": true,
            "example": "06/09/2024"
          },
          "compare_end": {
            "type": "string",
            "format": "mm/dd/yyyy",
            "readOnly": true,
            "example": "09/09/2024"
          },
          "comparison_type": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "same_period_previous_year",
              "baseline",
              "previous_period"
            ],
            "example": "same_period_previous_year"
          },
          "report_path": {
            "type": "string",
            "readOnly": true,
            "example": "/stats/reports/3doj3zv0"
          },
          "metrics": {
            "type": "object",
            "description": "Selected metrics per location",
            "example": {
              "10824749555555180353": [
                "business_impressions_desktop_maps"
              ]
            }
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "example": "10824749555555180353"
                },
                "name": {
                  "type": "string",
                  "example": "Lesch LLC"
                },
                "store_code": {
                  "type": "string",
                  "example": "GLesch001"
                },
                "formatted_address": {
                  "type": "string",
                  "example": "Alexis Lodge, 58650, North Katherynview, Minnesota 66462, US"
                },
                "url": {
                  "type": "string",
                  "example": "/gmb/locations/10824749555555180353"
                },
                "period": {
                  "type": "object",
                  "properties": {
                    "start": {
                      "type": "string",
                      "format": "date",
                      "readOnly": true,
                      "example": "2025-06-09"
                    },
                    "end": {
                      "type": "string",
                      "format": "date",
                      "readOnly": true,
                      "example": "2025-09-09"
                    },
                    "compare_start": {
                      "type": "string",
                      "format": "date",
                      "readOnly": true,
                      "example": "2024-06-09"
                    },
                    "compare_end": {
                      "type": "string",
                      "format": "date",
                      "readOnly": true,
                      "example": "2024-09-09"
                    }
                  }
                },
                "location_type": {
                  "type": "string",
                  "example": "sab_with_address"
                }
              }
            }
          },
          "reviews": {
            "type": "object",
            "description": "Aggregated and per-location review statistics with comparison to the previous period",
            "example": {
              "aggregated": {
                "sum": {
                  "data": {
                    "total": 0,
                    "unanswered": 0
                  },
                  "compare_data": {
                    "total": 0,
                    "unanswered": 0
                  }
                },
                "total": [
                  {
                    "x": 1756944000000,
                    "y": 0
                  },
                  {
                    "x": 1757030400000,
                    "y": 0
                  },
                  {
                    "x": 1757116800000,
                    "y": 0
                  }
                ],
                "unanswered": [
                  {
                    "x": 1756944000000,
                    "y": 0
                  },
                  {
                    "x": 1757030400000,
                    "y": 0
                  },
                  {
                    "x": 1757116800000,
                    "y": 0
                  }
                ],
                "compare_total": [
                  {
                    "x": 1754265600000,
                    "y": 0
                  },
                  {
                    "x": 1754352000000,
                    "y": 0
                  },
                  {
                    "x": 1754438400000,
                    "y": 0
                  }
                ],
                "compare_unanswered": [
                  {
                    "x": 1754265600000,
                    "y": 0
                  },
                  {
                    "x": 1754352000000,
                    "y": 0
                  },
                  {
                    "x": 1754438400000,
                    "y": 0
                  }
                ]
              },
              "by_locations": {
                "10824749555555180353": {
                  "sum": {
                    "data": {
                      "total": 0,
                      "unanswered": 0
                    },
                    "compare_data": {
                      "total": 0,
                      "unanswered": 0
                    }
                  },
                  "total": [
                    {
                      "x": 1756944000000,
                      "y": 0
                    },
                    {
                      "x": 1757030400000,
                      "y": 0
                    },
                    {
                      "x": 1757116800000,
                      "y": 0
                    }
                  ],
                  "unanswered": [
                    {
                      "x": 1756944000000,
                      "y": 0
                    },
                    {
                      "x": 1757030400000,
                      "y": 0
                    },
                    {
                      "x": 1757116800000,
                      "y": 0
                    }
                  ],
                  "compare_total": [
                    {
                      "x": 1754265600000,
                      "y": 0
                    },
                    {
                      "x": 1754352000000,
                      "y": 0
                    },
                    {
                      "x": 1754438400000,
                      "y": 0
                    }
                  ],
                  "compare_unanswered": [
                    {
                      "x": 1754265600000,
                      "y": 0
                    },
                    {
                      "x": 1754352000000,
                      "y": 0
                    },
                    {
                      "x": 1754438400000,
                      "y": 0
                    }
                  ]
                }
              }
            }
          },
          "checkins": {
            "type": "object",
            "description": "Aggregated and per-location moment statistics by category with comparison to the previous period",
            "example": {
              "aggregated": {
                "sum": {
                  "data": 1,
                  "compare_data": 1
                },
                "categories": [
                  {
                    "category": "No Category",
                    "data": [
                      1,
                      1
                    ]
                  }
                ],
                "data": [
                  {
                    "x": 1756944000000,
                    "y": 0
                  },
                  {
                    "x": 1757030400000,
                    "y": 0
                  },
                  {
                    "x": 1757116800000,
                    "y": 0
                  }
                ],
                "compare_data": [
                  {
                    "x": 1754265600000,
                    "y": 0
                  },
                  {
                    "x": 1754352000000,
                    "y": 0
                  },
                  {
                    "x": 1754438400000,
                    "y": 0
                  }
                ]
              },
              "by_locations": {
                "10824749555555180353": {
                  "sum": {
                    "data": 1,
                    "compare_data": 1
                  },
                  "categories": [
                    {
                      "category": "No Category",
                      "data": [
                        1,
                        1
                      ]
                    }
                  ],
                  "data": [
                    {
                      "x": 1756944000000,
                      "y": 0
                    },
                    {
                      "x": 1757030400000,
                      "y": 0
                    },
                    {
                      "x": 1757116800000,
                      "y": 0
                    }
                  ],
                  "compare_data": [
                    {
                      "x": 1754265600000,
                      "y": 0
                    },
                    {
                      "x": 1754352000000,
                      "y": 0
                    },
                    {
                      "x": 1754438400000,
                      "y": 0
                    }
                  ]
                }
              }
            }
          },
          "keywords": {
            "type": "object",
            "description": "Per-location keyword rankings and performance data",
            "example": {
              "by_locations": {
                "10824749555555180353": [
                  {
                    "search_term": "ror developers",
                    "ranks": {
                      "local": {
                        "data": [
                          {
                            "current_position": 1,
                            "last_checked": 1759449600000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1759276800000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1759104000000
                          }
                        ],
                        "compare_data": [
                          {
                            "current_position": 1,
                            "last_checked": 1756598400000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1756425600000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1756252800000
                          }
                        ]
                      },
                      "organic": {
                        "data": [
                          {
                            "current_position": 1,
                            "last_checked": 1759449600000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1759276800000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1759104000000
                          }
                        ],
                        "compare_data": [
                          {
                            "current_position": 1,
                            "last_checked": 1756598400000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1756425600000
                          },
                          {
                            "current_position": 1,
                            "last_checked": 1756252800000
                          }
                        ]
                      },
                      "organic_mobile": {
                        "data": [],
                        "compare_data": []
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      },
      "ImageShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "v7l8jyz1"
          },
          "url": {
            "type": "string",
            "example": "http://example.com/uploads/image/v7/v7l8jyz1/cat.jpeg"
          },
          "preview_url": {
            "type": "string",
            "example": "http://example.com/uploads/image/v7/v7l8jyz1/preview_cat.jpeg"
          },
          "description": {
            "type": "string",
            "example": "This image is amazing"
          }
        }
      },
      "BusinessShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "0vzw45re"
          },
          "name": {
            "type": "string",
            "description": "Business name",
            "example": "Awesome Business"
          },
          "address_components": {
            "type": "array",
            "description": "Address components from Google Place API",
            "items": {
              "type": "object",
              "properties": {
                "types": {
                  "type": "array",
                  "example": [
                    "sublocality_level_1",
                    "sublocality",
                    "political"
                  ]
                },
                "long_name": {
                  "type": "string",
                  "example": "New York"
                },
                "short_name": {
                  "type": "string",
                  "example": "NY"
                }
              }
            }
          },
          "categories": {
            "type": "array",
            "description": "List of categories",
            "items": {
              "type": "string",
              "example": "Plumbing"
            }
          },
          "publish_video_by_default": {
            "type": "boolean",
            "description": "Publish videos by default",
            "example": true
          },
          "webhook_url": {
            "type": "string",
            "description": "Webhook url",
            "example": "https://example.com/webhook"
          },
          "webhook_bearer_token": {
            "type": "string",
            "description": "Bearer token for webhook request",
            "example": "abcdefg"
          }
        }
      },
      "EmployeeShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "0vzw45re"
          },
          "name": {
            "type": "string",
            "example": "John"
          },
          "last_name": {
            "type": "string",
            "example": "Doe"
          },
          "email": {
            "type": "string",
            "example": "john@doe.com"
          },
          "description": {
            "type": "string",
            "example": "Awesome Contractor"
          },
          "moderation_enabled": {
            "type": "boolean",
            "example": true
          },
          "all_businesses_access": {
            "type": "boolean",
            "example": true
          },
          "businesses": {
            "type": "array",
            "example": []
          },
          "blocked_at": {
            "type": "string",
            "format": "date-time",
            "example": "2021-06-07T09:26:37.925Z"
          },
          "pending_count": {
            "type": "integer",
            "example": 0
          },
          "approved_count": {
            "type": "integer",
            "example": 0
          },
          "rejected_count": {
            "type": "integer",
            "example": 0
          },
          "total_count": {
            "type": "integer",
            "example": 0
          },
          "invitation_sent_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          },
          "invitation_accepted_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2021-06-07T09:26:37.925Z"
          }
        }
      },
      "EmployeeCreate": {
        "type": "object",
        "properties": {
          "name": {
            "description": "First Name",
            "type": "string",
            "example": "John"
          },
          "last_name": {
            "description": "Last Name",
            "type": "string",
            "example": "Doe"
          },
          "email": {
            "description": "Email",
            "type": "string",
            "example": "john@doe.com"
          },
          "description": {
            "description": "Description",
            "type": "string",
            "example": "Awesome Contractor"
          },
          "moderation_enabled": {
            "description": "Pre-moderation",
            "type": "boolean",
            "example": true
          },
          "all_businesses_access": {
            "description": "All businesses access",
            "type": "boolean",
            "example": true
          },
          "businesses": {
            "description": "Array of businesses ids, required if `all_businesses_access == false`",
            "type": "array",
            "items": {
              "type": "string",
              "example": "0vzw45re"
            }
          },
          "skip_invitation": {
            "description": "Should skip invitation flow",
            "type": "boolean",
            "example": true
          },
          "password": {
            "description": "Password, required if `skip_invitation == true`",
            "type": "string",
            "example": "secretPassword"
          },
          "password_confirmation": {
            "description": "Password confirmation, required if `skip_invitation == true`",
            "type": "string",
            "example": "secretPassword"
          },
          "blocked_at": {
            "description": "A timestampe when employee was blocked",
            "type": "string",
            "format": "date-time",
            "example": "2021-06-07T09:26:37.925Z"
          }
        }
      },
      "MobileMoments": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "Moment ID",
              "example": "0vzw45re"
            },
            "formatted_address": {
              "type": "string",
              "description": "Moment address",
              "example": "Traffic Road, Greenhithe, Auckland 0632, New Zealand"
            },
            "address_components": {
              "type": "array",
              "description": "A detailed representation of a Moment address",
              "items": {
                "type": "object",
                "properties": {
                  "types": {
                    "type": "array",
                    "example": [
                      "sublocality_level_1",
                      "sublocality",
                      "political"
                    ]
                  },
                  "long_name": {
                    "type": "string"
                  },
                  "short_name": {
                    "type": "string"
                  }
                }
              }
            },
            "coords": {
              "type": "object",
              "description": "Moment GPS coordinates",
              "properties": {
                "lat": {
                  "type": "number",
                  "format": "float",
                  "example": 49.102374218452475
                },
                "lng": {
                  "type": "number",
                  "format": "float",
                  "example": 49.102374218452475
                }
              }
            },
            "from_office": {
              "description": "Identifies if a Moment was made on location or from the office",
              "type": "boolean",
              "example": false
            },
            "description": {
              "type": "string",
              "description": "Any text description of the work done",
              "example": "Some point of my business"
            },
            "customer": {
              "type": "string",
              "description": "Customer Name",
              "example": "John Doe"
            },
            "category": {
              "type": "object",
              "description": "The first category from the `categories` array",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Category ID",
                  "example": "0vzw45re"
                },
                "title": {
                  "type": "string",
                  "description": "Category name",
                  "example": "Plumbing"
                }
              }
            },
            "categories": {
              "type": "array",
              "description": "Moment Categories",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Category ID",
                    "example": "0vzw45re"
                  },
                  "title": {
                    "type": "string",
                    "description": "Category name",
                    "example": "Plumbing"
                  }
                }
              },
              "example": [
                {
                  "id": "0vzw45re",
                  "title": "Plumbing"
                },
                {
                  "id": "2vtw71mo",
                  "title": "Spring"
                }
              ]
            },
            "business": {
              "type": "object",
              "description": "Moment Business information",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Business ID",
                  "example": "0vzw45re"
                },
                "name": {
                  "type": "string",
                  "description": "Business Name",
                  "example": "Traffic Runners, LLC"
                },
                "place_id": {
                  "type": "string",
                  "description": "Business ID",
                  "example": "ChIJCFDJU_SBhYSRgf5rdf_EyXA"
                }
              }
            },
            "employee": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Employee ID",
                  "example": "0vzw45re"
                },
                "name": {
                  "type": "string",
                  "description": "Employee name",
                  "example": "John Smith"
                }
              }
            },
            "images": {
              "type": "array",
              "description": "Attached images",
              "items": {
                "type": "object",
                "properties": {
                  "thumbnail_url": {
                    "type": "string",
                    "description": "Link for the image thumbnail"
                  },
                  "full_url": {
                    "type": "string",
                    "description": "Link for the full image"
                  }
                }
              }
            },
            "country": {
              "type": "object",
              "description": "Moment address country",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Country name"
                },
                "iso_code": {
                  "type": "string",
                  "description": "ISO 3166-1 Alpha-2 code"
                }
              }
            },
            "administrative_area": {
              "type": "object",
              "description": "Moment address top level administrative area",
              "properties": {
                "name": {
                  "type": "string"
                },
                "short_name": {
                  "type": "string"
                }
              }
            },
            "city": {
              "type": "object",
              "description": "Moment address top city",
              "properties": {
                "name": {
                  "type": "string"
                },
                "short_name": {
                  "type": "string"
                }
              }
            },
            "created_at": {
              "type": "string",
              "description": "Created Timestamp",
              "format": "date-time",
              "example": "2021-06-07T09:26:37.925Z"
            },
            "scheduled_at": {
              "type": "string",
              "description": "Publication timestamp of Moment is scheduled",
              "format": "date-time",
              "example": "2024-10-07T10:42:37.115Z"
            },
            "video_urls": {
              "type": "array",
              "description": "Direct links to attached videos",
              "items": {
                "type": "string",
                "example": "https://example.com/video1.mp4"
              }
            }
          }
        }
      },
      "GeogridCreatedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "geogrid.created"
          },
          "object": {
            "description": "Serialized Geogrid",
            "$ref": "#/components/schemas/Geogrid"
          }
        }
      },
      "AuditReportCreatedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "audit_report.created"
          },
          "object": {
            "description": "Serialized Audit Report",
            "$ref": "#/components/schemas/AuditReport"
          }
        }
      },
      "AuditReportFailedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "audit_report.failed"
          },
          "request_id": {
            "type": "string",
            "description": "Geogrid Widget request ID",
            "example": "4z2nq18z"
          },
          "business_name": {
            "type": "string",
            "description": "Reported GBP name",
            "example": "Some Company, LTD"
          },
          "keyword": {
            "type": "string",
            "description": "Search Term",
            "example": "professionals near me"
          },
          "error": {
            "type": "string",
            "description": "Error description. \nFor now, the only error is \"No competitors found\", which happens when there are fewer than 3 competitors in a geogrid.\n",
            "enum": [
              "no_competitors_found"
            ]
          }
        }
      },
      "ReviewCreatedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "review.created"
          },
          "object": {
            "description": "Serialized Review",
            "$ref": "#/components/schemas/Review"
          }
        }
      },
      "LocationUpdatedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "gmb/location.updated"
          },
          "diff": {
            "type": "object",
            "description": "Array of changed attributes. Includes attribute name, old and new values.",
            "properties": {
              "attribute-name": {
                "type": "array",
                "description": "Key is a name of changed location attribute. Value is array of 2 elements:\n  - `0`: New value\n  - `1`: Old value\n"
              }
            },
            "example": {
              "disconnected": [
                false,
                true
              ],
              "published": [
                true,
                false
              ],
              "name": [
                "New Name",
                "Old name"
              ]
            }
          },
          "object": {
            "description": "Serialized Location",
            "$ref": "#/components/schemas/Location"
          }
        }
      },
      "LocationVerifiedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "gmb/location.verified"
          },
          "object": {
            "description": "Serialized Location",
            "$ref": "#/components/schemas/Location"
          }
        }
      },
      "LocationDeactivatedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "gmb/location.deactivated"
          },
          "warn_states": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "suspended",
                "disabled",
                "disconnected",
                "duplicate"
              ]
            },
            "description": "A list of states that requires attention and makes a location hidden from Google Maps",
            "example": [
              "disabled",
              "disconnected"
            ]
          },
          "object": {
            "description": "Serialized Location",
            "$ref": "#/components/schemas/Location"
          }
        }
      },
      "LocationReactivatedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "gmb/location.reactivated"
          },
          "object": {
            "description": "Serialized Location",
            "$ref": "#/components/schemas/Location"
          }
        }
      },
      "GoogleAccount": {
        "type": "object",
        "properties": {
          "id": {
            "description": "LocalViking ID of a Google Account",
            "type": "string",
            "readOnly": true,
            "example": "a1b2c3d4"
          },
          "name": {
            "description": "Google Account name",
            "type": "string",
            "readOnly": true,
            "example": "John Doe"
          },
          "email": {
            "description": "Email",
            "type": "string",
            "readOnly": true,
            "example": "john.doe@gmail.com"
          },
          "picture": {
            "description": "Google Account profile image",
            "type": "string",
            "format": "uri",
            "readOnly": true,
            "example": "https://lh3.googleusercontent.com/a/ACg8ocImteZAuoeStezzWfMP-RiUrawKN-MG0Ouuwj-5SR49AI4djq=s96-c"
          },
          "locations": {
            "description": "Connected GMB Location counters",
            "readOnly": true,
            "type": "object",
            "properties": {
              "enabled": {
                "description": "Enabled GMB Locations counter",
                "type": "number",
                "format": "integer",
                "example": 7
              },
              "total": {
                "description": "Total count of available GMB Locations",
                "type": "number",
                "format": "integer",
                "example": 42
              }
            }
          },
          "connected": {
            "description": "GMB API connection status",
            "type": "boolean",
            "readOnly": true,
            "example": false
          }
        }
      },
      "GoogleAccountDisconnectedWebhook": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Webhook Event Type",
            "example": "google_account.disconnected"
          },
          "object": {
            "description": "Serialized Google Account",
            "$ref": "#/components/schemas/GoogleAccount"
          },
          "reason": {
            "description": "Error message received from Google as is. Listen example is just a possible variation of Google's response.\nThe format may vary depending on Google, however, usually it contains 'body' and 'message' keys.\n",
            "type": "object",
            "properties": {
              "body": {
                "type": "object",
                "properties": {
                  "error": {
                    "type": "string",
                    "example": "invalid_grant"
                  },
                  "error_description": {
                    "type": "string",
                    "example": "Account has been deleted"
                  }
                }
              },
              "message": {
                "type": "string",
                "example": "Authorization failed.  Server message:\n  {\n    \"error\": \"invalid_grant\",\n    \"error_description\": \"Account has been deleted\"\n  }"
              }
            }
          }
        }
      }
    },
    "responses": {
      "401": {
        "description": "Not Authorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "internal"
                  ]
                },
                "error": {
                  "type": "string",
                  "enum": [
                    "Unauthorized"
                  ]
                }
              },
              "required": [
                "type",
                "error"
              ]
            }
          }
        }
      },
      "403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "internal"
                  ]
                },
                "error": {
                  "type": "string",
                  "enum": [
                    "Forbidden"
                  ]
                }
              },
              "required": [
                "type",
                "error"
              ]
            }
          }
        }
      },
      "404": {
        "description": "Not Found Error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "internal"
                  ]
                },
                "error": {
                  "type": "string",
                  "enum": [
                    "Record not found"
                  ]
                }
              },
              "required": [
                "type",
                "error"
              ]
            }
          }
        }
      },
      "gb_widget_401": {
        "description": "Not Authorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "internal"
                  ]
                },
                "error": {
                  "type": "string",
                  "enum": [
                    "You need to sign in or sign up before continuing."
                  ]
                }
              },
              "required": [
                "type",
                "error"
              ]
            }
          }
        }
      },
      "webhook_200": {
        "description": "A response with any 2XX status indicates that the webhook was received successfully. \nOn a non-2XX response, a series of retries is scheduled.\n"
      }
    }
  }
}