{
  "openapi": "3.0.3",
  "servers": [
    {
      "url": "https://api.allmaps.org"
    }
  ],
  "info": {
    "title": "Allmaps API Documentation",
    "description": "API documentation for the Allmaps REST API. Use of this hosted service is subject to the [Allmaps Terms & Usage](https://allmaps.org/terms#hosted-allmaps-services).",
    "version": "3.0.1-alpha.1",
    "termsOfService": "https://allmaps.org/terms#hosted-allmaps-services"
  },
  "components": {
    "securitySchemes": {
      "sessionCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "better-auth.session_token",
        "description": "Better Auth session cookie. Some routes additionally require the authenticated user to be an admin."
      }
    },
    "schemas": {}
  },
  "tags": [
    {
      "name": "API"
    },
    {
      "name": "Maps"
    },
    {
      "name": "Images"
    },
    {
      "name": "Canvases"
    },
    {
      "name": "Manifests"
    },
    {
      "name": "Organizations"
    },
    {
      "name": "Projections"
    },
    {
      "name": "Authentication"
    }
  ],
  "paths": {
    "/login/{provider}": {
      "get": {
        "summary": "Login with GitHub or Google",
        "description": "Initiates OAuth flow and redirects to the configured provider authorization page",
        "tags": [
          "Authentication"
        ],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "github",
                "google"
              ]
            }
          },
          {
            "name": "returnTo",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getLoginByProvider"
      }
    },
    "/logout": {
      "get": {
        "summary": "Logout",
        "description": "Signs out and redirects to URL specified in returnTo query parameter",
        "tags": [
          "Authentication"
        ],
        "parameters": [
          {
            "name": "returnTo",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getLogout"
      }
    },
    "/users": {
      "get": {
        "summary": "Get all users",
        "tags": [
          "Authentication"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getUsers"
      }
    },
    "/users/{userId}": {
      "get": {
        "summary": "Get a single user",
        "tags": [
          "Authentication"
        ],
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getUsersByUserId"
      }
    },
    "/organizations/{organizationId}/users": {
      "get": {
        "summary": "Get users for a single organization",
        "tags": [
          "Authentication"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getOrganizationsByOrganizationIdUsers"
      },
      "post": {
        "summary": "Add a user to a single organization",
        "tags": [
          "Authentication"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "role": {
                    "anyOf": [
                      {
                        "default": "admin",
                        "type": "string",
                        "enum": [
                          "admin",
                          "member",
                          "owner"
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "default": "admin",
                          "type": "string",
                          "enum": [
                            "admin",
                            "member",
                            "owner"
                          ]
                        }
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "role": {
                    "anyOf": [
                      {
                        "default": "admin",
                        "type": "string",
                        "enum": [
                          "admin",
                          "member",
                          "owner"
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "default": "admin",
                          "type": "string",
                          "enum": [
                            "admin",
                            "member",
                            "owner"
                          ]
                        }
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "role": {
                    "anyOf": [
                      {
                        "default": "admin",
                        "type": "string",
                        "enum": [
                          "admin",
                          "member",
                          "owner"
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "default": "admin",
                          "type": "string",
                          "enum": [
                            "admin",
                            "member",
                            "owner"
                          ]
                        }
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postOrganizationsByOrganizationIdUsers"
      }
    },
    "/organizations/{organizationId}/users/{userId}": {
      "delete": {
        "summary": "Remove a user from a single organization",
        "tags": [
          "Authentication"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "deleteOrganizationsByOrganizationIdUsersByUserId"
      },
      "patch": {
        "summary": "Update a user role in a single organization",
        "tags": [
          "Authentication"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "role"
                ],
                "properties": {
                  "role": {
                    "default": "admin",
                    "type": "string",
                    "enum": [
                      "admin",
                      "member",
                      "owner"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "role"
                ],
                "properties": {
                  "role": {
                    "default": "admin",
                    "type": "string",
                    "enum": [
                      "admin",
                      "member",
                      "owner"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "role"
                ],
                "properties": {
                  "role": {
                    "default": "admin",
                    "type": "string",
                    "enum": [
                      "admin",
                      "member",
                      "owner"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "patchOrganizationsByOrganizationIdUsersByUserId"
      }
    },
    "/maps/{mapId}": {
      "delete": {
        "description": "Archive this map without deleting its data. Historical annotations and individual REST reads remain available. The next saved editor change on its image unarchives the image and all its maps.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "summary": "Archive a map",
        "tags": [
          "Maps"
        ],
        "parameters": [
          {
            "name": "mapId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "deleteMapsByMapId"
      },
      "get": {
        "summary": "Get a single map",
        "description": "Get a single map. Optionally specify .geojson extension to get the map in GeoJSON format.",
        "tags": [
          "Maps"
        ],
        "parameters": [
          {
            "name": "mapId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^(?<mapId>[0-9a-f]{16})(@(?<version>[0-9a-f]{16}))?(\\.(?<ext>geojson))?$",
              "type": "string"
            }
          }
        ],
        "operationId": "getMapsByMapId"
      },
      "patch": {
        "summary": "Update a map",
        "tags": [
          "Maps"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "mapId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "patchMapsByMapId"
      }
    },
    "/maps": {
      "get": {
        "summary": "Get maps",
        "tags": [
          "Maps"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getMaps"
      },
      "post": {
        "summary": "Create maps from a Georeference Annotation",
        "tags": [
          "Maps"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "operationId": "postMaps"
      }
    },
    "/maps.geojson": {
      "get": {
        "summary": "Get maps as GeoJSON",
        "tags": [
          "Maps"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getMaps.geojson"
      }
    },
    "/maps/{mapId}/versions": {
      "get": {
        "summary": "Get all versions of a single map",
        "tags": [
          "Maps"
        ],
        "parameters": [
          {
            "name": "mapId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getMapsByMapIdVersions"
      }
    },
    "/organizations": {
      "get": {
        "summary": "Get all organizations",
        "tags": [
          "Organizations"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "default": "contributor",
                "type": "string",
                "enum": [
                  "contributor",
                  "supporter",
                  "innovator"
                ]
              }
            }
          },
          {
            "name": "displayCollections",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Match a configured organization domain exactly.",
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "operationId": "getOrganizations"
      },
      "post": {
        "summary": "Create an organization",
        "tags": [
          "Organizations"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "slug"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "logo": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "homepage": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "default": "contributor",
                        "type": "string",
                        "enum": [
                          "contributor",
                          "supporter",
                          "innovator"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayCollections": {
                    "type": "boolean"
                  },
                  "location": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "coordinates"
                        ],
                        "properties": {
                          "type": {
                            "const": "Point",
                            "type": "string"
                          },
                          "coordinates": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 2,
                            "maxItems": 2
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "slug"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "logo": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "homepage": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "default": "contributor",
                        "type": "string",
                        "enum": [
                          "contributor",
                          "supporter",
                          "innovator"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayCollections": {
                    "type": "boolean"
                  },
                  "location": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "coordinates"
                        ],
                        "properties": {
                          "type": {
                            "const": "Point",
                            "type": "string"
                          },
                          "coordinates": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 2,
                            "maxItems": 2
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "slug"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "logo": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "homepage": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "default": "contributor",
                        "type": "string",
                        "enum": [
                          "contributor",
                          "supporter",
                          "innovator"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayCollections": {
                    "type": "boolean"
                  },
                  "location": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "coordinates"
                        ],
                        "properties": {
                          "type": {
                            "const": "Point",
                            "type": "string"
                          },
                          "coordinates": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 2,
                            "maxItems": 2
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "postOrganizations"
      }
    },
    "/organizations.geojson": {
      "get": {
        "summary": "Get all organizations as GeoJSON",
        "tags": [
          "Organizations"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "default": "contributor",
                "type": "string",
                "enum": [
                  "contributor",
                  "supporter",
                  "innovator"
                ]
              }
            }
          },
          {
            "name": "displayCollections",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Match a configured organization domain exactly.",
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "operationId": "getOrganizations.geojson"
      }
    },
    "/organizations/{organizationId}": {
      "get": {
        "summary": "Get an organization",
        "tags": [
          "Organizations"
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getOrganizationsByOrganizationId"
      },
      "patch": {
        "summary": "Update an organization",
        "tags": [
          "Organizations"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "logo": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "homepage": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "default": "contributor",
                        "type": "string",
                        "enum": [
                          "contributor",
                          "supporter",
                          "innovator"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayCollections": {
                    "type": "boolean"
                  },
                  "location": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "coordinates"
                        ],
                        "properties": {
                          "type": {
                            "const": "Point",
                            "type": "string"
                          },
                          "coordinates": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 2,
                            "maxItems": 2
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "logo": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "homepage": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "default": "contributor",
                        "type": "string",
                        "enum": [
                          "contributor",
                          "supporter",
                          "innovator"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayCollections": {
                    "type": "boolean"
                  },
                  "location": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "coordinates"
                        ],
                        "properties": {
                          "type": {
                            "const": "Point",
                            "type": "string"
                          },
                          "coordinates": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 2,
                            "maxItems": 2
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "logo": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "homepage": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "default": "contributor",
                        "type": "string",
                        "enum": [
                          "contributor",
                          "supporter",
                          "innovator"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayCollections": {
                    "type": "boolean"
                  },
                  "location": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "coordinates"
                        ],
                        "properties": {
                          "type": {
                            "const": "Point",
                            "type": "string"
                          },
                          "coordinates": {
                            "type": "array",
                            "items": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "number"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 2,
                            "maxItems": 2
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "domains": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "operationId": "patchOrganizationsByOrganizationId"
      },
      "delete": {
        "summary": "Delete an organization",
        "tags": [
          "Organizations"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "deleteOrganizationsByOrganizationId"
      }
    },
    "/organizations/{organizationId}/manifests": {
      "get": {
        "summary": "Get IIIF Manifests for a single organization",
        "tags": [
          "Organizations"
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getOrganizationsByOrganizationIdManifests"
      },
      "post": {
        "summary": "Create a IIIF Manifest for a single organization",
        "tags": [
          "Organizations"
        ],
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin or organization plan member",
            "color": "#df0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "operationId": "postOrganizationsByOrganizationIdManifests"
      }
    },
    "/organizations/{organizationId}/canvases": {
      "get": {
        "summary": "Get IIIF Canvases for a single organization",
        "tags": [
          "Organizations"
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getOrganizationsByOrganizationIdCanvases"
      }
    },
    "/organizations/{organizationId}/images": {
      "get": {
        "summary": "Get IIIF Images for a single organization",
        "tags": [
          "Organizations"
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getOrganizationsByOrganizationIdImages"
      },
      "post": {
        "summary": "Create a IIIF Image for a single organization",
        "tags": [
          "Organizations"
        ],
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin or organization plan member",
            "color": "#df0"
          }
        ],
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "operationId": "postOrganizationsByOrganizationIdImages"
      }
    },
    "/manifests": {
      "get": {
        "summary": "Get IIIF Manifests",
        "tags": [
          "Manifests"
        ],
        "parameters": [
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getManifests"
      },
      "post": {
        "summary": "Create a IIIF Manifest from a IIIF URL",
        "tags": [
          "Manifests"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "operationId": "postManifests"
      }
    },
    "/manifests/random": {
      "get": {
        "summary": "Get a random IIIF Manifest",
        "tags": [
          "Manifests"
        ],
        "parameters": [
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getManifestsRandom"
      }
    },
    "/manifests/{manifestId}": {
      "get": {
        "summary": "Get a single IIIF Manifest",
        "tags": [
          "Manifests"
        ],
        "parameters": [
          {
            "name": "manifestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "operationId": "getManifestsByManifestId"
      }
    },
    "/manifests/{manifestId}/georeferenced": {
      "get": {
        "summary": "Get published georeferencing coverage for the indexed IIIF Manifest",
        "tags": [
          "Manifests"
        ],
        "parameters": [
          {
            "name": "manifestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Response for status 200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "georeferencingUpdatedAt",
                    "mapCount",
                    "georeferencedMapCount",
                    "canvasCount",
                    "georeferencedCanvasCount"
                  ],
                  "properties": {
                    "georeferencingUpdatedAt": {
                      "nullable": true,
                      "anyOf": [
                        {
                          "format": "date-time",
                          "description": "Latest update to a currently published map",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mapCount": {
                      "minimum": 0,
                      "description": "Distinct current unarchived maps on indexed manifest images, including unfinished maps",
                      "anyOf": [
                        {
                          "format": "integer",
                          "default": 0,
                          "type": "string"
                        },
                        {
                          "minimum": 0,
                          "description": "Distinct current unarchived maps on indexed manifest images, including unfinished maps",
                          "type": "integer"
                        }
                      ]
                    },
                    "georeferencedMapCount": {
                      "minimum": 0,
                      "description": "Distinct current unarchived maps on indexed manifest images published in the Annotations API",
                      "anyOf": [
                        {
                          "format": "integer",
                          "default": 0,
                          "type": "string"
                        },
                        {
                          "minimum": 0,
                          "description": "Distinct current unarchived maps on indexed manifest images published in the Annotations API",
                          "type": "integer"
                        }
                      ]
                    },
                    "canvasCount": {
                      "nullable": true,
                      "anyOf": [
                        {
                          "minimum": 0,
                          "description": "Indexed canvases linked to the manifest. Null for an absent manifest.",
                          "anyOf": [
                            {
                              "format": "integer",
                              "default": 0,
                              "type": "string"
                            },
                            {
                              "minimum": 0,
                              "description": "Indexed canvases linked to the manifest. Null for an absent manifest.",
                              "type": "integer"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "georeferencedCanvasCount": {
                      "minimum": 0,
                      "description": "Indexed canvases with at least one published map",
                      "anyOf": [
                        {
                          "format": "integer",
                          "default": 0,
                          "type": "string"
                        },
                        {
                          "minimum": 0,
                          "description": "Indexed canvases with at least one published map",
                          "type": "integer"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "operationId": "getManifestsByManifestIdGeoreferenced"
      }
    },
    "/manifests/{manifestId}/maps": {
      "get": {
        "summary": "Get maps for a single IIIF Manifest",
        "tags": [
          "Manifests"
        ],
        "parameters": [
          {
            "name": "manifestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getManifestsByManifestIdMaps"
      }
    },
    "/manifests/{manifestId}/maps.geojson": {
      "get": {
        "summary": "Get maps for a single IIIF Manifest as GeoJSON",
        "tags": [
          "Manifests"
        ],
        "parameters": [
          {
            "name": "manifestId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getManifestsByManifestIdMaps.geojson"
      }
    },
    "/canvases": {
      "get": {
        "summary": "Get IIIF Canvases",
        "tags": [
          "Canvases"
        ],
        "parameters": [
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getCanvases"
      }
    },
    "/canvases/random": {
      "get": {
        "summary": "Get a random IIIF Canvas",
        "tags": [
          "Canvases"
        ],
        "parameters": [
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getCanvasesRandom"
      }
    },
    "/canvases/{canvasId}": {
      "get": {
        "summary": "Get a single IIIF Canvas",
        "tags": [
          "Canvases"
        ],
        "parameters": [
          {
            "name": "canvasId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "operationId": "getCanvasesByCanvasId"
      }
    },
    "/canvases/{canvasId}/maps": {
      "get": {
        "summary": "Get maps for a single IIIF Canvas",
        "tags": [
          "Canvases"
        ],
        "parameters": [
          {
            "name": "canvasId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getCanvasesByCanvasIdMaps"
      }
    },
    "/canvases/{canvasId}/maps.geojson": {
      "get": {
        "summary": "Get maps for a single IIIF Canvas as GeoJSON",
        "tags": [
          "Canvases"
        ],
        "parameters": [
          {
            "name": "canvasId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getCanvasesByCanvasIdMaps.geojson"
      }
    },
    "/images/{imageId}": {
      "delete": {
        "description": "Archive this image and all its maps without deleting data. Historical annotations and individual REST reads remain available. The next saved editor change on this image unarchives it and all its maps.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "summary": "Archive an image and its maps",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "deleteImagesByImageId"
      },
      "get": {
        "summary": "Get a single IIIF Image",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getImagesByImageId"
      }
    },
    "/images": {
      "get": {
        "summary": "Get IIIF Images",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "getImages"
      },
      "post": {
        "summary": "Create a single IIIF Image from a IIIF URL",
        "tags": [
          "Images"
        ],
        "description": "Admin only.",
        "security": [
          {
            "sessionCookie": []
          }
        ],
        "x-badges": [
          {
            "name": "Admin only",
            "color": "#fd0"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "operationId": "postImages"
      }
    },
    "/images/random": {
      "get": {
        "summary": "Get random IIIF Images",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "georeferenced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "limitPerOrganization",
            "in": "query",
            "required": false,
            "schema": {
              "minimum": 1,
              "anyOf": [
                {
                  "format": "integer",
                  "default": 0,
                  "type": "string"
                },
                {
                  "minimum": 1,
                  "type": "integer"
                }
              ]
            }
          },
          {
            "name": "requireOrganizationManifest",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "operationId": "getImagesRandom"
      }
    },
    "/images/{imageId}/versions": {
      "get": {
        "summary": "Get all versions for a single IIIF Image",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getImagesByImageIdVersions"
      }
    },
    "/images/{imageId}/georeferenced": {
      "get": {
        "summary": "Check for published georeferencing for a IIIF Image",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Response for status 200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "georeferenced",
                    "georeferencingUpdatedAt",
                    "mapCount",
                    "georeferencedMapCount"
                  ],
                  "properties": {
                    "georeferenced": {
                      "type": "boolean"
                    },
                    "georeferencingUpdatedAt": {
                      "nullable": true,
                      "anyOf": [
                        {
                          "format": "date-time",
                          "description": "Latest update to a currently published map",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mapCount": {
                      "minimum": 0,
                      "description": "Current unarchived maps, including unfinished maps",
                      "anyOf": [
                        {
                          "format": "integer",
                          "default": 0,
                          "type": "string"
                        },
                        {
                          "minimum": 0,
                          "description": "Current unarchived maps, including unfinished maps",
                          "type": "integer"
                        }
                      ]
                    },
                    "georeferencedMapCount": {
                      "minimum": 0,
                      "description": "Current unarchived maps published in the Annotations API",
                      "anyOf": [
                        {
                          "format": "integer",
                          "default": 0,
                          "type": "string"
                        },
                        {
                          "minimum": 0,
                          "description": "Current unarchived maps published in the Annotations API",
                          "type": "integer"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "operationId": "getImagesByImageIdGeoreferenced"
      }
    },
    "/images/{imageId}/maps": {
      "get": {
        "summary": "Get maps for a single IIIF Image",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getImagesByImageIdMaps"
      }
    },
    "/images/{imageId}/maps.geojson": {
      "get": {
        "summary": "Get maps for a single IIIF Image as GeoJSON",
        "tags": [
          "Images"
        ],
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "imageServiceDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manifestDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intersects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "containedBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "minScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxScale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "minArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "maxArea",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modifiedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getImagesByImageIdMaps.geojson"
      }
    },
    "/projections": {
      "get": {
        "summary": "Get all projections",
        "tags": [
          "Projections"
        ],
        "operationId": "getProjections"
      }
    },
    "/projections/{projectionId}": {
      "get": {
        "summary": "Get a single projection",
        "tags": [
          "Projections"
        ],
        "parameters": [
          {
            "name": "projectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getProjectionsByProjectionId"
      }
    },
    "/": {
      "get": {
        "summary": "Allmaps REST API",
        "tags": [
          "API"
        ],
        "operationId": "getIndex"
      }
    }
  }
}