{
  "openapi": "3.0.0",
  "info": {
    "title": "Vev API",
    "description": "Access to the majority of endpoints is restricted and requires a [Vev API key](/api/auth/) for authentication. The key must be provided in the request header as `x-vev-key`. Click the authorizations section for each endpoint to see the required scopes.",
    "version": "0.0.1"
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "name": "x-vev-key",
        "in": "header",
        "description": "Vev API-key"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "schemas": {}
    },
    "schemas": {
      "def-0": {
        "title": "shared-schema"
      },
      "TransitionEffects": {
        "type": "object",
        "properties": {
          "revealDirection": {
            "type": "string",
            "enum": [
              "right",
              "left",
              "top",
              "top-left",
              "top-right"
            ]
          },
          "stackDirection": {
            "type": "string",
            "enum": [
              "up",
              "down",
              "left",
              "right"
            ]
          },
          "maskShape": {
            "type": "string",
            "enum": [
              "circle",
              "rectangle"
            ]
          },
          "zoomVariant": {
            "type": "string",
            "enum": [
              "in",
              "out",
              "rotate"
            ]
          },
          "blur": {
            "type": "string",
            "enum": [
              "subtle",
              "medium",
              "strong",
              "extreme"
            ]
          },
          "zoom": {
            "type": "string",
            "enum": [
              "small",
              "medium",
              "large",
              "extreme"
            ]
          }
        },
        "additionalProperties": false
      },
      "PlanToolInput": {
        "type": "object",
        "properties": {
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanSection"
            },
            "description": "Ordered list of sections to generate. The generator will produce EXACTLY this many sections in this order. When the user supplied raw text or images alongside the prompt, distribute that content across these sections — text quoted verbatim in the appropriate section's `content`, images assigned to the section they belong on via `imageKeys`. Each image key may appear on at most one section."
          }
        },
        "required": [
          "sections"
        ],
        "additionalProperties": false
      },
      "PlanSection": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Short descriptive name in natural case (Title Case or sentence-cased), e.g. \"Hero\", \"Feature grid\", \"Testimonials\", \"Two-column split\", \"Call to action\". Do NOT use kebab-case slugs like \"feature-grid\" or \"contact-cta\" — this is a display label, not an identifier."
          },
          "type": {
            "type": "string",
            "enum": [
              "section",
              "scrollytelling",
              "element-ai"
            ],
            "description": "Top-level model type for this section."
          },
          "layout": {
            "type": "string",
            "description": "Visual and spatial decisions ONLY — composition, proportions, density, emphasis moves. Do NOT mention copy, headlines, or content substance here; that's `content`. BAD: \"hero with founder quote on the left\". GOOD: \"full-bleed dark image left 60%, oversized serif headline right 40% with one accent-colored word, headline crashes the top edge\". Optional — when missing, the agent infers from content + guideline."
          },
          "content": {
            "type": "string",
            "description": "The concrete copy this section will use — actual phrases, not abstract intent. Headlines, subheads, button labels, key facts, list items. Quote literal text the page will display, not categories or what-it's-about descriptions. BAD: \"Three features: speed, reliability, price — each with benefit + metric\". GOOD: \"Headline: 'Ships in 48 hours, anywhere.' Three feature rows — Speed: 'Same-day dispatch'; Reliability: '99.97% on-time'; Price: '$0 setup, $9/mo'. Button: 'Start free'.\" When the user supplied raw text alongside the prompt, quote it verbatim here. Never paraphrase user-provided wording. Optional — when missing, the agent infers content from the section name + brand guideline."
          },
          "notes": {
            "type": "string",
            "description": "Optional creative notes — special effects, background treatment, unusual typography, etc. Do NOT describe interactivity here; interactive content should drive section type to \"element-ai\"."
          },
          "mayUseElementAi": {
            "type": "boolean",
            "description": "Set true ONLY for regular \"section\" types that embed a small interactive piece inside otherwise static content (e.g. a pricing section with a monthly/annual toggle, an FAQ row with expand/collapse, a feature card with an animated counter). When the WHOLE section is interactive (full FAQ accordion, tab system, carousel) use type \"element-ai\" instead. Leaving this undefined keeps the prompt lean; setting it true adds ~600 tokens of escape-hatch instructions to that section's agent call."
          },
          "transitionType": {
            "type": "string",
            "enum": [
              "fade",
              "scroll",
              "reveal",
              "stack",
              "mask",
              "flip",
              "cube",
              "zoom",
              "none"
            ],
            "description": "Scrollytelling-only. Transition between slides. Match to brand personality."
          },
          "transitionEffects": {
            "$ref": "#/components/schemas/TransitionEffects",
            "description": "Scrollytelling-only. Set ONLY fields valid for the chosen transitionType: revealDirection for reveal, stackDirection for stack, maskShape for mask, zoomVariant for zoom. blur/zoom are composable across any transition. Pick to match brand mood. Invalid fields are filtered out downstream."
          },
          "transitionSpeed": {
            "type": "string",
            "enum": [
              "linear",
              "fast",
              "snappy"
            ],
            "description": "Scrollytelling-only. Animation curve: linear (smooth), fast, snappy."
          },
          "slides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanSlide"
            },
            "description": "Scrollytelling-only. 3-6 slides, each a full-screen visual moment. REQUIRED when type is \"scrollytelling\"."
          },
          "imageKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Keys of user-provided images assigned to this section. Each image key may be assigned to at most one section; sections that don't reference user imagery should generate via imagePrompt instead."
          },
          "role": {
            "type": "string",
            "enum": [
              "header",
              "footer",
              "content"
            ],
            "description": "Structural role of this section. Default (omit) = ordinary in-page content section. Set \"header\" for the site's top navigation/branding bar and \"footer\" for the bottom footer. A header/footer becomes a Vev project-global sticky section (reused across the project), positioned automatically at the top/bottom — do NOT also place it as a normal content band. Use at most one \"header\" and one \"footer\" per page; every other section omits this field."
          }
        },
        "required": [
          "name",
          "type"
        ],
        "additionalProperties": false
      },
      "PlanSlide": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Short slide name in natural case, e.g. \"Intro\", \"Problem\", \"Solution\", \"Call to action\"."
          },
          "content": {
            "type": "string",
            "description": "What this slide contains — e.g. \"Headline + subhead about product vision with soft gradient background\", \"Full-bleed image with overlaid quote\"."
          },
          "notes": {
            "type": "string",
            "description": "Optional creative notes — visual treatment, specific wording, etc."
          }
        },
        "required": [
          "name",
          "content"
        ],
        "additionalProperties": false
      },
      "Plan": {
        "type": "object",
        "properties": {
          "designGuideline": {
            "$ref": "#/components/schemas/DesignGuideline",
            "description": "Design guideline approved alongside the theme — directs how to use the colors, fonts, and type scale. Editor merges this from the theme tool before calling the API."
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanSection"
            },
            "description": "Ordered list of sections to generate. The generator will produce EXACTLY this many sections in this order."
          }
        },
        "required": [
          "designGuideline",
          "sections"
        ],
        "additionalProperties": false
      },
      "DesignGuideline": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Short label capturing the brand mood, e.g. \"Editorial calm\", \"Brutalist bold\", \"Off-grid playground\". MUST be distinct from the theme name — the theme names the visual palette; the guideline names the way of applying it."
          },
          "layout": {
            "type": "string",
            "description": "Page-level composition principle — asymmetry, whitespace attitude, grid discipline, density. Brand language, NOT CSS values, and never section-specific. GOOD: \"Asymmetric with active negative space; off-grid placements; generous breathing room around headlines.\" BAD: \"Use 64px padding and 2:1 splits in feature sections.\" Concrete per-section layout decisions live on `PlanSection.layout` and are decided in the plan step."
          },
          "detail": {
            "type": "string",
            "description": "What \"quality\" means for this brand at every scale — rich (eyebrow labels, accent tags, shadows, decorative micro-details) vs restrained (flat, minimal chrome, just type and space). Brand-mood phrasing, not per-section directives."
          },
          "imagery": {
            "type": "string",
            "description": "Subject, style, color treatment for photography/illustration. Brand-level direction. Optional — omit if imagery is irrelevant to the brand."
          },
          "avoid": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Things to avoid for this specific brand (anti-patterns, never section names). Short phrases, e.g. [\"corporate gloss\", \"stock illustrations\", \"soft pastels\"]."
          },
          "notes": {
            "type": "string",
            "description": "Escape hatch for guidance that doesn't fit a dimension. Use sparingly."
          }
        },
        "required": [
          "name",
          "layout",
          "detail"
        ],
        "additionalProperties": false,
        "description": "Page-level brand direction — mood, principle, and feel applied equally to every section. NOT concrete layout instructions — those live on PlanSection.layout. Rule of thumb: a value should apply equally to a hero, a feature grid, AND a footer. Do NOT name, count, or describe specific sections in any field."
      },
      "FSAccountSAMLConfig": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "providerId": {
            "type": "string",
            "description": "The provider ID defined by the developer. For a SAML provider, this is always prefixed by `saml.`. For an OIDC provider, this is always prefixed by `oidc.`."
          },
          "displayName": {
            "type": "string",
            "description": "The user-friendly display name to the current configuration. This name is also used as the provider label in the Cloud Console."
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the provider configuration is enabled or disabled. A user cannot sign in using a disabled provider."
          },
          "idpEntityId": {
            "type": "string",
            "description": "The SAML IdP entity identifier."
          },
          "ssoURL": {
            "type": "string",
            "description": "The SAML IdP SSO URL. This must be a valid URL."
          },
          "x509Certificates": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The list of SAML IdP X.509 certificates issued by CA for this provider. Multiple certificates are accepted to prevent outages during IdP key rotation (for example ADFS rotates every 10 days). When the Auth server receives a SAML response, it will match the SAML response with the certificate on record. Otherwise the response is rejected. Developers are expected to manage the certificate updates as keys are rotated."
          },
          "rpEntityId": {
            "type": "string",
            "description": "The SAML relying party (service provider) entity ID. This is defined by the developer but needs to be provided to the SAML IdP."
          },
          "callbackURL": {
            "type": "string",
            "description": "This is fixed and must always be the same as the OAuth redirect URL provisioned by Firebase Auth, `https://project-id.firebaseapp.com/__/auth/handler` unless a custom `authDomain` is used. The callback URL should also be provided to the SAML IdP during configuration."
          }
        },
        "required": [
          "enabled",
          "idpEntityId",
          "key",
          "name",
          "providerId",
          "rpEntityId",
          "ssoURL",
          "x509Certificates"
        ]
      },
      "AiSectionInput": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Section model key (unique within a project)."
          },
          "libraryKey": {
            "type": "string",
            "description": "Library project key — always included to namespace the section."
          },
          "libraryName": {
            "type": "string",
            "description": "Human-readable library name."
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "pattern": {
            "type": "string"
          },
          "placement": {
            "type": "string",
            "enum": [
              "header",
              "content",
              "footer"
            ]
          },
          "html": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "libraryKey",
          "libraryName",
          "placement",
          "html"
        ],
        "additionalProperties": false
      },
      "APIWorkspaceProjects": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "totalCount": {
            "type": "number"
          },
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "image": {
                  "type": "string"
                },
                "index": {
                  "type": "string"
                },
                "updated": {
                  "type": "number"
                }
              },
              "required": [
                "key",
                "title",
                "index",
                "updated"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "key",
          "totalCount",
          "projects"
        ],
        "additionalProperties": false
      },
      "IWorkspace": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "associatedUrl": {
            "type": "string"
          },
          "creator": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "art": {
            "$ref": "#/components/schemas/IEmojiIcon"
          },
          "tileColor": {
            "$ref": "#/components/schemas/RGBA"
          },
          "members": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "palettes": {
            "$ref": "#/components/schemas/IPalettes"
          },
          "themeKey": {
            "type": "string",
            "description": "Default theme key for new projects created in this workspace"
          },
          "team": {
            "type": "string"
          },
          "public": {
            "type": "number",
            "description": "Whether the workspace is public to everyone, value is timestamp of when it was made public"
          },
          "publicBy": {
            "type": "string",
            "description": "User who made the workspace public"
          },
          "workspace": {
            "type": [
              "string",
              "null"
            ],
            "description": "Parent workspace (nested workspaces)"
          },
          "deleted": {
            "type": "number"
          },
          "deletedBy": {
            "type": "string",
            "description": "User who deleted the workspace"
          },
          "colors": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "$ref": "#/components/schemas/IGradient"
                }
              ]
            },
            "description": "Colors swatches added to workspace *"
          },
          "updatedBy": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "name"
        ],
        "additionalProperties": false
      },
      "IEmojiIcon": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "number",
                "const": 0
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "number",
                "const": 1
              },
              "value": {
                "$ref": "#/components/schemas/IShapePath"
              }
            },
            "required": [
              "type",
              "value"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "number",
                "const": 2
              },
              "value": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "value"
            ],
            "additionalProperties": false
          }
        ]
      },
      "IShapePath": {
        "type": "array",
        "minItems": 3,
        "items": [
          {
            "type": "number"
          },
          {
            "type": "number"
          },
          {
            "type": "string"
          }
        ],
        "maxItems": 3
      },
      "RGBA": {
        "type": "object",
        "properties": {
          "r": {
            "type": "number"
          },
          "g": {
            "type": "number"
          },
          "b": {
            "type": "number"
          },
          "a": {
            "type": "number"
          }
        },
        "required": [
          "r",
          "g",
          "b"
        ],
        "additionalProperties": false
      },
      "IPalettes": {
        "type": "object",
        "properties": {
          "primary": {
            "type": "string"
          },
          "primarydark": {
            "type": "string"
          },
          "accent": {
            "type": "string"
          },
          "accentdark": {
            "type": "string"
          },
          "bg": {
            "type": "string"
          },
          "text": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "IGradient": {
        "type": "object",
        "properties": {
          "type": {
            "type": "number"
          },
          "colors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IGradientColor"
            }
          },
          "ang": {
            "type": "number"
          },
          "radius": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 2,
                "maxItems": 2
              }
            ]
          },
          "offset": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 2,
                "maxItems": 2
              }
            ]
          }
        },
        "required": [
          "type",
          "colors"
        ],
        "additionalProperties": false
      },
      "IGradientColor": {
        "type": "object",
        "properties": {
          "c": {
            "type": "string"
          },
          "x": {
            "type": "number"
          }
        },
        "required": [
          "c",
          "x"
        ],
        "additionalProperties": false,
        "description": "Gradient color [red, green, blue, alpha, offset] | [cssVar, offset]"
      },
      "PagePrerender": {
        "type": "object",
        "properties": {
          "project": {
            "type": "string"
          },
          "page": {
            "type": "string"
          },
          "json": {
            "$ref": "#/components/schemas/IProjectContent",
            "description": "JSON content for page"
          },
          "css": {
            "type": "string",
            "description": "CSS string for page"
          },
          "html": {
            "type": "string",
            "description": "Content prerender"
          },
          "scripts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "urls to scripts"
          },
          "basicTracking": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "instance": {
                "type": "string"
              },
              "project": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "instance",
              "project"
            ],
            "additionalProperties": false,
            "description": "Optional Vev-owned analytics runtime for dynamically generated embeds. The token in this code is a public PostHog project token; tenant identity is baked in at publish time so Page API does not need Firebase access."
          },
          "publishAt": {
            "type": "number",
            "description": "Date to make the page available"
          },
          "unpublishAt": {
            "type": "number",
            "description": "Date to make the page unavailable"
          },
          "expiration": {
            "type": "number",
            "description": "expiration in seconds since epoch (Date.now() / 1000)"
          },
          "liveAt": {
            "type": "number",
            "description": "publishAt in seconds since epoch (Date.now() / 1000)"
          }
        },
        "required": [
          "project",
          "page",
          "json",
          "css",
          "html",
          "scripts"
        ],
        "additionalProperties": false
      },
      "IProjectContent": {
        "type": "object",
        "properties": {
          "project": {
            "type": "string"
          },
          "version": {
            "type": "number"
          },
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IPublishedPage"
            }
          },
          "dir": {
            "type": "string"
          },
          "formsEndpoint": {
            "type": "string",
            "description": "Absolute Vev forms capture URL, baked in at publish for hosting served off Vev's infrastructure (see SIMPLE_FORMS_ENDPOINT_HOSTING_TYPES)."
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IViewerContent"
            }
          },
          "shapes": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/IShapePath"
            }
          },
          "images": {
            "type": "object"
          },
          "menus": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/IProjectMenu"
            }
          },
          "scaling": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "settings": {
            "type": "object",
            "properties": {
              "devices": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/IProjectPresetMode"
                }
              },
              "load": {
                "type": "string",
                "enum": [
                  "lazy",
                  "lazy-ios"
                ]
              },
              "domainThemes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ThemeDomainRule"
                },
                "description": "Published domain themes, `match` lowercased (see `getPublishedDomainThemes`)"
              }
            },
            "additionalProperties": false
          },
          "masterMode": {
            "type": "string"
          },
          "primaryMenu": {
            "type": "string"
          },
          "pkg": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Packages to widget type map"
          },
          "route": {
            "type": "object",
            "properties": {
              "pageKey": {
                "type": "string"
              }
            },
            "required": [
              "pageKey"
            ],
            "additionalProperties": false
          },
          "interactions": {
            "$ref": "#/components/schemas/InteractionMap"
          },
          "animations": {
            "$ref": "#/components/schemas/AnimationKeyframesMap"
          },
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ViewerVariable"
            }
          },
          "localAssets": {
            "type": "boolean"
          },
          "customAssetPath": {
            "type": "string"
          }
        },
        "required": [
          "project",
          "pages",
          "models",
          "shapes",
          "images",
          "pkg"
        ],
        "additionalProperties": false
      },
      "IPublishedPage": {
        "type": "object",
        "properties": {
          "cover": {
            "type": "string"
          },
          "desc": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "index": {
            "type": "boolean"
          },
          "is404": {
            "type": "boolean"
          },
          "key": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "scrollSnap": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/REVIEW_STATUS"
          }
        },
        "required": [
          "key",
          "path",
          "title"
        ],
        "additionalProperties": false
      },
      "REVIEW_STATUS": {
        "type": "number",
        "enum": [
          0,
          1,
          2,
          3
        ]
      },
      "IViewerContent": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "attrs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "type": {
            "type": "string"
          },
          "master": {
            "type": [
              "boolean",
              "string"
            ]
          },
          "content": {
            "$ref": "#/components/schemas/ContentProps"
          },
          "variant": {
            "type": "string"
          },
          "childContent": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ContentProps"
            }
          },
          "cl": {
            "type": "string"
          },
          "pin": {
            "type": "boolean",
            "description": "Should content of model be pinned"
          },
          "html": {
            "type": "boolean"
          },
          "icons": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "$ref": "#/components/schemas/IShapePath"
                }
              ]
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "children": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "visibility": {
            "$ref": "#/components/schemas/IContentVisibility"
          },
          "fromModel": {
            "type": "string",
            "description": "Only for mocked models(components)"
          },
          "preset": {
            "type": "string"
          },
          "overrides": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ContentProps"
            }
          },
          "component": {
            "type": "string"
          },
          "hasFocusedState": {
            "type": "boolean"
          },
          "aiComponent": {
            "type": "boolean"
          }
        },
        "required": [
          "key"
        ],
        "additionalProperties": false
      },
      "ContentProps": {
        "type": "object"
      },
      "IContentVisibility": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/IContentPlacement"
        }
      },
      "IContentPlacement": {
        "anyOf": [
          {
            "type": "boolean",
            "const": true
          },
          {
            "type": "string",
            "const": "header"
          },
          {
            "type": "string",
            "const": "footer"
          },
          {
            "type": "object",
            "additionalProperties": {
              "type": [
                "boolean",
                "string"
              ],
              "enum": [
                true,
                "header",
                "footer"
              ]
            }
          }
        ]
      },
      "IProjectMenu": {
        "type": "object",
        "properties": {
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IMenuItem"
            },
            "description": "Items in this menu"
          },
          "title": {
            "type": "string",
            "description": "Name of the menu"
          },
          "key": {
            "type": "string"
          }
        },
        "required": [
          "children",
          "title",
          "key"
        ],
        "additionalProperties": false
      },
      "IMenuItem": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "settings": {
            "type": "object",
            "properties": {
              "hidden": {
                "type": "boolean"
              }
            },
            "required": [
              "hidden"
            ],
            "additionalProperties": false
          },
          "link": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "timer": {
                    "type": "number"
                  },
                  "inFront": {
                    "type": "boolean"
                  },
                  "tweenIn": {
                    "$ref": "#/components/schemas/ITween"
                  },
                  "tweenOut": {
                    "$ref": "#/components/schemas/ITween"
                  },
                  "preset": {
                    "type": "string"
                  },
                  "mode": {
                    "type": "number",
                    "const": 0
                  },
                  "page": {
                    "type": "string"
                  },
                  "target": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "mode"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "type": "number",
                    "const": 1
                  },
                  "widget": {
                    "$ref": "#/components/schemas/WidgetModel"
                  }
                },
                "required": [
                  "mode"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "type": "number",
                    "const": 2
                  },
                  "href": {
                    "type": "string"
                  },
                  "nofollow": {
                    "type": "boolean"
                  },
                  "sponsored": {
                    "type": "boolean"
                  },
                  "target": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "mode"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "type": "number",
                    "const": 3
                  },
                  "email": {
                    "type": "string"
                  },
                  "subject": {
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "type": "number",
                    "const": 4
                  },
                  "phone": {
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "type": "number",
                    "const": 5
                  },
                  "download": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "file": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "size": {
                        "type": "number"
                      },
                      "type": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "size",
                      "type",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "mode"
                ]
              }
            ]
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IMenuItem"
            }
          }
        },
        "required": [
          "key",
          "title"
        ],
        "additionalProperties": false
      },
      "ITween": {
        "type": "object",
        "properties": {
          "opacity": {
            "$ref": "#/components/schemas/ITweenAttr"
          },
          "scale": {
            "$ref": "#/components/schemas/ITweenAttr"
          },
          "time": {
            "type": "number"
          },
          "x": {
            "$ref": "#/components/schemas/ITweenAttr"
          },
          "y": {
            "$ref": "#/components/schemas/ITweenAttr"
          }
        },
        "additionalProperties": false
      },
      "ITweenAttr": {
        "type": "array",
        "minItems": 4,
        "items": [
          {
            "type": "number"
          },
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "number"
          }
        ],
        "maxItems": 4
      },
      "WidgetModel": {
        "type": "object",
        "properties": {
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IEmojiIcon"
              },
              {
                "type": "string"
              }
            ]
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "page": {
            "type": "string"
          },
          "pageName": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "name",
          "page"
        ],
        "additionalProperties": false
      },
      "IProjectPresetMode": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string"
          },
          "columnWidth": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "columnSize": {
            "type": "number",
            "description": "Colum size"
          },
          "minMax": {
            "type": "boolean",
            "description": "use"
          },
          "icon": {
            "$ref": "#/components/schemas/IEmojiIcon",
            "description": "Icon"
          },
          "name": {
            "type": "string",
            "description": "Display name for the mode, is optional, uses mode as display name if not defined"
          },
          "canvasSize": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "gutter": {
            "type": "number"
          },
          "scaling": {
            "type": "boolean"
          },
          "fluid": {
            "type": "boolean",
            "description": "Fluid"
          }
        },
        "required": [
          "mode",
          "columnSize",
          "minMax"
        ],
        "additionalProperties": false
      },
      "ThemeDomainRule": {
        "type": "object",
        "properties": {
          "match": {
            "type": "string",
            "description": "Case-insensitive part of the hostname, e.g. `aftonbladet`"
          },
          "themeKey": {
            "type": "string"
          }
        },
        "required": [
          "match",
          "themeKey"
        ],
        "additionalProperties": false,
        "description": "Serve `themeKey` instead of the project theme on hostnames containing `match`"
      },
      "InteractionMap": {
        "type": "object",
        "properties": {
          "trigger": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TriggerEvent"
              }
            }
          },
          "event": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EventTarget"
              }
            }
          }
        },
        "required": [
          "trigger",
          "event"
        ],
        "additionalProperties": false
      },
      "TriggerEvent": {
        "type": "array",
        "minItems": 3,
        "items": [
          {
            "type": "string",
            "title": "event"
          },
          {
            "type": "string",
            "title": "scope"
          },
          {
            "type": "object",
            "title": "args"
          }
        ],
        "maxItems": 3
      },
      "EventTarget": {
        "type": "object",
        "properties": {
          "node": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "args": {
            "type": "object"
          },
          "scope": {
            "type": "string"
          },
          "condition": {
            "type": "object",
            "properties": {
              "ignore": {
                "type": "boolean"
              },
              "expression": {
                "$ref": "#/components/schemas/VevCondition"
              },
              "else": {
                "$ref": "#/components/schemas/EventTarget"
              }
            },
            "required": [
              "expression"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "node",
          "type"
        ],
        "additionalProperties": false
      },
      "VevCondition": {
        "type": "array",
        "items": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/ValueType"
            },
            {
              "$ref": "#/components/schemas/Operators"
            },
            {
              "$ref": "#/components/schemas/ConditionCombinator"
            }
          ]
        }
      },
      "ValueType": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      },
      "Operators": {
        "type": "string",
        "enum": [
          "==",
          "!=",
          ">",
          "<",
          ">=",
          "<=",
          "IN",
          "NOT IN",
          "LIKE",
          "NOT LIKE",
          "BETWEEN",
          "NOT BETWEEN",
          "IS NULL",
          "IS NOT NULL"
        ]
      },
      "ConditionCombinator": {
        "type": "string",
        "enum": [
          "AND",
          "OR"
        ]
      },
      "AnimationKeyframesMap": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/InteractionAnimation"
        }
      },
      "InteractionAnimation": {
        "type": "object",
        "properties": {
          "keyframes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "composite": {
                  "type": "string",
                  "enum": [
                    "accumulate",
                    "add",
                    "auto",
                    "replace"
                  ]
                },
                "easing": {
                  "type": "string"
                },
                "offset": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  },
                  {
                    "not": {}
                  }
                ]
              }
            }
          },
          "perspective": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "in",
              "out",
              "highlight",
              "scroll"
            ]
          }
        },
        "required": [
          "keyframes",
          "type"
        ],
        "additionalProperties": false
      },
      "ViewerVariable": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": [
              "string",
              "number"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/VariableType"
          },
          "unit": {
            "$ref": "#/components/schemas/VariableUnit"
          },
          "options": {
            "$ref": "#/components/schemas/VariableOptions"
          }
        },
        "required": [
          "key",
          "name",
          "type"
        ],
        "additionalProperties": false
      },
      "VariableType": {
        "type": "string",
        "enum": [
          "color",
          "number",
          "font",
          "text",
          "image"
        ]
      },
      "VariableUnit": {
        "type": "string",
        "enum": [
          "%",
          "px",
          "vh",
          "vw",
          "em",
          "rem",
          "cm",
          "deg",
          "rad",
          "s",
          "ms",
          ""
        ]
      },
      "VariableOptions": {
        "type": "object",
        "properties": {
          "persist": {
            "$ref": "#/components/schemas/VariablePersistMode",
            "description": "Keep the runtime value when navigating between pages. Defaults to `none`."
          }
        }
      },
      "VariablePersistMode": {
        "type": "string",
        "enum": [
          "none",
          "page"
        ],
        "description": "How long a runtime value set on a variable survives.\n- `none` (default): the value is lost when the viewer resets variables, which   happens the first time a page is loaded during client side navigation.\n- `page`: the value is kept while navigating between pages, but not across reloads."
      },
      "HostingPublishEvent": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "logId": {
            "type": "string",
            "description": "ID for logs for this, and related (ie. UPLOAD) Events"
          },
          "projectKey": {
            "type": "string"
          },
          "publishKey": {
            "type": "string"
          },
          "responseNumber": {
            "type": "number",
            "description": "Filled in by event handler"
          },
          "settings": {
            "$ref": "#/components/schemas/WebhookSettings"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "OK",
              "ERROR",
              "TIMEOUT"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/HostingEventType"
          },
          "version": {
            "type": "string",
            "description": "Publish version"
          },
          "error": {
            "type": "string",
            "description": "Automatically filled in by the Event Handler in case handling of the event throws an Error"
          },
          "handled": {
            "type": "boolean",
            "description": "Automatically filled in by the Event Handler when handling is complete"
          },
          "sentBy": {
            "type": "string",
            "description": "UID for user who sent the event"
          },
          "timestamp": {
            "type": "number",
            "description": "Automatically filled in by the Event Handler when execution starts"
          },
          "key": {
            "type": "string",
            "description": "Event key"
          }
        },
        "required": [
          "logId",
          "projectKey",
          "publishKey",
          "type",
          "version"
        ]
      },
      "WebhookSettings": {
        "type": "object",
        "properties": {
          "customAssetFolder": {
            "type": "string",
            "description": "Set name of assets folder, defaults to `assets`. `includeAssets` has to be set."
          },
          "downloadPageContents": {
            "type": "boolean",
            "description": "Send URLs to where page contents can be downloaded from, instead of including it in the payload"
          },
          "includeAssets": {
            "type": "boolean",
            "description": "Make payload include URLs to *all* assets and fix paths to assets"
          },
          "renderFullPage": {
            "type": "boolean"
          },
          "security": {
            "$ref": "#/components/schemas/Security"
          },
          "securityMeta": {
            "$ref": "#/components/schemas/SecurityMeta"
          },
          "sendPackageSettings": {
            "type": "boolean"
          },
          "ssl": {
            "type": "boolean"
          },
          "webhook": {
            "type": "string"
          },
          "fixOgImage": {
            "type": "boolean",
            "description": "Fixed the meta tag for og:image to be"
          },
          "secret": {
            "$ref": "#/components/schemas/UserGenerateSecret",
            "description": "Reference to KSM encrypted secret with chiphertext needed to decrypt it"
          }
        },
        "required": [
          "security",
          "ssl",
          "webhook"
        ],
        "additionalProperties": false
      },
      "Security": {
        "type": "string",
        "enum": [
          "none",
          "basic",
          "token",
          "oidc"
        ]
      },
      "SecurityMeta": {
        "type": "object",
        "properties": {
          "secret": {
            "type": "string"
          }
        },
        "required": [
          "secret"
        ],
        "additionalProperties": false
      },
      "UserGenerateSecret": {
        "type": "object",
        "properties": {
          "first4": {
            "type": "string"
          },
          "ciphertext": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "created": {
            "type": "number"
          }
        },
        "required": [
          "first4",
          "ciphertext",
          "createdBy",
          "created"
        ],
        "additionalProperties": false
      },
      "HostingEventType": {
        "type": "string",
        "enum": [
          "COMPILE",
          "DELETE",
          "GENERATE_VERSION",
          "MAINTENANCE",
          "PING",
          "PUBLISH",
          "ROLLBACK",
          "UNPUBLISH"
        ]
      },
      "FSProjectPage": {
        "type": "object",
        "properties": {
          "compileStatus": {
            "$ref": "#/components/schemas/PageCompileStatus",
            "description": "Set to true when content changed on page but new page cover was not updated. Need to call the page-cover-http cf to update the cover"
          },
          "compiled": {
            "type": "number"
          },
          "prerenderHtml": {
            "type": "string"
          },
          "viewerUrl": {
            "type": "string",
            "description": "Viewer URL at last compile. If outdated that would mean a new compile is needed for contents to be up to date."
          },
          "image": {
            "type": "object",
            "properties": {
              "thumb": {
                "type": "string"
              },
              "location": {
                "type": "string"
              }
            },
            "required": [
              "location"
            ],
            "additionalProperties": false,
            "description": "Thumb is deprecated, using Cloudflare and generating image on demand Only used for old projects, which does not have a prerender (will be removed)"
          },
          "pdf": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "updated": {
                "type": "number"
              },
              "state": {
                "type": "string",
                "enum": [
                  "queued",
                  "error",
                  "processing",
                  "done"
                ]
              },
              "includePinned": {
                "type": "boolean"
              }
            },
            "required": [
              "path",
              "updated",
              "state"
            ],
            "additionalProperties": false
          },
          "key": {
            "type": "string"
          },
          "cover": {
            "type": "string"
          },
          "deleted": {
            "type": "number"
          },
          "created": {
            "type": "number"
          },
          "updated": {
            "type": "number"
          },
          "status": {
            "$ref": "#/components/schemas/REVIEW_STATUS"
          },
          "order": {
            "type": "number",
            "description": "Page order for sorting in the editor"
          },
          "description": {
            "type": "string",
            "description": "Page description"
          },
          "path": {
            "type": "string",
            "description": "Page's path, if set manually"
          },
          "templateApplied": {
            "type": "string",
            "description": "<code>true</code> if template has been applied to page"
          },
          "project": {
            "type": "string",
            "description": "DO NOT USE, deprecated"
          },
          "title": {
            "type": "string",
            "description": "Page title"
          },
          "lang": {
            "type": "string",
            "description": "Page language, ISO 639-1"
          },
          "createState": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "queued",
                  "error",
                  "done"
                ]
              },
              "templateKey": {
                "type": "string"
              },
              "fromPage": {
                "type": "string"
              },
              "fromLibrary": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "key",
                  "page",
                  "version"
                ],
                "additionalProperties": false
              },
              "fromProject": {
                "type": "string"
              }
            },
            "required": [
              "state"
            ],
            "additionalProperties": false,
            "description": "State for syncing assets and models on create"
          },
          "originalPath": {
            "type": "string"
          },
          "custom": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Custom variables"
          },
          "externalId": {
            "type": "string"
          },
          "scrollSnap": {
            "type": "boolean",
            "description": "Enable scroll snap"
          },
          "expiration": {
            "type": "number",
            "description": "expiration in seconds since epoch (Date.now() / 1000)"
          },
          "liveAt": {
            "type": "number",
            "description": "publishAt in seconds since epoch (Date.now() / 1000)"
          }
        },
        "required": [
          "key",
          "updated",
          "title"
        ],
        "additionalProperties": false
      },
      "PageCompileStatus": {
        "type": "number",
        "enum": [
          0,
          1,
          2,
          3
        ]
      },
      "FSProject": {
        "type": "object",
        "properties": {
          "compileStatus": {
            "$ref": "#/components/schemas/PageCompileStatus",
            "description": "Set to true when content changed on page but new page cover was not updated. Need to call the page-cover-http cf to update the cover"
          },
          "compiled": {
            "type": "number"
          },
          "prerenderHtml": {
            "type": "string"
          },
          "viewerUrl": {
            "type": "string",
            "description": "URL for Viewer at the last publish"
          },
          "image": {
            "type": "object",
            "properties": {
              "thumb": {
                "type": "string"
              },
              "location": {
                "type": "string"
              }
            },
            "required": [
              "location"
            ],
            "additionalProperties": false,
            "description": "Thumb is deprecated, using Cloudflare and generating image on demand Only used for old projects, which does not have a prerender (will be removed)"
          },
          "pdf": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "updated": {
                "type": "number"
              },
              "state": {
                "type": "string",
                "enum": [
                  "queued",
                  "error",
                  "processing",
                  "done"
                ]
              },
              "includePinned": {
                "type": "boolean"
              }
            },
            "required": [
              "path",
              "updated",
              "state"
            ],
            "additionalProperties": false
          },
          "key": {
            "type": "string"
          },
          "sitesImport": {
            "$ref": "#/components/schemas/ProjectSitesImport",
            "description": "Set when the project was filled by a Sites (Brandcast) import"
          },
          "externalId": {
            "type": "string",
            "description": "External user supplied id (for Content API)"
          },
          "title": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IProjectTag"
            }
          },
          "index": {
            "type": "string",
            "description": "Page key to index page of project"
          },
          "pageNotFound404": {
            "type": "string",
            "description": "Page key to 404 page of project"
          },
          "breakingVersion": {
            "type": "number",
            "description": "Added to the project if it was opened on dev with envConfig,breakingVersion set"
          },
          "version": {
            "type": "number",
            "description": "Template publish version number"
          },
          "workspace": {
            "type": "string"
          },
          "team": {
            "type": "string",
            "description": "Team key, only used when project is a template"
          },
          "members": {
            "$ref": "#/components/schemas/FSProjectMembers"
          },
          "updated": {
            "type": "number"
          },
          "created": {
            "type": "number"
          },
          "createState": {
            "type": "object",
            "properties": {
              "fromKey": {
                "type": "string"
              },
              "fromPage": {
                "type": "string"
              },
              "projectPresetKey": {
                "type": "string"
              },
              "templatePaletteOverride": {
                "type": "boolean"
              },
              "state": {
                "type": "string",
                "enum": [
                  "queued",
                  "error",
                  "done"
                ]
              }
            },
            "required": [
              "state"
            ],
            "additionalProperties": false,
            "description": "Attr for creating projects"
          },
          "viewed": {
            "type": "number",
            "description": "Timestamp for when user last viewed project, added when fetching recent"
          },
          "deleted": {
            "type": "number",
            "description": "Timestamp for deletion"
          },
          "deletedBy": {
            "type": "string",
            "description": "UID of user who deleted"
          },
          "creator": {
            "type": "string",
            "description": "User id of creator"
          },
          "originalCreator": {
            "type": "string",
            "description": "User id of original creator  when project is copied"
          },
          "templateKey": {
            "type": "string",
            "description": "Project created from template key"
          },
          "templateSyncVersion": {
            "type": "number",
            "description": "Assets from template was last synced in version."
          },
          "widgetPkgKey": {
            "type": "string",
            "description": "Set if project is preview for a widget pkg"
          },
          "template": {
            "type": "boolean",
            "description": "`true` if Project is really a Template"
          },
          "library": {
            "type": "boolean",
            "description": "`true` if Project is a library"
          },
          "templateStatus": {
            "$ref": "#/components/schemas/REVIEW_STATUS"
          },
          "example": {
            "$ref": "#/components/schemas/ExampleStatus"
          },
          "cloneOf": {
            "type": "string"
          },
          "vevSiteDeleted": {
            "type": "boolean",
            "description": "Indicates whether the \"default\" .vev.site destination has been deleted"
          },
          "public": {
            "type": "number"
          },
          "account": {
            "type": "string"
          },
          "published": {
            "type": "boolean"
          },
          "publishedAt": {
            "type": "number"
          },
          "migration": {
            "type": "object",
            "properties": {
              "state": {
                "$ref": "#/components/schemas/ProjectMigrationState"
              },
              "version": {
                "type": "number"
              },
              "versionKey": {
                "type": "string",
                "description": "Run the migration with a specific backup of the project"
              }
            },
            "additionalProperties": false
          },
          "compileSettings": {
            "type": "object",
            "properties": {
              "preact": {
                "type": "boolean"
              },
              "bundleSharedCSS": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          },
          "versionState": {
            "type": "object",
            "properties": {
              "state": {
                "$ref": "#/components/schemas/ProjectMigrationState"
              },
              "options": {
                "type": "object",
                "properties": {
                  "type": {
                    "$ref": "#/components/schemas/FSProjectVersionType",
                    "description": "Type of version"
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of new version"
                  },
                  "versionKey": {
                    "type": "string",
                    "description": "Roll back to another version"
                  },
                  "pages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Only rollback some pages"
                  },
                  "uid": {
                    "type": "string",
                    "description": "Manually saved by use"
                  }
                },
                "required": [
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "options"
            ],
            "additionalProperties": false
          },
          "widgets": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "cover": {
            "type": "string",
            "description": "Cover is currently only used for template projects"
          },
          "description": {
            "type": "string",
            "description": "Description is currently only used for template projects"
          },
          "preferredVersion": {
            "type": "string",
            "description": "URL for Viewer at the last publish"
          },
          "sitePlan": {
            "$ref": "#/components/schemas/SitePlan",
            "description": "Define sitePlan inside the project"
          },
          "lastSave": {
            "type": "number",
            "description": "Timestamp of last created version"
          },
          "publishMeta": {
            "type": "object",
            "properties": {
              "hash": {
                "type": "string",
                "description": "Hash of entire matches-array from mapping to `scanModel` after having removed duplicates"
              },
              "timestamp": {
                "type": "number",
                "description": "Timestamp of last warning for this Project"
              }
            },
            "required": [
              "hash",
              "timestamp"
            ],
            "additionalProperties": false,
            "description": "(Ambiguous name on purpose) Field for holding timestamp and hash of last phishing warning for Project."
          },
          "includePinnedOnPdf": {
            "type": "boolean",
            "description": "If pinned should be included on PDF generation"
          },
          "updatedBy": {
            "type": "string"
          },
          "publishedTo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectPublishTarget"
            },
            "description": "Where the project is live, one entry per published destination. Written by the server with `published` so project lists can show it without reading each project's publish docs."
          }
        },
        "required": [
          "key",
          "title",
          "index",
          "members",
          "updated",
          "created",
          "createState",
          "creator",
          "templateStatus",
          "publishedAt",
          "lastSave"
        ],
        "additionalProperties": false
      },
      "ProjectSitesImport": {
        "type": "object",
        "properties": {
          "siteUrl": {
            "type": "string",
            "description": "URL the import read from"
          },
          "websiteId": {
            "type": "string",
            "description": "The Sites website's own id, the same whichever URL it was read through"
          },
          "siteName": {
            "type": "string"
          },
          "hostingKey": {
            "type": "string",
            "description": "Standard hosting the import was started from"
          },
          "jobId": {
            "type": "string",
            "description": "Latest import job"
          },
          "imported": {
            "type": "number",
            "description": "Last time an import wrote to the project"
          }
        },
        "required": [
          "siteUrl",
          "websiteId",
          "imported"
        ],
        "additionalProperties": false,
        "description": "Where a project's pages were imported from, written by the Sites (Brandcast) import"
      },
      "IProjectTag": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "icon": {
            "$ref": "#/components/schemas/IEmojiIcon"
          },
          "color": {
            "$ref": "#/components/schemas/RGBA"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "FSProjectMembers": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/ProjectRights"
        }
      },
      "ProjectRights": {
        "type": "number",
        "enum": [
          0,
          1,
          2,
          3,
          4
        ]
      },
      "ExampleStatus": {
        "type": "string",
        "enum": [
          "DRAFT",
          "PUBLIC"
        ]
      },
      "ProjectMigrationState": {
        "type": "string",
        "enum": [
          "queued",
          "running",
          "error",
          "done"
        ]
      },
      "FSProjectVersionType": {
        "type": "string",
        "enum": [
          "manual",
          "auto",
          "publish",
          "rollback",
          "backup",
          "migration",
          "library",
          "zip"
        ]
      },
      "SitePlan": {
        "type": [
          "number",
          "string"
        ],
        "enum": [
          0,
          "standard"
        ]
      },
      "ProjectPublishTarget": {
        "type": "object",
        "properties": {
          "hostingKey": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/HOSTING_TYPES"
          },
          "label": {
            "type": "string",
            "description": "What the hosting list shows for this destination, e.g. `example.com/campaign` or `Embed`"
          },
          "url": {
            "type": "string",
            "description": "Live URL, when the destination has one"
          },
          "icon": {
            "type": "object",
            "properties": {
              "bucket": {
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            },
            "required": [
              "bucket",
              "path"
            ],
            "additionalProperties": false,
            "description": "The hosting's uploaded icon (its favicon), copied from `hosting.icon`"
          }
        },
        "required": [
          "hostingKey",
          "type",
          "label"
        ],
        "additionalProperties": false,
        "description": "Summary of one live publish destination, stored on the project (`publishedTo`)"
      },
      "HOSTING_TYPES": {
        "type": "string",
        "enum": [
          "vev-cf-standard",
          "vev-free",
          "vev-sftp",
          "vev-ftp",
          "vev-s3",
          "vev-netlify",
          "vev-aws",
          "vev-zip",
          "vev-webhook",
          "vev-epublish",
          "vev-embed",
          "vev-optimizely"
        ]
      },
      "FSAccount": {
        "type": "object",
        "properties": {
          "migration": {
            "$ref": "#/components/schemas/AccountMigrationFlag"
          },
          "active": {
            "type": "boolean",
            "description": "Wether or not the account is active"
          },
          "frozen": {
            "type": "boolean",
            "description": "Wether or not the account is frozen"
          },
          "clientContact": {
            "type": "string",
            "description": "The name of the client contact / reference at company"
          },
          "country": {
            "type": "string",
            "description": "Which country this account belongs to. Currently only used to apply norwegian VAT to subscriptions"
          },
          "created": {
            "type": "number",
            "description": "Created timestamp"
          },
          "currency": {
            "$ref": "#/components/schemas/SupportedCurrency",
            "description": "Currency for the accounts subscription."
          },
          "deleted": {
            "type": "number",
            "description": "Timestamp for deletion of account"
          },
          "disabled": {
            "type": "boolean",
            "description": "Disabled accounts will not be accounted for, and will hide all account shit in the UI"
          },
          "icon": {
            "$ref": "#/components/schemas/IEmojiIcon",
            "description": "URL to icon or turns to gravatar"
          },
          "jiraOrganization": {
            "type": "string",
            "description": "ID for account's Jira Organization"
          },
          "key": {
            "type": "string",
            "description": "The unique account key"
          },
          "manager": {
            "type": "string",
            "description": "Contact / Account Owner at Vev"
          },
          "members": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/AccountRole"
            }
          },
          "name": {
            "type": "string",
            "description": "The name of the current account"
          },
          "domain": {
            "type": "string",
            "description": "Company domain"
          },
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FSAccountLogEntry"
            },
            "description": "Account activity log"
          },
          "billing": {
            "$ref": "#/components/schemas/AccountBilling"
          },
          "invoiceInfo": {
            "type": "string",
            "description": "Extra information to put on invoice"
          },
          "organizationId": {
            "type": "string",
            "description": "Organization ID or number if applicable."
          },
          "stripe": {
            "type": "string",
            "description": "Stripe customer id"
          },
          "subscription": {
            "type": "string",
            "description": "Stripe subscription id"
          },
          "syncStripeTaskId": {
            "type": "string",
            "description": "Task ID for syncing stripe"
          },
          "intercomId": {
            "type": "string",
            "description": "This account's Intercom (Company) ID, `undefined` if not created yet"
          },
          "v1": {
            "type": "boolean"
          },
          "trial": {
            "type": "object",
            "properties": {
              "soft": {
                "type": "number",
                "description": "unix timestamp Soft trial date use only used in the ui"
              },
              "end": {
                "type": "number",
                "description": "unix timestamp is added to the stripe subscription, so payment will start at this point, or account will be disabled"
              }
            },
            "required": [
              "soft",
              "end"
            ],
            "additionalProperties": false
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/Stripe.Subscription.CollectionMethod",
            "description": "Stripe payment method"
          },
          "daysUntilDue": {
            "type": "number",
            "description": "Stripe days until due option"
          },
          "type": {
            "$ref": "#/components/schemas/AccountType",
            "description": "Account type"
          },
          "updated": {
            "type": "number",
            "description": "Updated timestamp"
          },
          "updatedBy": {
            "type": "string",
            "description": "UID of user that last updated account"
          },
          "vevContact": {
            "type": "string",
            "description": "Key account manager @ Vev"
          },
          "slackChannels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Slack channels linked to the account This array is used when counting to generate FSAccountData slackUsers object"
          },
          "slackInstallation": {
            "type": "string",
            "description": "Key of the slack installation"
          },
          "userRoles": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "supportPlans": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/SupportProduct"
            },
            "description": "Support plans for user types"
          },
          "defaultThemeKey": {
            "type": "string",
            "description": "Default theme key for new projects in this account"
          },
          "features": {
            "$ref": "#/components/schemas/AccountFeatures",
            "description": "Special features for an account"
          },
          "disabledProviders": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Disables certain login providers for members of the account"
          },
          "numAvailableSitePlans": {
            "type": "number",
            "description": "Amount of available site plans for an account. each project can have one site plan"
          },
          "stats": {
            "$ref": "#/components/schemas/AccountStats"
          },
          "creatingFor": {
            "type": "object",
            "properties": {
              "value": {
                "$ref": "#/components/schemas/UserCreatingFor"
              },
              "other": {
                "type": "string"
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          },
          "activitySeen": {
            "type": "number"
          },
          "approved": {
            "type": "boolean",
            "description": "If the account is approved, any users on this account will"
          },
          "denoProjectId": {
            "type": "string",
            "description": "The project ID in deno deploy for this account"
          },
          "denoKvId": {
            "type": "string",
            "description": "The KV ID in deno deploy for this account"
          },
          "passwordPageProject": {
            "type": "string",
            "description": "Custom password page"
          },
          "emailWhitelistPageProject": {
            "type": "string",
            "description": "Custom email whitelist landing (form) page – format `${projectKey}/${pageKey}`"
          },
          "emailWhitelistSentPageProject": {
            "type": "string",
            "description": "Custom email whitelist \"email sent\" confirmation page – format `${projectKey}/${pageKey}`"
          },
          "emailWhitelistMagicLinkEmail": {
            "$ref": "#/components/schemas/EmailTemplateOverride",
            "description": "Custom magic-link (\"Your access link\") email override. `{{magicLinkUrl}}` in the html/text is substituted with the sign-in URL at send time."
          },
          "emailWhitelistOtpEmail": {
            "$ref": "#/components/schemas/EmailTemplateOverride",
            "description": "Custom OTP-code (\"Your verification code\") email override. `{{code}}` in the html/text is substituted with the 6-digit code at send time."
          },
          "forceUserAuth": {
            "type": [
              "string"
            ],
            "description": "Force users to use this type of auth"
          },
          "forceUserAuthTimestamp": {
            "type": "number",
            "description": "Enforce user auth type _after_ this time"
          },
          "permissions": {
            "type": "object",
            "additionalProperties": {},
            "description": "Account permission overrides"
          },
          "rolePermissions": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {}
            },
            "description": "Account role permission overrides"
          },
          "customRoles": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Account custom roles"
          },
          "customPrompts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountCustomPrompt"
            },
            "description": "Account custom prompts for text AI"
          },
          "formRetentionDays": {
            "type": "number",
            "description": "Days simple-forms submissions are kept before auto-deletion (GDPR retention). Unset means SIMPLE_FORMS_DEFAULT_RETENTION_DAYS. Changing it recomputes `expiresAt` on the account's stored submissions."
          },
          "domainThemes": {
            "$ref": "#/components/schemas/AccountDomainThemes",
            "description": "Domain theme preset for the account's projects, only account admins may change it"
          },
          "formNotifyUserKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Members who opted in to be notified (in-app + email via Intercom) when a simple-forms submission arrives. User keys, not emails — only current members are notified, so a removed member stops receiving mail without a separate cleanup."
          }
        },
        "required": [
          "active",
          "created",
          "members",
          "name",
          "billing",
          "type"
        ],
        "additionalProperties": false
      },
      "AccountMigrationFlag": {
        "type": "number",
        "enum": [
          1,
          2,
          3
        ]
      },
      "SupportedCurrency": {
        "type": "string",
        "enum": [
          "usd",
          "nok",
          "cad",
          "eur",
          "gbp"
        ]
      },
      "AccountRole": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ROLES"
          },
          {
            "type": "string"
          }
        ]
      },
      "ROLES": {
        "type": "number",
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "description": "Different roles for account members"
      },
      "FSAccountLogEntry": {
        "type": "object",
        "properties": {
          "logText": {
            "type": "string"
          },
          "logType": {
            "$ref": "#/components/schemas/AccountLogType"
          },
          "logUser": {
            "type": "string"
          },
          "time": {
            "type": "number"
          },
          "snapshot": {
            "$ref": "#/components/schemas/FSAccount",
            "description": "Snapshot of the account document at the time this activity was logged. Only visible to super admins in the editor's account activity log."
          }
        },
        "required": [
          "logText",
          "logType",
          "time"
        ],
        "additionalProperties": false
      },
      "AccountLogType": {
        "type": "string",
        "enum": [
          "DEBUG",
          "INFO",
          "SUCCESS",
          "WARNING",
          "ERROR"
        ]
      },
      "AccountBilling": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/BillingInformation"
          },
          "billableEntities": {
            "$ref": "#/components/schemas/SubscribableEntitiesList"
          },
          "settings": {
            "$ref": "#/components/schemas/AccountBillingSettings",
            "description": "New prop for account type specific prices"
          },
          "status": {
            "$ref": "#/components/schemas/FSAccountStatus",
            "description": "Auto generated attribute generated by api with stripe data"
          },
          "lastCounted": {
            "type": "number",
            "description": "Last counted entities from database"
          },
          "lastReported": {
            "type": "number"
          },
          "coupon": {
            "type": "string",
            "description": "Add discount coupon for account"
          }
        },
        "additionalProperties": false
      },
      "BillingInformation": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "organizationId": {
            "type": "string",
            "description": "Organization ID or number if applicable."
          },
          "name": {
            "type": "string",
            "description": "The customer’s full name or business name."
          },
          "info": {
            "type": "string",
            "description": "Extra billing info"
          },
          "address": {
            "$ref": "#/components/schemas/Stripe.AddressParam",
            "description": "Stripe customer address"
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false
      },
      "StripeAddressParam": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "description": "City, district, suburb, town, village, or ward."
          },
          "country": {
            "type": "string",
            "description": "Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2))."
          },
          "line1": {
            "type": "string",
            "description": "Address line 1 (e.g., street, block, PO Box, or company name)."
          },
          "line2": {
            "type": "string",
            "description": "Address line 2 (e.g., apartment, suite, unit, or building)."
          },
          "postal_code": {
            "type": "string",
            "description": "ZIP or postal code."
          },
          "state": {
            "type": "string",
            "description": "State, county, province, prefecture, or region."
          }
        },
        "additionalProperties": false
      },
      "SubscribableEntitiesList": {
        "type": "object",
        "properties": {
          "users": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "number",
                "string"
              ]
            }
          },
          "slackUsers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "hostings": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "integrations": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "projects": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          }
        },
        "additionalProperties": false,
        "description": "Defines the input/output format for accounts subscribable entities"
      },
      "AccountBillingSettings": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "slackUsers": {
            "type": "number"
          },
          "subscriptionStartDate": {
            "type": "number"
          },
          "products": {
            "$ref": "#/components/schemas/BillingProductMap",
            "description": "Product to price map for platform products"
          },
          "interval": {
            "type": "number",
            "description": "Number of months between payment interval, is used for filtering appropriate stripe prices base on the recurring state"
          },
          "backdateStart": {
            "type": "number"
          },
          "billingCycleAnchor": {
            "type": "number"
          },
          "maxCollaborationTeams": {
            "type": "number"
          },
          "maxSeats": {
            "type": "number"
          },
          "includesSecurity": {
            "type": "boolean"
          },
          "workspace": {
            "type": "number"
          }
        }
      },
      "BillingProductMap": {
        "type": "object",
        "properties": {
          "application.fee": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "user.entity": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "user.role_3": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "user.role_4": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "user.role_1": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "user.role_5": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "user.role_2": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "support.tier0": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "support.tier1": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "support.tier2": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "support.tier3": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "hosting.entity": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "hosting.publish_pack": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "product.trials": {
            "$ref": "#/components/schemas/BillingProduct"
          },
          "product.workshop": {
            "$ref": "#/components/schemas/BillingProduct"
          }
        },
        "additionalProperties": false
      },
      "BillingProduct": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "minQuantity": {
            "type": "number"
          },
          "maxQuantity": {
            "type": "number"
          },
          "included": {
            "type": "number"
          },
          "prices": {
            "$ref": "#/components/schemas/ProductPriceList"
          }
        },
        "additionalProperties": false
      },
      "ProductPriceList": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/components/schemas/ProductPriceInfo"
        }
      },
      "ProductPriceInfo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "value": {
            "type": "number"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "FSAccountStatus": {
        "type": "object",
        "properties": {
          "periodStart": {
            "type": "number"
          },
          "periodEnd": {
            "type": "number"
          },
          "subscription": {
            "$ref": "#/components/schemas/Stripe.Subscription.Status"
          },
          "canceled": {
            "type": "boolean"
          },
          "canceledDate": {
            "type": "number"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "periodStart",
          "periodEnd",
          "subscription"
        ],
        "additionalProperties": false
      },
      "StripeSubscriptionStatus": {
        "type": "string",
        "enum": [
          "active",
          "canceled",
          "incomplete",
          "incomplete_expired",
          "past_due",
          "paused",
          "trialing",
          "unpaid"
        ]
      },
      "StripeSubscriptionCollectionMethod": {
        "type": "string",
        "enum": [
          "charge_automatically",
          "send_invoice"
        ]
      },
      "AccountType": {
        "type": "number",
        "enum": [
          1,
          2,
          3,
          4
        ]
      },
      "SupportProduct": {
        "type": "string",
        "enum": [
          "support.tier0",
          "support.tier1",
          "support.tier2",
          "support.tier3"
        ]
      },
      "AccountFeatures": {
        "type": "object",
        "properties": {
          "disableAIFeatures": {
            "type": "boolean",
            "description": "Disable AI features"
          },
          "hdVideo": {
            "type": "boolean",
            "description": "Enable 1080p videos"
          },
          "highBitrateVideo": {
            "type": "boolean",
            "description": "Let users re-encode videos at a higher bitrate"
          },
          "cerosUpload": {
            "type": "boolean",
            "description": "Enable the Ceros project upload tool on staging hostings"
          },
          "htmlBundles": {
            "type": "boolean",
            "description": "Enable HTML bundle uploads (a zipped static site served at a hosting path)"
          }
        },
        "additionalProperties": false
      },
      "AccountStats": {
        "type": "object",
        "properties": {
          "publishedProjects": {
            "type": "number"
          },
          "projectPlans": {
            "type": "number"
          },
          "projects": {
            "type": "number"
          },
          "templates": {
            "type": "number"
          },
          "workspaces": {
            "type": "number"
          },
          "teams": {
            "type": "number"
          },
          "pendingUsers": {
            "type": "number"
          },
          "activeUsers": {
            "type": "number"
          },
          "projectGuests": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "UserCreatingFor": {
        "type": "string",
        "enum": [
          "personal",
          "freelance",
          "agency",
          "company",
          "other"
        ]
      },
      "EmailTemplateOverride": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "Custom override for a transactional email sent by the email-whitelist flow. `html`/`text` may contain a placeholder token (`{{magicLinkUrl}}` for the magic-link email, `{{code}}` for the OTP email) which is substituted at send time. When omitted, the built-in default template is used."
      },
      "AccountCustomPrompt": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "enum": [
              "page",
              "content",
              "selection"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "source",
          "prompt",
          "name"
        ],
        "additionalProperties": false
      },
      "AccountDomainThemes": {
        "type": "object",
        "properties": {
          "destinations": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Publish destination (hosting) key → theme key"
          },
          "patterns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThemeDomainRule"
            },
            "description": "Extra rules, e.g. for embeds, which run on the customer's site"
          }
        },
        "additionalProperties": false,
        "description": "Account-wide domain themes, edited by account admins and used by every project of the account that enables domain themes. Destinations are matched on the domain they serve."
      }
    }
  },
  "paths": {
    "/": {
      "get": {
        "operationId": "root",
        "summary": "Get API version",
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "api": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/hostings": {
      "get": {
        "operationId": "get-account-hostings",
        "summary": "Get the hostings of an account and the pages published to them",
        "tags": [
          "hosting"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "read:hosting"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "key",
                          "type",
                          "domain",
                          "pages"
                        ],
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "Unique key for the hosting"
                          },
                          "type": {
                            "type": "string",
                            "description": "Hosting type"
                          },
                          "domain": {
                            "type": "string",
                            "description": "Domain of the hosting"
                          },
                          "created": {
                            "type": "number"
                          },
                          "statusCode": {
                            "type": "number"
                          },
                          "statusMessage": {
                            "type": "string"
                          },
                          "hostnameStatus": {
                            "type": "string"
                          },
                          "kopla": {
                            "type": "boolean",
                            "description": "Kopla serves the paths on this domain that have no Vev page"
                          },
                          "pages": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "key",
                                "dir",
                                "url"
                              ],
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "description": "Unique key for the publish entry"
                                },
                                "dir": {
                                  "type": "string",
                                  "description": "Path on the hosting"
                                },
                                "url": {
                                  "type": "string",
                                  "description": "Published URL"
                                },
                                "projectKey": {
                                  "type": "string",
                                  "description": "Key of the published project"
                                },
                                "updated": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create-hosting",
        "summary": "Add a custom domain to an account",
        "tags": [
          "hosting"
        ],
        "description": "Adds a hosting for your own domain. Add the returned DNS record at your DNS provider, then call `POST /hostings/{hostingKey}/connect`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "domain"
                ],
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "The domain to publish on, without `https://` or a path. Use a subdomain such as `www.example.com`: most DNS providers do not allow a CNAME record on `example.com` itself.",
                    "example": "campaign.example.com"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:hosting"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "hostingKey",
                        "domain",
                        "status",
                        "message",
                        "dnsRecords"
                      ],
                      "properties": {
                        "hostingKey": {
                          "type": "string",
                          "description": "Unique key for the hosting"
                        },
                        "domain": {
                          "type": "string",
                          "description": "The custom domain, for example `campaign.example.com`"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "waiting-for-dns",
                            "connecting",
                            "active",
                            "failed"
                          ],
                          "description": "`waiting-for-dns`: add the DNS record, then call connect. `connecting`: Vev checks the domain and issues the certificate. `active`: the domain serves published projects. `failed`: fix the DNS record, then call connect again."
                        },
                        "message": {
                          "type": "string",
                          "description": "What to do next, in words"
                        },
                        "dnsRecords": {
                          "type": "array",
                          "description": "The DNS records to add at your DNS provider",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "name",
                              "value"
                            ],
                            "properties": {
                              "type": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "created": {
                          "type": "number",
                          "description": "When the hosting was added (ms since epoch)"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/members": {
      "get": {
        "operationId": "get-account-members",
        "summary": "Get the members of an account and its teams",
        "tags": [
          "account"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "read:members"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "account",
                        "members",
                        "teams"
                      ],
                      "properties": {
                        "account": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "key",
                            "name"
                          ],
                          "properties": {
                            "key": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "members": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "uid",
                              "email",
                              "role",
                              "pending",
                              "teams"
                            ],
                            "properties": {
                              "uid": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              },
                              "firstName": {
                                "type": "string"
                              },
                              "lastName": {
                                "type": "string"
                              },
                              "role": {
                                "type": "string",
                                "description": "owner, admin, designer, developer or content; \"inherit\" or \"custom\" for a role with no fixed meaning"
                              },
                              "pending": {
                                "type": "boolean",
                                "description": "Invited to the account and has not signed in yet"
                              },
                              "teams": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Keys of the teams this member is on"
                              }
                            }
                          }
                        },
                        "teams": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "name"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/hostings/{hostingKey}/kopla": {
      "put": {
        "operationId": "set-hosting-kopla",
        "summary": "Turn Kopla on or off for a hosting",
        "tags": [
          "hosting"
        ],
        "description": "With Kopla on, every path on the domain that has no Vev page is served by Kopla, which publishes to the same domain. Pages published from Vev keep their addresses.\n\nNeeds your own domain on Vev hosting. The change applies without a publish, usually within a minute.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "enabled"
                ],
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "hostingKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:hosting"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "hostingKey",
                        "domain",
                        "enabled"
                      ],
                      "properties": {
                        "hostingKey": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/ai/tokens/{accountKey}/usage": {
      "get": {
        "operationId": "getUsedTokens",
        "summary": "Get tokens used by the account",
        "tags": [
          "ai"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "projectKey",
            "required": false,
            "description": "The project the work belongs to. Include it so the team cap is checked too — without it only the account and per-user caps are."
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "monthlyAllocationUsd": {
                          "type": "number"
                        },
                        "usedThisMonthUsd": {
                          "type": "number"
                        },
                        "monthlyRemainingUsd": {
                          "type": "number"
                        },
                        "creditRemainingUsd": {
                          "type": "number"
                        },
                        "availableUsd": {
                          "type": "number"
                        },
                        "dailyLimitUsd": {
                          "type": "number"
                        },
                        "usedTodayUsd": {
                          "type": "number"
                        },
                        "dailyRemainingUsd": {
                          "type": [
                            "null",
                            "number"
                          ]
                        },
                        "dailyLimitReached": {
                          "type": "boolean"
                        },
                        "hasTokens": {
                          "type": "boolean"
                        },
                        "blockedBy": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "enum": [
                            "account",
                            "user",
                            "team",
                            null
                          ],
                          "description": "Which limit is exhausted, or null when work is allowed"
                        },
                        "allowed": {
                          "type": "boolean",
                          "description": "True when the account balance AND every nested cap still permit work. Pre-checks should read this, not hasTokens, which is account-only."
                        },
                        "scopes": {
                          "type": "array",
                          "description": "One entry per capped scope. Uncapped scopes are omitted.",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "user",
                                  "team"
                                ]
                              },
                              "key": {
                                "type": "string"
                              },
                              "monthlyLimitUsd": {
                                "type": "number"
                              },
                              "usedThisMonthUsd": {
                                "type": "number"
                              },
                              "monthlyRemainingUsd": {
                                "type": [
                                  "null",
                                  "number"
                                ]
                              },
                              "dailyLimitUsd": {
                                "type": "number"
                              },
                              "usedTodayUsd": {
                                "type": "number"
                              },
                              "dailyRemainingUsd": {
                                "type": [
                                  "null",
                                  "number"
                                ]
                              },
                              "monthlyLimitReached": {
                                "type": "boolean"
                              },
                              "dailyLimitReached": {
                                "type": "boolean"
                              },
                              "withinLimit": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "scope",
                              "key",
                              "monthlyLimitUsd",
                              "usedThisMonthUsd",
                              "monthlyRemainingUsd",
                              "dailyLimitUsd",
                              "usedTodayUsd",
                              "dailyRemainingUsd",
                              "monthlyLimitReached",
                              "dailyLimitReached",
                              "withinLimit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "monthlyAllocationUsd",
                        "usedThisMonthUsd",
                        "monthlyRemainingUsd",
                        "creditRemainingUsd",
                        "availableUsd",
                        "dailyLimitUsd",
                        "usedTodayUsd",
                        "dailyRemainingUsd",
                        "dailyLimitReached",
                        "hasTokens",
                        "blockedBy",
                        "allowed",
                        "scopes"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/ai/tokens/{accountKey}/log": {
      "get": {
        "operationId": "getUsageForInterval",
        "summary": "Get AI usage logs for an account within a time interval",
        "tags": [
          "ai"
        ],
        "parameters": [
          {
            "schema": {
              "type": "number"
            },
            "in": "query",
            "name": "start",
            "required": true,
            "description": "Unix timestamp"
          },
          {
            "schema": {
              "type": "number"
            },
            "in": "query",
            "name": "end",
            "required": true,
            "description": "Unix timestamp"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "text",
                              "image",
                              "page",
                              "component"
                            ]
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "generate-image",
                              "generate-image-prompt",
                              "image-suggestion",
                              "generate-custom-prompts",
                              "generate-text",
                              "shorten-text",
                              "translate-page",
                              "social-carousel",
                              "create-page",
                              "library-page",
                              "create-section",
                              "import-section",
                              "prime-cache",
                              "chat",
                              "analyze-section",
                              "generate-component",
                              "generate-shape",
                              "image-description",
                              "classify-image-label",
                              "tracking-chat",
                              "html-bundle-chat",
                              "suggest-component-events"
                            ]
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "openai",
                              "googlegemini",
                              "anthropic",
                              "bfl"
                            ]
                          },
                          "model": {
                            "type": "string",
                            "enum": [
                              "gpt-4o-mini",
                              "gpt-5.2",
                              "gpt-5.6-sol",
                              "gpt-5.6-terra",
                              "gpt-5.6-luna",
                              "gpt-6-astra",
                              "gpt-6-sol",
                              "gpt-6-luna",
                              "gpt-6.1-sol",
                              "gpt-6.1-terra",
                              "gemini-4-argon",
                              "gemini-2.5-flash-lite",
                              "gemini-2.5-flash",
                              "gemini-3.5-flash",
                              "gemini-3.5-flash-lite",
                              "gemini-3.6-flash",
                              "gemini-3.7-flash",
                              "gemini-3.8-flash",
                              "gemini-2.5-pro",
                              "gemini-2.5-flash-image",
                              "gemini-3-pro-image-preview",
                              "gemini-3.1-flash-image-preview",
                              "gemini-3.1-flash-lite-image",
                              "claude-haiku-4-5",
                              "claude-sonnet-4-6",
                              "claude-opus-4-7",
                              "claude-opus-4-8",
                              "claude-sonnet-5",
                              "claude-opus-5",
                              "claude-fable-5",
                              "claude-opus-5-5",
                              "claude-sonnet-5-5",
                              "claude-haiku-5-5",
                              "flux-2-klein-9b",
                              "flux-2-pro"
                            ]
                          },
                          "totalTokenCount": {
                            "type": "number"
                          },
                          "promptTokenCount": {
                            "type": "number"
                          },
                          "candidatesTokenCount": {
                            "type": "number"
                          },
                          "billedUsd": {
                            "type": "number",
                            "description": "Billed amount in USD (incl. markup)"
                          },
                          "costUsd": {
                            "type": "number",
                            "description": "Raw provider cost in USD (pre-markup)"
                          },
                          "sessionId": {
                            "type": "string",
                            "description": "Groups related calls (e.g. all steps of one page-AI run)"
                          },
                          "timestamp": {
                            "type": "number"
                          },
                          "triggeredBy": {
                            "type": "string"
                          },
                          "projectKey": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "action",
                          "provider",
                          "model",
                          "totalTokenCount",
                          "promptTokenCount",
                          "candidatesTokenCount",
                          "billedUsd",
                          "timestamp",
                          "triggeredBy"
                        ]
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects": {
      "get": {
        "operationId": "list",
        "summary": "Get a list of projects",
        "tags": [
          "project"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "accountKey",
            "required": false
          },
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "projectPlan",
            "required": false,
            "description": "Will return projects with project plan"
          },
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "published",
            "required": false,
            "description": "Will return published projects"
          },
          {
            "schema": {
              "type": "number"
            },
            "in": "query",
            "name": "createdAfter",
            "required": false,
            "description": "Only include projects created after this Unix timestamp"
          },
          {
            "schema": {
              "type": "number"
            },
            "in": "query",
            "name": "updatedAfter",
            "required": false,
            "description": "Only include projects updated after this Unix timestamp"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "workspace",
            "required": false,
            "description": "Will return projects in this workspace"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "createdBy",
            "required": false,
            "description": "Return projects created by this user id or email"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "externalId",
            "required": false,
            "description": "Return projects created with this externalId"
          }
        ],
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FSProject"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create",
        "summary": "Create a new project",
        "tags": [
          "project"
        ],
        "description": "Creates an empty project. Send `library` to build it from a library in one call: the project gets the library's breakpoints and variables, `pages` of library sections with your content, your `variables` values, and with `publish` a publish to your Vev staging domain. Section and field names come from `GET /libraries/{libraryKey}/sections`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Project title",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "accountKey": {
                    "type": "string",
                    "description": "Account key to create the project under (optional, defaults to user account)"
                  },
                  "workspace": {
                    "type": "string",
                    "description": "Folder key to create the project in (optional). The folder must belong to the account."
                  },
                  "externalId": {
                    "type": "string",
                    "description": "Your own id for the project, e.g. an order id (optional). Returned on the project.",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "preset": {
                    "type": "string",
                    "enum": [
                      "desktop",
                      "mobile"
                    ],
                    "description": "Breakpoint preset for the project. \"desktop\" creates a desktop-first project, \"mobile\" creates a mobile-first project. Defaults to \"desktop\" if not specified. With `library`, the default is the breakpoints of the library."
                  },
                  "library": {
                    "type": "string",
                    "description": "Key of the library to build the project from"
                  },
                  "pages": {
                    "type": "array",
                    "minItems": 1,
                    "description": "Pages to create, in order, at most 20. The first is the home page. Needs `library`.",
                    "items": {
                      "type": "object",
                      "required": [
                        "sections"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "title": {
                          "type": "string",
                          "maxLength": 100,
                          "description": "Page title"
                        },
                        "sections": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 50,
                          "description": "Library sections of the page, top to bottom, with your content",
                          "items": {
                            "type": "object",
                            "required": [
                              "section"
                            ],
                            "additionalProperties": false,
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Your own key for the section, unique on the page. Links the section for later updates."
                              },
                              "section": {
                                "type": "string",
                                "description": "Section name in the library"
                              },
                              "page": {
                                "type": "string",
                                "description": "Library page of the section, when the name is on more than one library page"
                              },
                              "fields": {
                                "type": "object",
                                "description": "Field name → value: plain text, or a public https image URL",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              "lists": {
                                "type": "object",
                                "description": "List name → items. Each item is field name → value.",
                                "additionalProperties": {
                                  "type": "array",
                                  "maxItems": 100,
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "variables": {
                    "type": "object",
                    "description": "Values for the library's variables: name → value, as in `PATCH /projects/{projectKey}/variables`. Needs `library`.",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    }
                  },
                  "publish": {
                    "type": "boolean",
                    "description": "Publish the project to your Vev staging domain when it is ready. Needs the `publish:project` scope."
                  }
                },
                "required": [
                  "title"
                ],
                "additionalProperties": false
              },
              "example": {
                "title": "Summer campaign",
                "library": "[libraryKey]",
                "variables": {
                  "Brand color": "#e30613"
                },
                "pages": [
                  {
                    "title": "Home",
                    "sections": [
                      {
                        "section": "Hero",
                        "fields": {
                          "Headline": "Summer is here",
                          "background": "https://images.example.com/beach.jpg"
                        }
                      }
                    ]
                  }
                ],
                "publish": true
              }
            }
          }
        },
        "security": [
          {
            "apiKey": [
              "create:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "projectKey": {
                          "type": "string"
                        },
                        "editorUrl": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "created": {
                          "type": "number"
                        },
                        "index": {
                          "type": "string"
                        },
                        "externalId": {
                          "type": "string"
                        },
                        "pages": {
                          "type": "array",
                          "description": "The pages created from `pages`",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "pageKey",
                              "title",
                              "editorUrl"
                            ],
                            "properties": {
                              "pageKey": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "editorUrl": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "url": {
                          "type": "string",
                          "description": "Address of the project on your staging domain, with `publish`. The first publish takes about a minute."
                        }
                      },
                      "required": [
                        "projectKey",
                        "editorUrl",
                        "title",
                        "created",
                        "index"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/report": {
      "post": {
        "operationId": "get-report",
        "summary": "Get a report of the projects that match all given filters",
        "tags": [
          "project"
        ],
        "description": "Needs at least one of `account`, `team`, `folder` or `hosting`. Deleted projects are never included.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "filters"
                ],
                "properties": {
                  "filters": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "account": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Projects in this account"
                      },
                      "team": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Projects in this team"
                      },
                      "folder": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Projects in this folder or in one of its subfolders"
                      },
                      "hosting": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Projects with a live destination on this hosting"
                      },
                      "published": {
                        "type": "boolean",
                        "description": "Projects with at least one live destination (or none)"
                      },
                      "projectPlan": {
                        "type": "boolean",
                        "description": "Projects that have a project plan (or not)"
                      },
                      "library": {
                        "type": "boolean",
                        "description": "Projects that are libraries (or not)"
                      },
                      "usesLibrary": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Projects that have imported content from this library (project-library key). The editor never clears this, so it means \"has used\", not \"uses right now\""
                      },
                      "passwordProtected": {
                        "type": "boolean",
                        "description": "true: the project has live destinations and every one has a password. false: at least one live destination has no password, or the project has no live destination"
                      },
                      "createdBy": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Projects created by this user id or email"
                      },
                      "createdAfter": {
                        "type": "number",
                        "description": "Projects created at or after this time (ms since epoch)"
                      },
                      "createdBefore": {
                        "type": "number",
                        "description": "Projects created before this time (ms since epoch)"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "columns",
                        "rows",
                        "count"
                      ],
                      "properties": {
                        "columns": {
                          "type": "array",
                          "description": "The row keys in CSV order, with a header label for each",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "label"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "title",
                              "published",
                              "projectPlan",
                              "library",
                              "passwordProtected",
                              "editorUrl"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "account": {
                                "type": "string",
                                "description": "Account name"
                              },
                              "team": {
                                "type": "string",
                                "description": "Team name"
                              },
                              "folder": {
                                "type": "string",
                                "description": "Folder path, root first"
                              },
                              "createdBy": {
                                "type": "string",
                                "description": "Creator email"
                              },
                              "created": {
                                "type": "string",
                                "description": "ISO 8601"
                              },
                              "updated": {
                                "type": "string",
                                "description": "ISO 8601"
                              },
                              "published": {
                                "type": "boolean"
                              },
                              "projectPlan": {
                                "type": "boolean"
                              },
                              "library": {
                                "type": "boolean"
                              },
                              "passwordProtected": {
                                "type": "boolean"
                              },
                              "destinations": {
                                "type": "string",
                                "description": "Live destination URLs, separated by \"; \""
                              },
                              "editorUrl": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "count": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/report/options": {
      "get": {
        "operationId": "get-report-options",
        "summary": "Get the teams, folders, hostings, libraries and users of an account, for report filters",
        "tags": [
          "project"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "teams",
                        "folders",
                        "hostings",
                        "libraries",
                        "users"
                      ],
                      "properties": {
                        "teams": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "name"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "folders": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "name",
                              "path"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "path": {
                                "type": "string",
                                "description": "Folder path, root first"
                              },
                              "teamKey": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "hostings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "domain"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "domain": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "libraries": {
                          "type": "array",
                          "description": "Values for the `usesLibrary` filter",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "title",
                              "isPublic"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "isPublic": {
                                "type": "boolean"
                              }
                            }
                          }
                        },
                        "users": {
                          "type": "array",
                          "description": "Account and team members, removed members included. Values for the `createdBy` filter",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "name",
                              "email"
                            ],
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "User id"
                              },
                              "name": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}": {
      "get": {
        "operationId": "get-project",
        "summary": "Get a project",
        "tags": [
          "project"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/FSProject"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/destinations": {
      "get": {
        "operationId": "get-destinations",
        "summary": "Get project publish destinations",
        "tags": [
          "publish"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "publish:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "Unique key for the project destination"
                          },
                          "url": {
                            "type": "string",
                            "description": "URL of the project destination"
                          },
                          "type": {
                            "type": "string",
                            "description": "Hosting type"
                          }
                        },
                        "required": [
                          "key",
                          "url",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/destinations/{destinationKey}": {
      "get": {
        "operationId": "get-destination",
        "summary": "Get a project publish destination",
        "tags": [
          "publish"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "publish:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "Unique key for the project destination"
                        },
                        "url": {
                          "type": "string",
                          "description": "URL of the project destination"
                        },
                        "type": {
                          "type": "string",
                          "description": "Hosting type"
                        }
                      },
                      "required": [
                        "key",
                        "url",
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/publish": {
      "post": {
        "operationId": "publish",
        "summary": "Publish a project",
        "tags": [
          "publish"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "destinationKeys",
            "required": false,
            "description": "Comma-separated list of destinations"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "publish:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "startedPublishAt": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "key",
                          "startedPublishAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/destinations/{destinationKey}/rollback": {
      "post": {
        "operationId": "rollback-destination",
        "summary": "Rollback a destination",
        "tags": [
          "publish"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "version",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "publish:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "startedRollbackAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "key",
                        "startedRollbackAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/destinations/{destinationKey}/unpublish": {
      "post": {
        "operationId": "unpublish-destination",
        "summary": "Unpublish a destination",
        "tags": [
          "publish"
        ],
        "description": "Takes the project offline on this destination. Publish the project again to put it back online.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "publish:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "Key of the destination"
                        },
                        "startedUnpublishAt": {
                          "type": "number",
                          "description": "When the unpublish started, in milliseconds since 1970"
                        }
                      },
                      "required": [
                        "key",
                        "startedUnpublishAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/destinations/{destinationKey}/version": {
      "get": {
        "operationId": "get-destination-version",
        "summary": "Get destination current version",
        "tags": [
          "publish"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true,
            "description": "Destination key"
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/PagePrerender"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/destinations/{destinationKey}/history": {
      "get": {
        "operationId": "get-publish-history",
        "summary": "Get destination publish history",
        "tags": [
          "publish"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "publish:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/HostingPublishEvent"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/pages": {
      "post": {
        "operationId": "create-page",
        "summary": "Create a new page in a project",
        "tags": [
          "page"
        ],
        "description": "Creates a page, or adds to an existing one with `pageKey`. Send `library` and `sections` to fill library sections with your own texts and images: the sections and field names come from `GET /libraries/{libraryKey}/sections`. Or send `ai` to let AI pick and fill the sections.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Page title (defaults to \"Untitled\")",
                    "maxLength": 100
                  },
                  "pageKey": {
                    "type": "string",
                    "description": "Existing page key to generate AI content on. If omitted, a new page is created."
                  },
                  "library": {
                    "type": "string",
                    "description": "Key of the library that has the sections. Needed with `sections`."
                  },
                  "sections": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 50,
                    "description": "Library sections to add to the page, top to bottom, with your content. Cannot be combined with `ai`.",
                    "items": {
                      "type": "object",
                      "required": [
                        "section"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Your own key for the section, unique on the page, for example \"hero\". Linked sections can be updated later by this key, and the editor locks the content you set."
                        },
                        "section": {
                          "type": "string",
                          "description": "Section name in the library"
                        },
                        "page": {
                          "type": "string",
                          "description": "Library page of the section. Only needed when the section name is on more than one library page."
                        },
                        "fields": {
                          "type": "object",
                          "description": "Field name → value. Text fields take plain text: a blank line starts a new paragraph. Image and background fields take a public https image URL. Fields you leave out keep the library content.",
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "lists": {
                          "type": "object",
                          "description": "List name → items. Each item is an object of field name → value, like `fields`.",
                          "additionalProperties": {
                            "type": "array",
                            "maxItems": 100,
                            "items": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "ai": {
                    "type": "object",
                    "description": "AI generation parameters (optional)",
                    "properties": {
                      "libraries": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Library keys to fetch sections from"
                      },
                      "prompt": {
                        "type": "string",
                        "description": "AI prompt for generating page content"
                      },
                      "text": {
                        "type": "string",
                        "description": "Additional text context for AI generation (optional)"
                      },
                      "images": {
                        "type": "array",
                        "description": "Images to use in AI generation (optional)",
                        "items": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string"
                            },
                            "description": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "url",
                            "description"
                          ]
                        }
                      },
                      "useOnlyProvidedAssets": {
                        "type": "boolean",
                        "description": "Use only provided assets for AI generation (optional)"
                      },
                      "imageStyle": {
                        "type": "string",
                        "description": "Style to use for AI generation (optional)"
                      }
                    },
                    "required": [
                      "libraries",
                      "prompt"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "title": "Summer campaign",
                "library": "[libraryKey]",
                "sections": [
                  {
                    "section": "Hero",
                    "fields": {
                      "Headline": "Summer is here",
                      "Button text": "Book now",
                      "background": "https://images.example.com/beach.jpg"
                    }
                  },
                  {
                    "section": "Destinations",
                    "fields": {
                      "Title": "Where to next?"
                    },
                    "lists": {
                      "Cards": [
                        {
                          "City": "Lisbon",
                          "Photo": "https://images.example.com/lisbon.jpg"
                        },
                        {
                          "City": "Oslo",
                          "Photo": "https://images.example.com/oslo.jpg"
                        }
                      ]
                    }
                  }
                ]
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "create:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "pageKey": {
                          "type": "string"
                        },
                        "projectKey": {
                          "type": "string"
                        },
                        "editorUrl": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "pageKey",
                        "projectKey",
                        "editorUrl"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-pages",
        "summary": "Get all project pages",
        "tags": [
          "page"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/FSProjectPage"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/pages/{pageKey}/sections": {
      "patch": {
        "operationId": "update-page-sections",
        "summary": "Update linked sections on a page",
        "tags": [
          "page"
        ],
        "description": "Change the content of sections you created with an `id`. Fields you leave out keep their content. A list you send replaces the list: items are updated, added or removed to match. Sections a user detached or deleted in the editor are left alone and reported.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "sections"
                ],
                "additionalProperties": false,
                "properties": {
                  "sections": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "The id you gave the section"
                        },
                        "fields": {
                          "type": "object",
                          "description": "Field name → value: plain text, or a public https image URL",
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "lists": {
                          "type": "object",
                          "description": "List name → all items of the list. Each item is field name → value.",
                          "additionalProperties": {
                            "type": "array",
                            "maxItems": 100,
                            "items": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "publish": {
                    "type": "boolean",
                    "description": "Publish the project after the update. Needs the `publish:project` scope."
                  }
                }
              },
              "example": {
                "sections": [
                  {
                    "id": "hero",
                    "fields": {
                      "Headline": "Now 30% off"
                    }
                  },
                  {
                    "id": "cities",
                    "lists": {
                      "Cards": [
                        {
                          "City": "Lisbon"
                        },
                        {
                          "City": "Rome"
                        }
                      ]
                    }
                  }
                ],
                "publish": true
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "pageKey",
            "required": true,
            "description": "Page key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "create:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "sections",
                        "publishing"
                      ],
                      "properties": {
                        "sections": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "result"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "result": {
                                "type": "string",
                                "enum": [
                                  "updated",
                                  "detached",
                                  "not_found"
                                ],
                                "description": "`updated`: the content was changed. `detached`: a user detached the section in the editor, so the API leaves it alone. `not_found`: no section has this id on the page, for example because a user deleted it."
                              }
                            }
                          }
                        },
                        "publishing": {
                          "type": "boolean",
                          "description": "True when a publish was started. It takes about a minute."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/pages/{pageKey}": {
      "get": {
        "operationId": "get-page",
        "summary": "Get a page",
        "tags": [
          "page"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "pageKey",
            "required": true,
            "description": "Page key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/FSProjectPage"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/pages/{pageKey}/version": {
      "get": {
        "operationId": "get-page-version",
        "summary": "Get current page version",
        "tags": [
          "page"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "pageKey",
            "required": true,
            "description": "Page key"
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/PagePrerender"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/template-preview": {
      "get": {
        "operationId": "get-template-preview",
        "summary": "Get the preview HTML of a template",
        "tags": [
          "project"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key of the template"
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "html": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "html"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/guestaccess/{invitationKey}/": {
      "get": {
        "operationId": "getGuestAccess",
        "summary": "Get guest access",
        "tags": [
          "project"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "invitationKey",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "userEmail": {
                          "type": "string"
                        },
                        "isSeen": {
                          "type": "boolean"
                        },
                        "accountName": {
                          "type": "string"
                        },
                        "invitedByName": {
                          "type": "string"
                        },
                        "projectData": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "title": {
                              "type": "string"
                            },
                            "coverImage": {
                              "type": "string"
                            },
                            "accountName": {
                              "type": "string"
                            },
                            "invitedByName": {
                              "type": "string"
                            },
                            "projectData": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/variables": {
      "get": {
        "operationId": "list-project-variables",
        "summary": "List the variables of a project",
        "tags": [
          "variables"
        ],
        "description": "Project variables are values that the whole project uses, such as brand colors, fonts, font sizes and texts. Set them with `PATCH /projects/{projectKey}/variables`.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "variables",
                        "warnings"
                      ],
                      "properties": {
                        "variables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "name",
                              "type",
                              "value"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "color",
                                  "number",
                                  "font",
                                  "text",
                                  "image"
                                ]
                              },
                              "value": {
                                "type": "string",
                                "description": "Text, CSS color, font family, number with its unit (`18px`) or image URL"
                              }
                            }
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Variables you cannot set yet, and how to fix them in the editor"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "set-project-variables",
        "summary": "Set the values of project variables",
        "tags": [
          "variables"
        ],
        "description": "Send variable name → new value. Variables you leave out keep their value. All values are checked before any is saved. Publish the project to make the change live.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "minProperties": 1,
                "maxProperties": 100,
                "description": "Variable name → value. Text: any text. Color: a CSS color or gradient. Font: a font family name. Number: a number with an optional unit, such as `18px`. Image: a public https image URL.",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "example": {
                "Brand color": "#e30613",
                "Campaign name": "Summer sale",
                "Heading font": "DM Sans",
                "Font size": "18px",
                "Logo": "https://images.example.com/logo.png"
              }
            }
          },
          "description": "Variable name → value. Text: any text. Color: a CSS color or gradient. Font: a font family name. Number: a number with an optional unit, such as `18px`. Image: a public https image URL."
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true,
            "description": "Project key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "create:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "variables",
                        "warnings"
                      ],
                      "properties": {
                        "variables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "name",
                              "type",
                              "value"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "color",
                                  "number",
                                  "font",
                                  "text",
                                  "image"
                                ]
                              },
                              "value": {
                                "type": "string",
                                "description": "Text, CSS color, font family, number with its unit (`18px`) or image URL"
                              }
                            }
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Variables you cannot set yet, and how to fix them in the editor"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/libraries/{libraryKey}/sections": {
      "get": {
        "operationId": "list-library-sections",
        "summary": "List the sections of a library and the content you can fill in",
        "tags": [
          "library"
        ],
        "description": "Each section lists its fields (texts, images and background images) and its lists (repeated items such as cards or slides). A field is a layer that the designer named in the library. Use the section and field names to create pages with your own content.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "libraryKey",
            "required": true,
            "description": "Library key"
          }
        ],
        "security": [
          {
            "apiKey": [
              "create:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "sections",
                        "warnings"
                      ],
                      "properties": {
                        "sections": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "name",
                              "placement",
                              "fields",
                              "lists",
                              "warnings"
                            ],
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Section name. Use it to add the section to a page. Unique on its library page."
                              },
                              "page": {
                                "type": "string",
                                "description": "The library page the section is on. Not set for sections that every page shares, such as a pinned header."
                              },
                              "description": {
                                "type": "string"
                              },
                              "placement": {
                                "type": "string",
                                "enum": [
                                  "header",
                                  "content",
                                  "footer"
                                ],
                                "description": "Where the section sits on a page"
                              },
                              "fields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "name",
                                    "type"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "description": "Field name, as named in the library"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "text",
                                        "image",
                                        "background"
                                      ],
                                      "description": "`text`: plain text. `image`: an image URL. `background`: an image URL for a background image."
                                    },
                                    "example": {
                                      "type": "string",
                                      "description": "The value in the library: the text, or the image URL"
                                    }
                                  }
                                }
                              },
                              "lists": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "name",
                                    "fields"
                                  ],
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "description": "List name, as named in the library"
                                    },
                                    "fields": {
                                      "type": "array",
                                      "description": "Fields of one item. Every item has the same fields.",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "name",
                                          "type"
                                        ],
                                        "properties": {
                                          "name": {
                                            "type": "string"
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "text",
                                              "image",
                                              "background"
                                            ]
                                          },
                                          "example": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Layers you cannot fill yet, and how to fix them in the library"
                              }
                            }
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Sections you cannot use yet, and how to fix them in the library"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/folder": {
      "get": {
        "operationId": "listFolders",
        "summary": "Get all folders in a team",
        "tags": [
          "folder"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "in": "query",
            "name": "teamKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "list:project"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "path": {
                            "type": "string",
                            "description": "Folder names from the top, e.g. \"Clients / Acme\""
                          },
                          "parentFolderKey": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "key",
                          "name",
                          "path"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createFolder",
        "summary": "Create a folder in a team",
        "tags": [
          "folder"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Folder name",
                    "minLength": 2,
                    "maxLength": 100
                  },
                  "teamKey": {
                    "type": "string",
                    "description": "Team to create the folder in",
                    "minLength": 1
                  },
                  "parentFolderKey": {
                    "type": "string",
                    "description": "Folder to nest the new folder in (optional). Must be in the same team.",
                    "minLength": 1
                  }
                },
                "required": [
                  "name",
                  "teamKey"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "apiKey": [
              "create:folder"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "teamKey": {
                          "type": "string"
                        },
                        "parentFolderKey": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "name",
                        "teamKey"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/folder/{folderKey}": {
      "get": {
        "operationId": "getFolder",
        "summary": "Get a folder",
        "tags": [
          "folder"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "folderKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/IWorkspace"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/folder/{folderKey}/projects": {
      "get": {
        "operationId": "getFolderProjects",
        "summary": "Get all projects in a folder",
        "tags": [
          "folder"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "folderKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/APIWorkspaceProjects"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/infrastructure/api-key/test-scope-check": {
      "get": {
        "operationId": "api-key-test-scope-check",
        "summary": "Simple check to see if scopes are working as intended",
        "tags": [
          "infrastructure"
        ],
        "security": [
          {
            "apiKey": [
              "apikey:test"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "string",
                      "description": "Scope check result",
                      "example": "scope test passed"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/user/accounts": {
      "get": {
        "operationId": "get-user-accounts",
        "summary": "Responds with the current users available accounts",
        "tags": [
          "user"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Account name"
                          },
                          "key": {
                            "type": "string",
                            "description": "Account key"
                          }
                        },
                        "required": [
                          "name",
                          "key"
                        ]
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/sso-configs": {
      "get": {
        "operationId": "get-sso-configs",
        "summary": "List an account's SAML SSO configs",
        "tags": [
          "sso"
        ],
        "description": "A config is a SAML identity provider that visitors log in with before they see published pages. Turn it on for a hosting with `PUT /hostings/{hostingKey}/sso`.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "key",
                          "name",
                          "spEntityId",
                          "acsUrl",
                          "idpEntityId",
                          "ssoURL",
                          "x509Certificates"
                        ],
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "Unique key for the SSO config"
                          },
                          "name": {
                            "type": "string"
                          },
                          "spEntityId": {
                            "type": "string",
                            "description": "Service provider entity ID (audience) to register in the identity provider"
                          },
                          "acsUrl": {
                            "type": "string",
                            "description": "Assertion consumer service (reply) URL to register in the identity provider"
                          },
                          "idpEntityId": {
                            "type": "string"
                          },
                          "ssoURL": {
                            "type": "string"
                          },
                          "x509Certificates": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "description": "Total number of items available for pagination purposes."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "create-sso-config",
        "summary": "Create a SAML SSO config for an account",
        "tags": [
          "sso"
        ],
        "description": "Adds a SAML identity provider (IdP) to the account. Send the IdP settings in one of three ways:\n\n- `metadataURL`: a `https://` URL to the IdP metadata XML. Vev reads it once, when you create the config.\n- `metadataXML`: the IdP metadata XML as a string.\n- `idpEntityId`, `ssoURL` and `x509Certificates` together: the values from the IdP, without metadata.\n\nRegister the returned `spEntityId` and `acsUrl` in the IdP. Then turn the config on for a hosting with `PUT /hostings/{hostingKey}/sso`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Name of the config, shown in the Design Editor"
                  },
                  "entityId": {
                    "type": "string",
                    "description": "Service provider entity ID. Defaults to `saml.x<accountKey>`. Leave out unless the IdP requires a specific value."
                  },
                  "metadataURL": {
                    "type": "string",
                    "pattern": "^https://",
                    "description": "URL to the IdP metadata XML"
                  },
                  "metadataXML": {
                    "type": "string",
                    "description": "IdP metadata XML (an `EntityDescriptor` element)"
                  },
                  "idpEntityId": {
                    "type": "string",
                    "description": "IdP entity ID (issuer). Only without metadata."
                  },
                  "ssoURL": {
                    "type": "string",
                    "pattern": "^https://",
                    "description": "IdP single sign-on URL that visitors go to for login. Only without metadata."
                  },
                  "x509Certificates": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "string"
                    },
                    "description": "IdP signing certificates in PEM format. Only without metadata. Send two during a certificate rotation."
                  }
                }
              },
              "examples": {
                "example1": {
                  "value": {
                    "name": "Company login",
                    "metadataURL": "https://idp.example.com/saml/metadata.xml"
                  }
                },
                "example2": {
                  "value": {
                    "name": "Company login",
                    "metadataXML": "<EntityDescriptor xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\" entityID=\"https://idp.example.com\">...</EntityDescriptor>"
                  }
                },
                "example3": {
                  "value": {
                    "name": "Company login",
                    "idpEntityId": "https://idp.example.com",
                    "ssoURL": "https://idp.example.com/saml/sso",
                    "x509Certificates": [
                      "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----"
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "name",
                        "spEntityId",
                        "acsUrl",
                        "idpEntityId",
                        "ssoURL",
                        "x509Certificates"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "Unique key for the SSO config"
                        },
                        "name": {
                          "type": "string"
                        },
                        "spEntityId": {
                          "type": "string",
                          "description": "Service provider entity ID (audience) to register in the identity provider"
                        },
                        "acsUrl": {
                          "type": "string",
                          "description": "Assertion consumer service (reply) URL to register in the identity provider"
                        },
                        "idpEntityId": {
                          "type": "string"
                        },
                        "ssoURL": {
                          "type": "string"
                        },
                        "x509Certificates": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/sso-configs/{configKey}": {
      "delete": {
        "operationId": "delete-sso-config",
        "summary": "Delete an account's SAML SSO config",
        "tags": [
          "sso"
        ],
        "description": "Fails with 409 while a hosting uses the config. Turn it off on those hostings first.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "configKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "deleted": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "deleted"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/hostings/{hostingKey}/sso": {
      "get": {
        "operationId": "get-hosting-sso",
        "summary": "Get which projects on a hosting require SSO login",
        "tags": [
          "sso"
        ],
        "description": "Same fields as `PUT /hostings/{hostingKey}/sso`.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "hostingKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "hostingKey",
                        "domain",
                        "ssoConfig",
                        "projects"
                      ],
                      "properties": {
                        "hostingKey": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "ssoConfig": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "SSO config key that every project on the hosting requires. `null`: only the projects in `projects` can require login."
                        },
                        "projects": {
                          "type": "object",
                          "additionalProperties": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "description": "Exceptions for single projects: project key to an SSO config key, or to `null` for a public project."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "set-hosting-sso",
        "summary": "Set which projects on a hosting require SSO login",
        "tags": [
          "sso"
        ],
        "description": "Sets which projects on the hosting require visitors to log in, and with which SSO config.\n\n- `ssoConfig`: every project on the hosting requires login with this SSO config. Use the `key` from `GET /accounts/{accountKey}/sso-configs`.\n- `projects`: exceptions for single projects, by the `projectKey` in `GET /accounts/{accountKey}/hostings`. An SSO config key: the project requires that login. `null`: the project is public.\n\nThe request replaces all SSO settings of the hosting. When no project requires login, SSO is off. The change applies without a publish.\n\nTo change one project only, use `PUT /projects/{projectKey}/destinations/{destinationKey}/sso`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "ssoConfig": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "description": "SSO config key. Every project on the hosting requires this login. Leave out if only some projects require login."
                  },
                  "projects": {
                    "type": "object",
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "minLength": 1
                    },
                    "description": "Exceptions for single projects: project key to an SSO config key, or to `null` for a public project."
                  }
                }
              },
              "examples": {
                "example1": {
                  "value": {
                    "ssoConfig": "[configKey]"
                  }
                },
                "example2": {
                  "value": {
                    "ssoConfig": "[configKey]",
                    "projects": {
                      "[publicProjectKey]": null
                    }
                  }
                },
                "example3": {
                  "value": {
                    "projects": {
                      "[projectKey1]": "[configKey]",
                      "[projectKey2]": "[configKey]"
                    }
                  }
                },
                "example4": {
                  "value": {}
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "hostingKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "hostingKey",
                        "domain",
                        "ssoConfig",
                        "projects"
                      ],
                      "properties": {
                        "hostingKey": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "ssoConfig": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "SSO config key that every project on the hosting requires. `null`: only the projects in `projects` can require login."
                        },
                        "projects": {
                          "type": "object",
                          "additionalProperties": {
                            "type": [
                              "null",
                              "string"
                            ]
                          },
                          "description": "Exceptions for single projects: project key to an SSO config key, or to `null` for a public project."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/projects/{projectKey}/destinations/{destinationKey}/sso": {
      "get": {
        "operationId": "get-destination-sso",
        "summary": "Get the SSO login of a project on a publish destination",
        "tags": [
          "sso"
        ],
        "description": "Returns the SSO config that visitors log in with to see the project on this publish destination.\n\nGet the `destinationKey` from `GET /projects/{projectKey}/destinations`.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "projectKey",
                        "destinationKey",
                        "hostingKey",
                        "domain",
                        "ssoConfig",
                        "setOn"
                      ],
                      "properties": {
                        "projectKey": {
                          "type": "string"
                        },
                        "destinationKey": {
                          "type": "string"
                        },
                        "hostingKey": {
                          "type": "string",
                          "description": "Hosting the destination publishes to"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "ssoConfig": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "Key of the SSO config that visitors log in with. `null`: the project is public."
                        },
                        "setOn": {
                          "type": "string",
                          "enum": [
                            "project",
                            "hosting"
                          ],
                          "description": "`project`: the project has its own setting. `hosting`: the project follows the setting of the hosting."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "set-destination-sso",
        "summary": "Set the SSO login of a project on a publish destination",
        "tags": [
          "sso"
        ],
        "description": "Sets the SSO config that visitors log in with to see the project on this publish destination. Use this when the hosting has more than one SSO config, or when only some projects on the hosting require login.\n\n- An SSO config key: visitors log in with this SSO config. Use the `key` from `GET /accounts/{accountKey}/sso-configs`.\n- `null`: the project is public, also when the hosting requires login for all its projects.\n\nOnly this project changes. The other projects on the hosting keep their settings. To make the project follow the setting of the hosting again, use `DELETE`.\n\nGet the `destinationKey` from `GET /projects/{projectKey}/destinations`. The change applies without a publish, in about one minute.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "ssoConfig"
                ],
                "properties": {
                  "ssoConfig": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "description": "Key of the SSO config that visitors log in with. `null`: the project is public."
                  }
                }
              },
              "examples": {
                "example1": {
                  "value": {
                    "ssoConfig": "[configKey]"
                  }
                },
                "example2": {
                  "value": {
                    "ssoConfig": null
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "projectKey",
                        "destinationKey",
                        "hostingKey",
                        "domain",
                        "ssoConfig",
                        "setOn"
                      ],
                      "properties": {
                        "projectKey": {
                          "type": "string"
                        },
                        "destinationKey": {
                          "type": "string"
                        },
                        "hostingKey": {
                          "type": "string",
                          "description": "Hosting the destination publishes to"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "ssoConfig": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "Key of the SSO config that visitors log in with. `null`: the project is public."
                        },
                        "setOn": {
                          "type": "string",
                          "enum": [
                            "project",
                            "hosting"
                          ],
                          "description": "`project`: the project has its own setting. `hosting`: the project follows the setting of the hosting."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-destination-sso",
        "summary": "Make a project follow the SSO login of its hosting",
        "tags": [
          "sso"
        ],
        "description": "Removes the setting that `PUT /projects/{projectKey}/destinations/{destinationKey}/sso` made. The project then follows the SSO setting of the hosting (`GET /hostings/{hostingKey}/sso`).\n\nThe other projects on the hosting keep their settings. The change applies without a publish, in about one minute.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "projectKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "destinationKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:sso"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "projectKey",
                        "destinationKey",
                        "hostingKey",
                        "domain",
                        "ssoConfig",
                        "setOn"
                      ],
                      "properties": {
                        "projectKey": {
                          "type": "string"
                        },
                        "destinationKey": {
                          "type": "string"
                        },
                        "hostingKey": {
                          "type": "string",
                          "description": "Hosting the destination publishes to"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "ssoConfig": {
                          "type": [
                            "null",
                            "string"
                          ],
                          "description": "Key of the SSO config that visitors log in with. `null`: the project is public."
                        },
                        "setOn": {
                          "type": "string",
                          "enum": [
                            "project",
                            "hosting"
                          ],
                          "description": "`project`: the project has its own setting. `hosting`: the project follows the setting of the hosting."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/hostings/{hostingKey}": {
      "get": {
        "operationId": "get-hosting",
        "summary": "Get a custom domain and whether it is connected",
        "tags": [
          "hosting"
        ],
        "description": "Call this after `POST /hostings/{hostingKey}/connect` until `status` is `active`. DNS changes can take up to 24 hours.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "hostingKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "read:hosting"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "hostingKey",
                        "domain",
                        "status",
                        "message",
                        "dnsRecords"
                      ],
                      "properties": {
                        "hostingKey": {
                          "type": "string",
                          "description": "Unique key for the hosting"
                        },
                        "domain": {
                          "type": "string",
                          "description": "The custom domain, for example `campaign.example.com`"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "waiting-for-dns",
                            "connecting",
                            "active",
                            "failed"
                          ],
                          "description": "`waiting-for-dns`: add the DNS record, then call connect. `connecting`: Vev checks the domain and issues the certificate. `active`: the domain serves published projects. `failed`: fix the DNS record, then call connect again."
                        },
                        "message": {
                          "type": "string",
                          "description": "What to do next, in words"
                        },
                        "dnsRecords": {
                          "type": "array",
                          "description": "The DNS records to add at your DNS provider",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "name",
                              "value"
                            ],
                            "properties": {
                              "type": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "created": {
                          "type": "number",
                          "description": "When the hosting was added (ms since epoch)"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-hosting",
        "summary": "Delete a custom domain",
        "tags": [
          "hosting"
        ],
        "description": "Takes the domain off Vev: published projects stop being served on it. Vev finishes the delete shortly after the response.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "hostingKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:hosting"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "hostingKey",
                        "domain"
                      ],
                      "properties": {
                        "hostingKey": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/hostings/{hostingKey}/connect": {
      "post": {
        "operationId": "connect-hosting",
        "summary": "Connect a custom domain after the DNS change",
        "tags": [
          "hosting"
        ],
        "description": "Call this after you add the DNS record. Vev then checks the domain and issues its certificate. Poll `GET /hostings/{hostingKey}` until `status` is `active`. Safe to call again: a connected or connecting domain is only checked.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "hostingKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:hosting"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "hostingKey",
                        "domain",
                        "status",
                        "message",
                        "dnsRecords"
                      ],
                      "properties": {
                        "hostingKey": {
                          "type": "string",
                          "description": "Unique key for the hosting"
                        },
                        "domain": {
                          "type": "string",
                          "description": "The custom domain, for example `campaign.example.com`"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "waiting-for-dns",
                            "connecting",
                            "active",
                            "failed"
                          ],
                          "description": "`waiting-for-dns`: add the DNS record, then call connect. `connecting`: Vev checks the domain and issues the certificate. `active`: the domain serves published projects. `failed`: fix the DNS record, then call connect again."
                        },
                        "message": {
                          "type": "string",
                          "description": "What to do next, in words"
                        },
                        "dnsRecords": {
                          "type": "array",
                          "description": "The DNS records to add at your DNS provider",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "name",
                              "value"
                            ],
                            "properties": {
                              "type": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "created": {
                          "type": "number",
                          "description": "When the hosting was added (ms since epoch)"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/hostings/{hostingKey}/tracking": {
      "get": {
        "operationId": "getHostingTracking",
        "summary": "Read Vev basic tracking metrics for a hosting, optionally for one project",
        "tags": [
          "tracking"
        ],
        "description": "Use `format=csv` with an `x-vev-key` carrying the `read:tracking` scope for refreshable reporting sources such as Power BI. Example: `/v2/hostings/<key>/tracking?metrics=timeseries,top_pages&days=90&format=csv`.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "project",
            "required": false,
            "description": "Narrow to one project key."
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "metrics",
            "required": false,
            "description": "Comma-separated metric names: summary, timeseries, projects, top_pages, referrers, devices, countries, page_engagement, goal_conversions, clicks, rage_clicks, dead_clicks. Defaults to summary."
          },
          {
            "schema": {
              "type": "number"
            },
            "in": "query",
            "name": "days",
            "required": false,
            "description": "Window in days, 1–90. Defaults to 7."
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "path",
            "required": false,
            "description": "Restrict to one recorded path, e.g. /pricing/."
          },
          {
            "schema": {
              "type": "number"
            },
            "in": "query",
            "name": "limit",
            "required": false,
            "description": "Row cap for breakdowns, 1–100. Defaults to 20."
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ]
            },
            "in": "query",
            "name": "format",
            "required": false,
            "description": "Response format. CSV flattens selected metrics into a table for Power BI and similar tools. Defaults to JSON."
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "hostingKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "read:tracking"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "state",
                        "hostingKey",
                        "window",
                        "asOf",
                        "cached",
                        "metrics",
                        "notes"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "not_configured",
                            "not_enabled",
                            "ok"
                          ]
                        },
                        "hostingKey": {
                          "type": "string"
                        },
                        "projectKey": {
                          "type": "string"
                        },
                        "window": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "days",
                            "from",
                            "to"
                          ],
                          "properties": {
                            "days": {
                              "type": "number"
                            },
                            "from": {
                              "type": "string"
                            },
                            "to": {
                              "type": "string"
                            }
                          }
                        },
                        "path": {
                          "type": "string"
                        },
                        "asOf": {
                          "type": "string"
                        },
                        "cached": {
                          "type": "boolean"
                        },
                        "metrics": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "rows",
                              "notes"
                            ],
                            "properties": {
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              },
                              "notes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "error": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "notes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/forms/submissions": {
      "get": {
        "operationId": "getFormSubmissions",
        "summary": "Lists an account's form submissions, newest first",
        "tags": [
          "forms"
        ],
        "description": "Use `format=csv` with an `x-vev-key` carrying the `read:forms` scope for spreadsheet exports (up to 5000 rows; payload fields become columns).",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "project",
            "required": false,
            "description": "Narrow to one project key."
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "form",
            "required": false,
            "description": "Narrow to one form name."
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "published",
                "preview"
              ]
            },
            "in": "query",
            "name": "source",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "cursor",
            "required": false,
            "description": "The last submission key of the previous page."
          },
          {
            "schema": {
              "type": "number"
            },
            "in": "query",
            "name": "limit",
            "required": false,
            "description": "Page size, 1–200. Defaults to 50."
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ]
            },
            "in": "query",
            "name": "format",
            "required": false,
            "description": "CSV flattens payload fields into columns. Defaults to JSON."
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "read:forms"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "submissions"
                      ],
                      "properties": {
                        "submissions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        },
                        "nextCursor": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteFormSubmissions",
        "summary": "Deletes form submissions by key",
        "tags": [
          "forms"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "keys"
                ],
                "properties": {
                  "keys": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 500,
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 250
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:forms"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "deleted"
                      ],
                      "properties": {
                        "deleted": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/forms/retention": {
      "put": {
        "operationId": "setFormRetention",
        "summary": "Sets the account's form submission retention window in days",
        "tags": [
          "forms"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "days"
                ],
                "properties": {
                  "days": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 730,
                    "description": "Days submissions are kept, 1–730."
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:forms"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "days",
                        "updated"
                      ],
                      "properties": {
                        "days": {
                          "type": "number"
                        },
                        "updated": {
                          "type": "number",
                          "description": "Submissions whose expiry was recomputed."
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/forms/endpoints": {
      "get": {
        "operationId": "getFormEndpoints",
        "summary": "Lists the account's self-hosted form capture endpoints",
        "tags": [
          "forms"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "read:forms"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "endpoints"
                      ],
                      "properties": {
                        "endpoints": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "projectKey",
                              "created"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "projectKey": {
                                "type": "string"
                              },
                              "created": {
                                "type": "number"
                              },
                              "revokedAt": {
                                "type": "number"
                              },
                              "lastUsedAt": {
                                "type": "number"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/accounts/{accountKey}/forms/endpoints/{endpointKey}/revoke": {
      "post": {
        "operationId": "revokeFormEndpoint",
        "summary": "Revokes a self-hosted form capture endpoint",
        "tags": [
          "forms"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "accountKey",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "endpointKey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKey": [
              "write:forms"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    },
                    "data": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "revokedAt"
                      ],
                      "properties": {
                        "revokedAt": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "enum": [
                        false
                      ]
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "A unique, machine-readable error code."
                        },
                        "message": {
                          "type": "string",
                          "description": "A human-readable description of the error."
                        },
                        "errorId": {
                          "type": "string",
                          "description": "A unique identifier for this specific error instance, useful for logging and support."
                        },
                        "aiLimit": {
                          "type": "object",
                          "description": "Only on a 402 from the AI token gate: which configured cap blocked, and the numbers behind it.",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "enum": [
                                "account",
                                "user",
                                "team"
                              ]
                            },
                            "window": {
                              "type": "string",
                              "enum": [
                                "daily",
                                "monthly"
                              ]
                            },
                            "limitUsd": {
                              "type": "number"
                            },
                            "usedUsd": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "scope",
                            "window",
                            "limitUsd",
                            "usedUsd"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.vev.design/v2/",
      "description": "Production server"
    },
    {
      "url": "https://devapi.vev.design/v2/",
      "description": "Development server"
    }
  ]
}