{
  "openapi": "3.1.0",
  "info": {
    "title": "Grofomo API",
    "version": "1.0.0",
    "summary": "Build an event website on live festival data.",
    "description": "Read-only feeds for an event website, plus light writes for mailing-list signups and form submissions. Every response is wrapped in `{ apiVersion, data }`, or `{ apiVersion, error }` on failure.\n\nMost endpoints require `?surface=web`: the parameter defaults to the mobile-app surface, which is gated on a different visibility setting, so omitting it can return `404` for a live event."
  },
  "servers": [
    {
      "url": "https://api.grofomo.com"
    }
  ],
  "security": [
    {
      "apiKeyHeader": []
    }
  ],
  "tags": [
    {
      "name": "Event"
    },
    {
      "name": "Lineup"
    },
    {
      "name": "Content"
    },
    {
      "name": "Tickets & merch"
    },
    {
      "name": "Forms & signups"
    },
    {
      "name": "Discovery"
    }
  ],
  "paths": {
    "/v1/events/{slug}/lineup": {
      "get": {
        "operationId": "events_lineup",
        "summary": "Event lineup",
        "description": "The published lineup for an event: every set, with its stage, start and end time.\n\nSlots arrive as one flat `slots` array rather than pre-grouped, so you can group by `day`, by `stage`, or by both, depending on how your page is laid out. A back-to-back set carries its full roster in `artists`, with the lead act repeated in `artist`; an unannounced slot has `artist: null` and a `placeholderLabel` to render instead. A `setNote` (\"DJ set\", \"Live\") says how a set is played: show it beside the name when it is there.\n\n`startTime` and `endTime` are **ISO instants**, not wall-clock strings. Format them in the event's timezone (from [event detail](/reference/events/detail)) for display. An overnight set crosses midnight in those timestamps but keeps its `day` on the festival day it belongs to, so group by `day`, not by the date inside the timestamp.\n\nThis reads the organiser's **published** snapshot, never their working draft. A lineup being rearranged in the console will not appear here until it is published, which is what makes it safe to render straight onto a public page.\n\nOn the web surface the response also carries `schemaOrg`: a ready-made `MusicEvent` JSON-LD block you can drop into a `<script type=\"application/ld+json\">` tag for rich search results.",
        "tags": [
          "Lineup"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "eventSlug": {
                          "type": "string"
                        },
                        "surface": {
                          "type": "string",
                          "enum": [
                            "app",
                            "web"
                          ],
                          "description": "Echo of the surface this response was built for."
                        },
                        "slots": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_lineup___schema0"
                          },
                          "description": "Every published set, as one flat list. Group by `day` or `stage` yourself, depending on how your page is laid out."
                        },
                        "schemaOrg": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_lineup___schema19"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A ready-made schema.org `MusicEvent` block. Serialise it into a `<script type=\"application/ld+json\">` tag. Null on the app surface."
                        },
                        "lastUpdatedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_lineup___schema20"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Latest edit across the event and every set here. Good for a \"last updated\" line."
                        }
                      },
                      "required": [
                        "eventId",
                        "eventSlug",
                        "surface",
                        "slots",
                        "schemaOrg",
                        "lastUpdatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventId": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                    "eventSlug": "summer-fest",
                    "surface": "web",
                    "slots": [
                      {
                        "id": "3e5a7c9b-0d2f-4e6a-9b8c-1d3f5a7e9c02",
                        "stage": "Main Stage",
                        "day": "2026-07-17",
                        "startTime": "2026-07-17T20:30:00+00:00",
                        "endTime": "2026-07-17T22:00:00+00:00",
                        "durationMinutes": 90,
                        "billingTier": "headliner",
                        "isPlaceholder": false,
                        "placeholderLabel": null,
                        "placeholderDescription": null,
                        "setNote": null,
                        "featured": true,
                        "createdAtIso": "2026-04-02T11:20:00.000Z",
                        "artist": {
                          "id": "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a13",
                          "name": "Nala Vex",
                          "imageUrl": "https://cdn.grofomo.com/summer-fest/artists/nala-vex.jpg",
                          "genres": [
                            "House",
                            "Breaks"
                          ],
                          "hometown": "Manchester",
                          "region": "England",
                          "country": "GB",
                          "locationLabel": "Manchester, England, United Kingdom",
                          "verified": true
                        },
                        "artists": [
                          {
                            "id": "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a13",
                            "name": "Nala Vex",
                            "imageUrl": "https://cdn.grofomo.com/summer-fest/artists/nala-vex.jpg",
                            "genres": [
                              "House",
                              "Breaks"
                            ],
                            "hometown": "Manchester",
                            "region": "England",
                            "country": "GB",
                            "locationLabel": "Manchester, England, United Kingdom",
                            "verified": true
                          }
                        ]
                      },
                      {
                        "id": "47a9e1c3-5b8d-4f20-9c6e-3a1b7d5f9e02",
                        "stage": "The Orchard",
                        "day": "2026-07-18",
                        "startTime": "2026-07-18T22:00:00+00:00",
                        "endTime": "2026-07-19T00:00:00+00:00",
                        "durationMinutes": 120,
                        "billingTier": "special guest",
                        "isPlaceholder": false,
                        "placeholderLabel": null,
                        "placeholderDescription": null,
                        "setNote": "DJ set",
                        "featured": false,
                        "createdAtIso": "2026-04-02T11:22:00.000Z",
                        "artist": {
                          "id": "d1f3b5a7-9c2e-4d80-8b6f-5a3c1e7d9b04",
                          "name": "Sonny Delrey",
                          "imageUrl": "https://cdn.grofomo.com/summer-fest/artists/sonny-delrey.jpg",
                          "genres": [
                            "Disco",
                            "Italo"
                          ],
                          "hometown": "Bristol",
                          "region": "England",
                          "country": "GB",
                          "locationLabel": "Bristol, England, United Kingdom",
                          "verified": false
                        },
                        "artists": [
                          {
                            "id": "d1f3b5a7-9c2e-4d80-8b6f-5a3c1e7d9b04",
                            "name": "Sonny Delrey",
                            "imageUrl": "https://cdn.grofomo.com/summer-fest/artists/sonny-delrey.jpg",
                            "genres": [
                              "Disco",
                              "Italo"
                            ],
                            "hometown": "Bristol",
                            "region": "England",
                            "country": "GB",
                            "locationLabel": "Bristol, England, United Kingdom",
                            "verified": false
                          },
                          {
                            "id": "5b8d2f4a-6c0e-4a13-9d7b-8f2a6c4e0d15",
                            "name": "Kiruna",
                            "imageUrl": null,
                            "genres": [
                              "Ambient"
                            ],
                            "hometown": "Gothenburg",
                            "region": null,
                            "country": "SE",
                            "locationLabel": "Gothenburg, Sweden",
                            "verified": true
                          }
                        ]
                      },
                      {
                        "id": "a3c5e7d9-2b4f-4061-8e9a-7c5d3b1f9a26",
                        "stage": "Main Stage",
                        "day": "2026-07-19",
                        "startTime": "2026-07-19T21:00:00+00:00",
                        "endTime": "2026-07-19T22:30:00+00:00",
                        "durationMinutes": 90,
                        "billingTier": "headliner",
                        "isPlaceholder": true,
                        "placeholderLabel": "Sunday headliner",
                        "placeholderDescription": "Announced 1 June.",
                        "setNote": null,
                        "featured": true,
                        "createdAtIso": "2026-04-02T11:25:00.000Z",
                        "artist": null,
                        "artists": []
                      }
                    ],
                    "schemaOrg": {
                      "@context": "https://schema.org",
                      "@type": "MusicEvent",
                      "name": "Summer Fest",
                      "startDate": "2026-07-17T12:00:00+01:00",
                      "endDate": "2026-07-19T23:59:00+01:00",
                      "location": {
                        "@type": "Place",
                        "name": "Ashton Court",
                        "address": "Ashton Court Estate, Bristol BS41 9JN, United Kingdom"
                      },
                      "performer": [
                        {
                          "@type": "MusicGroup",
                          "name": "Nala Vex"
                        },
                        {
                          "@type": "MusicGroup",
                          "name": "Sonny Delrey"
                        }
                      ],
                      "dateModified": "2026-06-01T09:15:00.000Z"
                    },
                    "lastUpdatedAt": "2026-06-01T09:15:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/artists/{artistId}": {
      "get": {
        "operationId": "events_artist",
        "summary": "Artist detail",
        "description": "An artist's full profile (biography, image and social links) together with every set they play at this event.\n\nUse it for an artist page linked from the lineup.\n\nNo key is required today because the Grofomo mobile app calls this endpoint without one. That will change. Send a key now: it is accepted and ignored, so the integration keeps working when enforcement lands.",
        "tags": [
          "Lineup"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "artistId",
            "in": "path",
            "required": true,
            "description": "From the lineup response.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "name": {
                          "type": "string",
                          "description": "Billed name."
                        },
                        "realName": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Legal name, when the artist has published one."
                        },
                        "bioShort": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema1"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "One or two sentences, for a lineup card."
                        },
                        "bioLong": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema2"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Full biography, for an artist page."
                        },
                        "imageUrl": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema3"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Press shot."
                        },
                        "genres": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_artist___schema4"
                          },
                          "description": "Free-text genre tags. May be empty."
                        },
                        "website": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema5"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The artist's own site."
                        },
                        "socials": {
                          "type": "object",
                          "propertyNames": {
                            "$ref": "#/components/schemas/events_artist___schema6"
                          },
                          "additionalProperties": {
                            "$ref": "#/components/schemas/events_artist___schema7"
                          },
                          "description": "Profile URLs keyed by platform slug (`instagram`, `spotify`, `soundcloud`, …). Blank entries are stripped server-side, so every value here is a real URL."
                        },
                        "hometown": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema8"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "City."
                        },
                        "region": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema9"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "State or province."
                        },
                        "country": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema10"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Raw ISO 3166-1 alpha-2 code, e.g. \"GB\"."
                        },
                        "locationLabel": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_artist___schema11"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Pre-formatted location for display. Render this rather than joining the parts."
                        },
                        "verified": {
                          "type": "boolean",
                          "description": "True when the artist has claimed their Grofomo profile, so these details come from the artist themselves. Show a verified mark beside the name."
                        },
                        "sets": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_artist___schema12"
                          },
                          "description": "Every set this artist plays at this event."
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "realName",
                        "bioShort",
                        "bioLong",
                        "imageUrl",
                        "genres",
                        "website",
                        "socials",
                        "hometown",
                        "region",
                        "country",
                        "locationLabel",
                        "verified",
                        "sets"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "id": "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a13",
                    "name": "Nala Vex",
                    "realName": null,
                    "bioShort": "Manchester house producer with a decade of dancefloor edits behind her.",
                    "bioLong": "Nala Vex has spent ten years turning warehouse rooms inside out, first through the Low Ceiling parties and later on her own Vexed imprint. Her sets move between rolling house, UK breaks and whatever record she found on Thursday.",
                    "imageUrl": "https://cdn.grofomo.com/summer-fest/artists/nala-vex.jpg",
                    "genres": [
                      "House",
                      "Breaks"
                    ],
                    "website": "https://nalavex.example",
                    "socials": {
                      "instagram": "https://instagram.com/nalavex",
                      "soundcloud": "https://soundcloud.com/nalavex"
                    },
                    "hometown": "Manchester",
                    "region": "England",
                    "country": "GB",
                    "locationLabel": "Manchester, England, United Kingdom",
                    "verified": true,
                    "sets": [
                      {
                        "lineupId": "3e5a7c9b-0d2f-4e6a-9b8c-1d3f5a7e9c02",
                        "stage": "Main Stage",
                        "day": "2026-07-17",
                        "startTime": "2026-07-17T20:30:00+00:00",
                        "endTime": "2026-07-17T22:00:00+00:00"
                      }
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/faq": {
      "get": {
        "operationId": "events_faq",
        "summary": "Event FAQs",
        "description": "The event's FAQs, in the organiser's own categories and order.\n\nAnswers arrive as **pre-rendered, sanitised HTML** in `answerHtml`, so you can inject them directly without running a rich-text renderer of your own.\n\nOn the web surface the response carries an `FAQPage` JSON-LD block.",
        "tags": [
          "Content"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "surface": {
                          "type": "string",
                          "enum": [
                            "app",
                            "web"
                          ],
                          "description": "Echo of the surface this response was built for."
                        },
                        "categories": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_faq___schema0"
                          },
                          "description": "Categories, in the organiser's order."
                        },
                        "schemaOrg": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_faq___schema4"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A ready-made schema.org `FAQPage` block for a JSON-LD script tag. Null on the app surface."
                        },
                        "lastUpdatedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_faq___schema5"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Most recent edit across every entry. Null when there are none."
                        },
                        "generatedAt": {
                          "type": "string",
                          "description": "When this response was built."
                        }
                      },
                      "required": [
                        "eventId",
                        "surface",
                        "categories",
                        "schemaOrg",
                        "lastUpdatedAt",
                        "generatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventId": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                    "surface": "web",
                    "categories": [
                      {
                        "id": "getting-there",
                        "name": "Getting there",
                        "faqs": [
                          {
                            "id": "72e4c6a8-3d5f-4b90-9a1c-6e8d0f2b4a37",
                            "question": "Is there parking on site?",
                            "answerDoc": {
                              "type": "doc",
                              "content": [
                                {
                                  "type": "paragraph",
                                  "content": [
                                    {
                                      "type": "text",
                                      "text": "Yes, but it must be booked in advance through the "
                                    },
                                    {
                                      "type": "text",
                                      "text": "ticket store",
                                      "marks": [
                                        {
                                          "type": "link",
                                          "attrs": {
                                            "href": "https://grfm.to/e/summer-fest"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "type": "text",
                                      "text": ". Gates open at 10:00 each day."
                                    }
                                  ]
                                }
                              ]
                            },
                            "answerPlain": "Yes, but it must be booked in advance through the ticket store. Gates open at 10:00 each day.",
                            "answerHtml": "<p>Yes, but it must be booked in advance through the <a href=\"https://grfm.to/e/summer-fest\">ticket store</a>. Gates open at 10:00 each day.</p>",
                            "updatedAt": "2026-05-14T16:02:00.000Z"
                          }
                        ]
                      },
                      {
                        "id": null,
                        "name": "On the day",
                        "faqs": [
                          {
                            "id": "e8a0c2d4-7f9b-4d51-8c3e-9b7f5d1a3c48",
                            "question": "Can I bring my own drinks?",
                            "answerDoc": {
                              "type": "doc",
                              "content": [
                                {
                                  "type": "paragraph",
                                  "content": [
                                    {
                                      "type": "text",
                                      "text": "Sealed water only, up to 500ml. Everything else is available on site."
                                    }
                                  ]
                                }
                              ]
                            },
                            "answerPlain": "Sealed water only, up to 500ml. Everything else is available on site.",
                            "answerHtml": "<p>Sealed water only, up to 500ml. Everything else is available on site.</p>",
                            "updatedAt": "2026-05-14T16:04:00.000Z"
                          }
                        ]
                      }
                    ],
                    "schemaOrg": {
                      "@context": "https://schema.org",
                      "@type": "FAQPage",
                      "mainEntity": [
                        {
                          "@type": "Question",
                          "name": "Is there parking on site?",
                          "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Yes, but it must be booked in advance through the ticket store."
                          }
                        }
                      ]
                    },
                    "lastUpdatedAt": "2026-05-14T16:04:00.000Z",
                    "generatedAt": "2026-06-01T09:15:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/gallery": {
      "get": {
        "operationId": "events_gallery",
        "summary": "Photo gallery",
        "description": "Up to 25 photos an organiser hand-picked in Grofomo, in the order they arranged them. Render them in that order: the first few carry most of the weight on a page.\n\nThe gallery belongs to the event **series**, not to one edition, so every year of a festival answers with the same set. That is deliberate: it is \"the best shots across the years\", not \"this year's shots\".\n\nAn event that is not part of a series answers with `seriesId: null` and an empty `photos` array. So does one whose organiser has not picked any yet. **Empty is a normal answer, not an error** - design a page that reads well without it.\n\nPhotos can disappear between requests, without the array shrinking for any reason you can see. A photo whose consent was withdrawn, or which the organiser deleted, stops being served immediately. Do not cache image URLs beyond your own page build, and do not treat a shrinking gallery as a fault.\n\n`focalX` and `focalY` are where the subject is, as fractions of width and height. Crop around that point rather than the centre and a wide shot keeps its subject on a narrow screen. Null means centre.\n\n`credit` is a request, not decoration: where it is set, show it wherever you show the photo.",
        "tags": [
          "Content"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "eventSlug": {
                          "type": "string"
                        },
                        "seriesId": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_gallery___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The series these photos belong to. Null when the event is not part of one, in which case `photos` is always empty."
                        },
                        "photos": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_gallery___schema1"
                          },
                          "description": "In the order the organiser arranged them. At most 25, and often none: an empty array is a normal answer, not an error."
                        },
                        "lastUpdatedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_gallery___schema9"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "When the gallery last changed, for your own cache checks. Null when it is empty."
                        }
                      },
                      "required": [
                        "eventId",
                        "eventSlug",
                        "seriesId",
                        "photos",
                        "lastUpdatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventId": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                    "eventSlug": "summer-fest",
                    "seriesId": "8f2c1a6e-5d3b-4c7a-9e10-2b4d6f8a0c31",
                    "photos": [
                      {
                        "id": "c1a9f0d2-3e4b-45a6-8b7c-9d0e1f2a3b4c",
                        "url": "https://cdn.grofomo.com/summer-fest/gallery/main-stage-sunset.jpg",
                        "thumbnailUrl": "https://cdn.grofomo.com/summer-fest/gallery/main-stage-sunset-thumb.jpg",
                        "width": 2400,
                        "height": 1600,
                        "caption": "Main Stage, Sunday golden hour",
                        "credit": "Ellis Vaughan",
                        "focalX": 0.5,
                        "focalY": 0.38
                      },
                      {
                        "id": "d2b0a1e3-4f5c-46b7-9c8d-0e1f2a3b4c5d",
                        "url": "https://cdn.grofomo.com/summer-fest/gallery/crowd-friday.jpg",
                        "thumbnailUrl": null,
                        "width": 1800,
                        "height": 1800,
                        "caption": null,
                        "credit": null,
                        "focalX": null,
                        "focalY": null
                      }
                    ],
                    "lastUpdatedAt": "2026-06-02T11:20:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/news": {
      "get": {
        "operationId": "events_news",
        "summary": "News index",
        "description": "The event's published news articles, newest first. Each entry is a summary. Fetch a single article for its body.\n\nDrafts and articles scheduled for later never appear.",
        "tags": [
          "Content"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "articles": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_news___schema0"
                          },
                          "description": "Published articles, newest first. Drafts and scheduled posts never appear."
                        },
                        "lastUpdatedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_news___schema2"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Most recent change across these articles. Null when there are none."
                        },
                        "generatedAt": {
                          "type": "string",
                          "description": "When this response was built. Useful for a cache debug line."
                        }
                      },
                      "required": [
                        "eventId",
                        "articles",
                        "lastUpdatedAt",
                        "generatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventId": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                    "articles": [
                      {
                        "slug": "second-wave-announced",
                        "title": "Second wave announced",
                        "excerpt": "Twelve more names join the bill, including a Sunday close on the Main Stage.",
                        "heroImageUrl": "https://cdn.grofomo.com/summer-fest/news/second-wave.jpg",
                        "tags": [
                          "lineup"
                        ],
                        "author": "Riot Promotions",
                        "publishedAt": "2026-05-28T09:00:00.000Z",
                        "updatedAt": "2026-05-28T09:00:00.000Z"
                      },
                      {
                        "slug": "travel-and-parking",
                        "title": "Travel and parking, explained",
                        "excerpt": "Shuttle times from Temple Meads, and how the pre-book car park works.",
                        "heroImageUrl": null,
                        "tags": [
                          "travel",
                          "practical"
                        ],
                        "author": null,
                        "publishedAt": "2026-05-12T08:30:00.000Z",
                        "updatedAt": "2026-05-19T14:10:00.000Z"
                      }
                    ],
                    "lastUpdatedAt": "2026-05-28T09:00:00.000Z",
                    "generatedAt": "2026-06-01T09:15:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/news/{articleSlug}": {
      "get": {
        "operationId": "events_news-article",
        "summary": "News article",
        "description": "One published article, including its body as sanitised HTML.\n\nOn the web surface the response carries a `NewsArticle` JSON-LD block.",
        "tags": [
          "Content"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "articleSlug",
            "in": "path",
            "required": true,
            "description": "The article's slug, from the news index.",
            "schema": {
              "type": "string"
            },
            "example": "first-wave-announced"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "slug": {
                          "type": "string",
                          "description": "Pass this to the single-article endpoint for the body."
                        },
                        "title": {
                          "type": "string"
                        },
                        "excerpt": {
                          "type": "string",
                          "description": "Short standfirst, for a listing card."
                        },
                        "heroImageUrl": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_news_article___schema0"
                          },
                          "description": "Free-text tags, e.g. \"lineup\". May be empty."
                        },
                        "author": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publishedAt": {
                          "type": "string",
                          "description": "Publication time. The index is sorted newest first on this."
                        },
                        "updatedAt": {
                          "type": "string"
                        },
                        "bodyMarkdown": {
                          "type": "string",
                          "description": "The canonical body, in markdown."
                        },
                        "bodyHtml": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_news_article___schema1"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The same body pre-rendered to sanitised HTML, so you need no markdown renderer."
                        },
                        "seoTitle": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_news_article___schema2"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Override for the page `<title>`, when the organiser set one."
                        },
                        "seoDescription": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_news_article___schema3"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Override for the meta description."
                        },
                        "schemaOrg": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_news_article___schema4"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A ready-made schema.org `NewsArticle` block for a JSON-LD script tag."
                        }
                      },
                      "required": [
                        "slug",
                        "title",
                        "excerpt",
                        "heroImageUrl",
                        "tags",
                        "author",
                        "publishedAt",
                        "updatedAt",
                        "bodyMarkdown",
                        "bodyHtml",
                        "seoTitle",
                        "seoDescription",
                        "schemaOrg"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "slug": "second-wave-announced",
                    "title": "Second wave announced",
                    "excerpt": "Twelve more names join the bill, including a Sunday close on the Main Stage.",
                    "heroImageUrl": "https://cdn.grofomo.com/summer-fest/news/second-wave.jpg",
                    "tags": [
                      "lineup"
                    ],
                    "author": "Riot Promotions",
                    "publishedAt": "2026-05-28T09:00:00.000Z",
                    "updatedAt": "2026-05-28T09:00:00.000Z",
                    "bodyMarkdown": "## Twelve more names\n\nThe second wave lands today, and it fills out both the Friday night Orchard programme and Sunday on the Main Stage.\n\nTickets for all three days are on sale now.",
                    "bodyHtml": "<h2>Twelve more names</h2>\n<p>The second wave lands today, and it fills out both the Friday night Orchard programme and Sunday on the Main Stage.</p>\n<p>Tickets for all three days are on sale now.</p>",
                    "seoTitle": "Summer Fest 2026: second wave announced",
                    "seoDescription": "Twelve more names join the Summer Fest bill, including a Sunday Main Stage close.",
                    "schemaOrg": {
                      "@context": "https://schema.org",
                      "@type": "NewsArticle",
                      "headline": "Second wave announced",
                      "datePublished": "2026-05-28T09:00:00.000Z",
                      "dateModified": "2026-05-28T09:00:00.000Z",
                      "author": {
                        "@type": "Organization",
                        "name": "Riot Promotions"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/broadcasts": {
      "get": {
        "operationId": "events_broadcasts",
        "summary": "Announcements",
        "description": "Announcements the organiser has pushed to attendees: stage changes, weather notices, running-order updates.\n\nGood for a live \"latest updates\" strip during the event itself. Never cached, so it is safe to poll.\n\nNo key is required today because the Grofomo mobile app calls this endpoint without one. That will change. Send a key now: it is accepted and ignored, so the integration keeps working when enforcement lands.",
        "tags": [
          "Content"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "broadcasts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "title": {
                                "type": "string"
                              },
                              "body": {
                                "type": "string"
                              },
                              "category": {
                                "type": "string",
                                "enum": [
                                  "reminder",
                                  "update",
                                  "marketing"
                                ],
                                "description": "What kind of announcement this was. Mirrors the push opt-in it was sent under."
                              },
                              "sentAt": {
                                "type": "string",
                                "description": "When it went out. Newest first."
                              },
                              "deepLink": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/events_broadcasts___schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Where the announcement pointed, when it pointed anywhere."
                              }
                            },
                            "required": [
                              "id",
                              "title",
                              "body",
                              "category",
                              "sentAt",
                              "deepLink"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "broadcasts"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "broadcasts": [
                      {
                        "id": "0d2f4a6c-8e0b-4c73-9f5a-2c4e6a8d0b59",
                        "title": "Main Stage running 20 minutes late",
                        "body": "Weather delay this morning. Everything from 18:00 shifts back by 20 minutes.",
                        "category": "update",
                        "sentAt": "2026-07-18T16:42:00.000Z",
                        "deepLink": "https://grfm.to/e/summer-fest"
                      },
                      {
                        "id": "4a6c8e0d-2f4b-4e95-8a7c-1f3d5b7e9c60",
                        "title": "Last entry is 21:00",
                        "body": "Gates close for good at 21:00 tonight. Plan your arrival.",
                        "category": "reminder",
                        "sentAt": "2026-07-17T14:00:00.000Z",
                        "deepLink": null
                      }
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/tickets": {
      "get": {
        "operationId": "events_tickets",
        "summary": "Ticket availability",
        "description": "The ticket types and release tiers a visitor is allowed to see, with live availability.\n\nVisibility is resolved **server-side**, so this only ever returns what the public should see: time-gated tiers appear when they open, and hidden sold-out tiers stay hidden.\n\nRead `soldOut` rather than inferring from `available`. `available` is `null` both when a tier is unlimited **and** when the organiser has chosen not to publish counts. `soldOut` is always authoritative.\n\nEvery release carries two prices. `pricePennies` is the face value; `feeInclusivePricePennies` is the total a buyer pays for one unit, and the difference between them is the per-unit booking fee. **On a consumer-facing page, headline the fee-inclusive figure**, because UK drip-pricing rules (the DMCC Act) bind whoever invites the purchase, which includes a site that advertises a price and links out to checkout. The face value is yours to use where that does not apply: as the \"+ booking fee\" half of a breakdown, for a non-UK audience, or in B2B and reporting contexts.\n\n**n of a tier cost exactly n times `feeInclusivePricePennies`.** The fee is linear in quantity, so a running total you compute as quantity x the advertised price agrees with us to the penny. Two carts pay LESS than that and never more: one whose items were re-priced by a promo code or a buy-more-save-more tier, and one small enough that the policy's per-order minimum fee fires. `bookingFeePolicy` is on the payload if you want to derive the fee yourself, and the server stays authoritative at reserve either way.\n\n## Featuring a deal\n\n`quantityDiscounts` lists the automatic discounts on this event: buy-more-save-more tiers, buy-some-get-some-free, and fixed bundle prices. They apply themselves at checkout, so there is no code for a visitor to enter and nothing for you to do beyond advertising them.\n\n**Show `label`, do not build your own string from the numbers.** The trap is `buy_n_get_m`: `buyQuantity: 4, freeQuantity: 1` reads as \"buy 4, get 1 free\", but the rule needs `buyQuantity + freeQuantity` in the basket before the cheapest one goes free. A visitor who adds four gets nothing and never finds out why. `label` says `\"5 for the price of 4\"`, which is the number they have to reach. Grofomo's own storefront shipped the wrong phrasing before this field existed.\n\n**A rule with `freeReleaseId` gives a different ticket away** (\"buy 1 early bird, get a free shuttle bus\"). There `buyQuantity` is the true paid count, and the free units come off that release, but only ones the visitor has actually added: the server never puts a ticket in the basket for them. If you build a cart, add `freeQuantity` of the free release alongside the paid ticket, or the deal is advertised and never taken.\n\nFor `bundle_price`, `label` is already fee-inclusive, for the same drip-pricing reason as the prices above: a site advertising \"5 for £80\" is inviting the purchase, so £80 must be what the buyer actually pays.\n\n`applicableReleaseIds` scopes a rule to particular tiers; an empty array means the whole order.\n\n**It is a view of what you can buy right now, not the organiser's configuration.** The ids are filtered to the releases THIS request can currently purchase, so the array is routinely shorter than what the organiser ticked, and it changes on its own as tiers open, sell out, close, or are revealed by a `?promo=` code. A rule whose whole scope is invisible is omitted from the response entirely: its absence means nobody can take that deal today, never that the organiser deleted it. So do not diff this against the console, cache it as configuration, or read a single id as \"they only picked one tier\" - a five-tier deal on an event where one tier is on sale correctly reports that one tier. Rules on the same tickets never stack: of those, the single best one wins. The one exception is a rule that gives a **different** ticket away (`freeReleaseId` set): it combines with the best deal on the tickets that earned it, because \"5 adults for the price of 4\" and \"buy 4 adults, get a child ticket free\" are two offers about two tickets and a buyer who qualifies for both gets both. Do not add savings together yourself; quote tells you what applies.\n\nWorking out what a given basket saves is deliberately not your job: totals are computed at checkout, where the server is authoritative.\n\n## Selling from your own page\n\nThe `checkout` block carries the consent wording a checkout must print and the form version to send back with the buyer's details. The purchase itself runs through [quote](/reference/tickets/quote), [reserve](/reference/tickets/reserve), [details](/reference/tickets/details) and [pay](/reference/tickets/pay); the [selling tickets](/checkout) guide walks the whole flow.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          },
          {
            "name": "promo",
            "in": "query",
            "required": false,
            "description": "A live unlock code, to reveal gated ticket types and the hidden tiers that code names.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "categories": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_tickets___schema0"
                          },
                          "description": "Optional grouping for the types below."
                        },
                        "types": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_tickets___schema1"
                          },
                          "description": "Only what this caller is allowed to see. Hidden and promo-gated types are filtered server-side."
                        },
                        "quantityDiscounts": {
                          "description": "Automatic discounts, in enough detail to advertise (\"Buy 4+ and save 10%\") and preview locally. The server stays authoritative at checkout.",
                          "$ref": "#/components/schemas/events_tickets___schema21"
                        },
                        "bookingFeePolicy": {
                          "description": "The resolved booking-fee policy for this event, so a client can show the exact fee for any cart: max(min(floor(subtotal × percentBps / 10000) + perTicketPennies × ticketCount, cap), minPennies), with cap 0 meaning uncapped and the fee computed on the post-discount subtotal. `ticketCount` counts units the buyer PAYS for: a £0 tier does not count, and neither does a unit given away by a `buy_n_get_m` rule, so \"5 for the price of 4\" costs exactly what 4 cost. The server stays authoritative at reserve. Additive; absent on older servers.",
                          "$ref": "#/components/schemas/events_tickets___schema30"
                        },
                        "affiliateDiscount": {
                          "description": "What the Ambassador link in `?aff=` takes off the buyer's order, so you can say so before they choose (\"Your link takes 10% off your tickets\"). Null when there is no `?aff=`, the code is unknown, or the link gives no discount. Send the same code as `affiliateCode` on quote and reserve, which price it; a promo code that saves more takes its place.",
                          "$ref": "#/components/schemas/events_tickets___schema31"
                        },
                        "checkout": {
                          "description": "What a checkout on your own site must show the buyer, so the consent it collects is the consent the organiser and Grofomo rely on. Print each string verbatim and send it back on the details step. Absent on the app surface.",
                          "$ref": "#/components/schemas/events_tickets___schema32"
                        }
                      },
                      "required": [
                        "categories",
                        "types"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "categories": [
                      {
                        "id": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c35",
                        "title": "Weekend",
                        "description": "All three days, with camping."
                      }
                    ],
                    "types": [
                      {
                        "id": "b2d4a6f8-1c3e-4a5b-8d7f-2e9c0a1b3d46",
                        "categoryId": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c35",
                        "title": "Weekend camping ticket",
                        "description": "Entry Friday to Sunday, plus a camping pitch from Friday 10:00.",
                        "descriptionDoc": {
                          "type": "doc",
                          "content": [
                            {
                              "type": "paragraph",
                              "content": [
                                {
                                  "type": "text",
                                  "text": "Entry Friday to Sunday, plus a camping pitch from Friday 10:00."
                                }
                              ]
                            }
                          ]
                        },
                        "ticketsPerGroup": 1,
                        "minPerOrder": 1,
                        "maxPerOrder": 6,
                        "isHighlighted": true,
                        "highlightMessage": "Most popular",
                        "paymentPlan": {
                          "depositBps": 2500,
                          "installments": 3
                        },
                        "releases": [
                          {
                            "id": "3e5a7c9b-0d2f-4e6a-9b8c-1d3f5a7e9c03",
                            "label": "Tier 1",
                            "pricePennies": 9500,
                            "feeInclusivePricePennies": 10237,
                            "currency": "GBP",
                            "available": null,
                            "capacity": null,
                            "closesAt": null,
                            "opensAt": null,
                            "upcoming": false,
                            "soldOut": true,
                            "closed": false
                          },
                          {
                            "id": "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a14",
                            "label": "Tier 2",
                            "pricePennies": 11000,
                            "feeInclusivePricePennies": 11850,
                            "currency": "GBP",
                            "available": 340,
                            "capacity": 1500,
                            "closesAt": "2026-07-10T22:59:00.000Z",
                            "opensAt": null,
                            "upcoming": false,
                            "soldOut": false,
                            "closed": false,
                            "paymentPlans": [
                              {
                                "id": "d4c2b0a8-6e1f-4d3c-9b7a-5e8f2c1a0b36",
                                "name": "Early bird plan",
                                "deposit": {
                                  "kind": "percent",
                                  "value": 2500
                                },
                                "installments": 3,
                                "dueDates": [
                                  "2026-04-01T08:00:00.000Z",
                                  "2026-05-01T08:00:00.000Z",
                                  "2026-06-01T08:00:00.000Z"
                                ],
                                "payByAt": "2026-07-10T10:00:00.000Z"
                              }
                            ]
                          },
                          {
                            "id": "47a9e1c3-5b8d-4f20-9c6e-3a1b7d5f9e03",
                            "label": "Final release",
                            "pricePennies": 12500,
                            "feeInclusivePricePennies": 13462,
                            "currency": "GBP",
                            "available": null,
                            "capacity": null,
                            "closesAt": null,
                            "opensAt": "2026-07-11T09:00:00.000Z",
                            "upcoming": true,
                            "soldOut": false,
                            "closed": false
                          }
                        ]
                      }
                    ],
                    "quantityDiscounts": [
                      {
                        "id": "d1f3b5a7-9c2e-4d80-8b6f-5a3c1e7d9b05",
                        "name": "Group of four",
                        "kind": "tiered_percent",
                        "applicableReleaseIds": [
                          "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a14"
                        ],
                        "tiers": [
                          {
                            "minQuantity": 4,
                            "value": 1000
                          }
                        ],
                        "combinableWithPromo": false,
                        "label": "Buy 4+ and save 10%"
                      },
                      {
                        "id": "f4a2c8e0-6b1d-4739-9e5a-2c7b0d4f8a16",
                        "name": "Group Saver",
                        "kind": "buy_n_get_m",
                        "applicableReleaseIds": [
                          "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a14"
                        ],
                        "buyQuantity": 4,
                        "freeQuantity": 1,
                        "combinableWithPromo": false,
                        "label": "5 for the price of 4"
                      }
                    ],
                    "bookingFeePolicy": {
                      "perTicketPennies": 25,
                      "percentBps": 750,
                      "capPennies": 0,
                      "minPennies": 50
                    },
                    "checkout": {
                      "consent": {
                        "organiserEmail": "We'll email you about future Riot Promotions shows, presales and lineup drops. Untick if you'd rather not - unsubscribe anytime.",
                        "organiserMessaging": "Be first in line: on-sale alerts, presale codes and last-minute ticket drops from Riot Promotions by SMS or WhatsApp. Reply STOP anytime to opt out.",
                        "platformEmail": "Grofomo runs this checkout and delivers your tickets. Tick to get occasional email picks of similar events on Grofomo. Unsubscribe anytime."
                      },
                      "platformEmailBasis": "consent",
                      "platformEmailDefaultTicked": false,
                      "formVersion": "storefront-web-3",
                      "legal": {
                        "attestation": {
                          "text": "By continuing you confirm you are 18 or over and accept the Grofomo Terms.",
                          "linkText": "Grofomo Terms",
                          "termsUrl": "https://events.grofomo.com/terms",
                          "privacyUrl": "https://events.grofomo.com/privacy"
                        },
                        "attribution": {
                          "text": "Ticketing by Grofomo",
                          "url": "https://events.grofomo.com"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/tickets/quote": {
      "post": {
        "operationId": "tickets_quote",
        "summary": "Quote a cart",
        "description": "Price a cart exactly as reserve would, without holding inventory or creating anything. Call it as the cart changes to show the running total and the booking fee, and when the buyer types a promo code to tell them whether it worked.\n\nThe server is authoritative: the figures here are what reserve will charge for the same cart a moment later, subject to availability.\n\n`promoApplied` is the answer to \"did the code work\". A wrong or exhausted code does not fail the request. When `unlocksVisibility` is true the code also reveals held-back stock, whether a whole gated ticket type or a single hidden tier it names: fetch [ticket availability](/reference/events/tickets) again with `?promo=` to list it.\n\n`paymentPlans` lists every payment plan this cart can take right now, each with the deposit (booking fee included), the balance and the exact schedule reserve would write. Offer these as the choices, and show these figures: they apply rules the ticket feed cannot, such as a unit a deal made free carrying no per-ticket deposit. An empty list means no plan fits this cart.\n\nSend the same `affiliateCode` and `artistId` you will send on reserve, or a gated tier the buyer can legitimately see prices as unavailable here.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "subtotalPennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "Face value of the cart before discounts, in minor units."
                        },
                        "discountPennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "Everything taken off (automatic quantity discount plus promo code or Ambassador link discount), in minor units."
                        },
                        "bookingFeePennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "The booking fee, in minor units."
                        },
                        "totalPennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "What the buyer would pay, in minor units."
                        },
                        "currency": {
                          "type": "string",
                          "description": "ISO 4217 code every amount is in."
                        },
                        "promoApplied": {
                          "type": "boolean",
                          "description": "True when the promo code was valid and applied to this cart. False with a code sent means the code is wrong, expired, used up, or does not cover these tiers."
                        },
                        "appliedReleaseIds": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/tickets_quote___schema0"
                          },
                          "description": "Release ids the promo discounts. Empty means every release in the cart."
                        },
                        "discountType": {
                          "type": "string",
                          "enum": [
                            "percentage",
                            "fixed",
                            "none"
                          ],
                          "description": "How the promo discounts: `percentage` of the tier price, a `fixed` amount, or `none`."
                        },
                        "discountValue": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "Basis points for percentage (1000 = 10%), minor units for fixed, 0 for none."
                        },
                        "unlocksVisibility": {
                          "description": "True when the code also reveals hidden ticket types. Fetch the ticket availability feed again with `?promo=<code>` to list them.",
                          "$ref": "#/components/schemas/tickets_quote___schema1"
                        },
                        "affiliateDiscount": {
                          "description": "The discount the Ambassador link (`affiliateCode`) gives this cart, or null when it gives none. A link discount takes a promo code's place: when both are sent the buyer gets whichever saves more, and `promoApplied` is false if the link won.",
                          "$ref": "#/components/schemas/tickets_quote___schema2"
                        },
                        "paymentPlans": {
                          "description": "Every payment plan this cart can take right now, with the exact deposit, balance and schedule reserve would charge for it. Show these rather than working the figures out yourself: a deal that makes a unit free, for example, takes it out of a per-ticket deposit. Empty when no plan fits the cart; absent when the plans could not be checked, in which case offer none.",
                          "$ref": "#/components/schemas/tickets_quote___schema3"
                        }
                      },
                      "required": [
                        "subtotalPennies",
                        "discountPennies",
                        "bookingFeePennies",
                        "totalPennies",
                        "currency",
                        "promoApplied",
                        "appliedReleaseIds",
                        "discountType",
                        "discountValue"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "subtotalPennies": 22000,
                    "discountPennies": 2200,
                    "bookingFeePennies": 1535,
                    "totalPennies": 21335,
                    "currency": "GBP",
                    "promoApplied": true,
                    "appliedReleaseIds": [],
                    "discountType": "percentage",
                    "discountValue": 1000,
                    "unlocksVisibility": false,
                    "paymentPlans": [
                      {
                        "id": "d4c2b0a8-6e1f-4d3c-9b7a-5e8f2c1a0b36",
                        "name": "Early bird plan",
                        "depositPennies": 6485,
                        "balancePennies": 14850,
                        "payByAt": "2026-07-10T10:00:00.000Z",
                        "installments": [
                          {
                            "seq": 1,
                            "amountPennies": 4950,
                            "dueAt": "2026-04-01T08:00:00.000Z"
                          },
                          {
                            "seq": 2,
                            "amountPennies": 4950,
                            "dueAt": "2026-05-01T08:00:00.000Z"
                          },
                          {
                            "seq": 3,
                            "amountPennies": 4950,
                            "dueAt": "2026-06-01T08:00:00.000Z"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "`affiliate_required`: A release in the cart is affiliate-gated and no valid `affiliateCode` was sent.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "affiliate_required",
                    "message": "A release in the cart is affiliate-gated and no valid `affiliateCode` was sent."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`promo_used_up`: The promo code has reached its use limit.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "promo_used_up",
                    "message": "The promo code has reached its use limit."
                  }
                }
              }
            }
          },
          "410": {
            "description": "`cancelled`: The event has been cancelled.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "cancelled",
                    "message": "The event has been cancelled."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/tickets_quote_request___schema0"
                    },
                    "description": "The cart to price. Same shape as reserve."
                  },
                  "promoCode": {
                    "description": "The code the buyer typed. Read `promoApplied` to learn whether it worked.",
                    "$ref": "#/components/schemas/tickets_quote_request___schema1"
                  },
                  "affiliateCode": {
                    "description": "Send whatever you will send on reserve, so gated tiers and the Ambassador link discount price the same way here.",
                    "$ref": "#/components/schemas/tickets_quote_request___schema2"
                  },
                  "artistId": {
                    "description": "Send whatever you will send on reserve, so gated tiers price the same way here.",
                    "$ref": "#/components/schemas/tickets_quote_request___schema3"
                  }
                },
                "required": [
                  "items"
                ]
              },
              "example": {
                "items": [
                  {
                    "releaseId": "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a14",
                    "quantity": 2
                  }
                ],
                "promoCode": "EARLYBIRD"
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/tickets/reserve": {
      "post": {
        "operationId": "tickets_reserve",
        "summary": "Reserve tickets",
        "description": "Hold the tickets in the cart and create the order. The hold is oversell-proof and lasts 15 minutes (`reservedUntil`); show the buyer a countdown, because details and pay refuse an expired order with `409 expired` and the only way on is a fresh reserve. Nothing needs cancelling: an unpaid hold is released on its own.\n\nPrices are rebuilt server-side from the release ids and quantities. Whatever your page showed, the order carries what the server computed, so read the totals off the response rather than off your own arithmetic.\n\n**`checkoutToken` is the credential for the order.** Every later call (details, pay, complete-free, status) is addressed by it and nothing else. It authorises the checkout only: not the tickets, not a transfer, not the receipt, all of which reach the buyer by email. It expires 24 hours after the reserve. Keep it in memory or session storage and out of URLs, logs and analytics.\n\nA zero-total order (a free tier, or a code that discounts everything) is finished with [complete free](/reference/tickets/complete-free) instead of [pay](/reference/tickets/pay).\n\nReserve fails with `409 unavailable` until the organiser has finished connecting Stripe. That is the organiser's setup to complete, not something a key or a domain can fix.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "orderId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "description": "The order's internal id. For your records; every later call uses `publicId`."
                        },
                        "checkoutToken": {
                          "type": "string",
                          "description": "The credential for this order on the details, pay, complete-free and status endpoints: put it in the path where those show `{checkoutToken}`. It authorises the checkout and nothing else (not the tickets, not transfers, not the receipt: those reach the buyer by email), and it expires 24 hours after the reserve. Keep it in memory or session storage and out of URLs, logs and analytics."
                        },
                        "reservedUntil": {
                          "type": "string",
                          "description": "ISO instant the 15-minute inventory hold ends. Show a countdown; after it, details and pay answer 409 `expired` and the buyer starts again."
                        },
                        "currency": {
                          "type": "string",
                          "description": "ISO 4217 code every amount on this order is in."
                        },
                        "subtotalPennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "Face value of the cart before discounts, in minor units."
                        },
                        "discountPennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "Everything taken off: the automatic quantity discount plus the promo code or the Ambassador link discount, in minor units."
                        },
                        "bookingFeePennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "The booking fee for the order, in minor units."
                        },
                        "totalPennies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "What the buyer pays: subtotal minus discount plus booking fee, in minor units. Zero means a free order: call complete-free instead of pay."
                        },
                        "quantityDiscount": {
                          "description": "The automatic quantity discount that applied, or null when none did.",
                          "$ref": "#/components/schemas/tickets_reserve___schema0"
                        },
                        "promoDiscountPennies": {
                          "description": "The promo code's share of `discountPennies`, in minor units.",
                          "$ref": "#/components/schemas/tickets_reserve___schema1"
                        },
                        "affiliateDiscount": {
                          "description": "The discount the Ambassador link gave the buyer, or null when it gave none (no discount on the link, or a promo code saved more).",
                          "$ref": "#/components/schemas/tickets_reserve___schema2"
                        },
                        "paymentPlan": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/tickets_reserve___schema3"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The instalment plan the order is on, or null when paying in full."
                        },
                        "crossEventOffers": {
                          "description": "Offers this cart earns on the organiser's other events. The personal codes are minted once the order completes and arrive on the status endpoint and by email.",
                          "$ref": "#/components/schemas/tickets_reserve___schema5"
                        }
                      },
                      "required": [
                        "orderId",
                        "checkoutToken",
                        "reservedUntil",
                        "currency",
                        "subtotalPennies",
                        "discountPennies",
                        "bookingFeePennies",
                        "totalPennies",
                        "paymentPlan"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "orderId": "c3a1e5d7-9b2f-4e6a-8c0d-2f4b6a8c0e12",
                    "checkoutToken": "YzNhMWU1ZDctOWIyZi00ZTZhLThjMGQtMmY0YjZhOGMwZTEyOjE3ODk2NDM2MDAwMDA6dGt0LWNoZWNrb3V0.ZXhhbXBsZS1zaWduYXR1cmU",
                    "reservedUntil": "2026-07-04T18:15:00.000Z",
                    "currency": "GBP",
                    "subtotalPennies": 22000,
                    "discountPennies": 2200,
                    "bookingFeePennies": 1535,
                    "totalPennies": 21335,
                    "quantityDiscount": null,
                    "promoDiscountPennies": 2200,
                    "paymentPlan": null,
                    "crossEventOffers": []
                  }
                }
              }
            }
          },
          "400": {
            "description": "`affiliate_required`: A release in the cart is affiliate-gated and no valid `affiliateCode` was sent.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "affiliate_required",
                    "message": "A release in the cart is affiliate-gated and no valid `affiliateCode` was sent."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`plan_unavailable`: The `paymentPlanId` is not open on every paid tier in the cart (free tiers are ignored).",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "plan_unavailable",
                    "message": "The `paymentPlanId` is not open on every paid tier in the cart (free tiers are ignored)."
                  }
                }
              }
            }
          },
          "410": {
            "description": "`cancelled`: The event has been cancelled.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "cancelled",
                    "message": "The event has been cancelled."
                  }
                }
              }
            }
          },
          "429": {
            "description": "`too_many_holds`: Too many live reservations on this event from the same connection (or the same app device). Show the message and let the buyer try again in a few minutes; a hold lapses in 15 minutes.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "too_many_holds",
                    "message": "Too many live reservations on this event from the same connection (or the same app device). Show the message and let the buyer try again in a few minutes; a hold lapses in 15 minutes."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/tickets_reserve_request___schema0"
                    },
                    "description": "The cart. One entry per release; up to 20 releases."
                  },
                  "promoCode": {
                    "description": "A promo code to apply. An unknown or inactive code fails the reserve with `invalid_promo` (400), an expired one with `expired_promo` (400) and a used-up one with `promo_used_up` (409): check it with the quote endpoint first.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema1"
                  },
                  "affiliateCode": {
                    "description": "An affiliate code, when the buyer arrived on an affiliate link. Credits the sale, reveals affiliate-gated tiers, and applies the percentage off the organiser gives buyers through that Ambassador, if any (see `affiliateDiscount`). An unknown code is ignored.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema2"
                  },
                  "artistId": {
                    "description": "The lineup artist the buyer arrived through, when your page came from an artist share link. Re-checked against the lineup server-side.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema3"
                  },
                  "paymentPlanId": {
                    "description": "A payment plan offer id from `paymentPlans` on every PAID tier in the cart (free tiers carry no offers and are ignored). Omit to pay in full. Refused with `plan_unavailable` (409) unless every paid tier lists it and it is still open.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema4"
                  },
                  "attribution": {
                    "description": "Where the sale came from, for the organiser's sales-channel report. Optional and PII-free. The flat fields are the LAST touch; `firstTouch` is the first.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema5"
                  },
                  "funnelSessionToken": {
                    "description": "The same opaque session token you send on funnel beacons, so the organiser's funnel report can join this checkout to the page views before it. Omit both, or send both.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema28"
                  },
                  "adConsent": {
                    "description": "Whether the buyer agreed to advertising measurement on your page: `true` when your cookie banner granted it, `false` when they refused. Grofomo sends the purchase to the organiser's Meta Pixel server-side (with a hashed email for matching) only when this is `true`; omitted or `false`, nothing is sent to Meta for this order. `checkout.js` reads it from your banner. Can be updated on details.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema29"
                  },
                  "deviceHandoff": {
                    "description": "Internal: a signed hand-off from the Grofomo mobile app. Leave it out.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema30"
                  },
                  "resumeUrl": {
                    "description": "The page on your site running this checkout. If the buyer abandons, Grofomo's abandoned-basket email sends them back here with `?basket=` and `?promo=`, so only send it from a page that honours both. Must be https, on one of the organiser's allowed domains, and (from a browser) on the same origin as the page making the request. Anything else is ignored, not refused: the email then follows the event's ticket link, or the hosted page. `checkout.js` sends it for you.",
                    "$ref": "#/components/schemas/tickets_reserve_request___schema31"
                  }
                },
                "required": [
                  "items"
                ]
              },
              "example": {
                "items": [
                  {
                    "releaseId": "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a14",
                    "quantity": 2
                  }
                ],
                "promoCode": "EARLYBIRD",
                "funnelSessionToken": "9d1f7c2a-3b6e-4a8d-9e0f-1c2b3a4d5e6f",
                "attribution": {
                  "channel": "social",
                  "utmSource": "instagram",
                  "referrer": "instagram.com"
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/tickets/orders/{checkoutToken}": {
      "patch": {
        "operationId": "tickets_details",
        "summary": "Buyer details and consent",
        "description": "Attach the buyer to the order: where the tickets go, and what they agreed to hear about. Required before pay or complete-free.\n\n**Print the wording we give you.** The `checkout` block on [ticket availability](/reference/events/tickets) carries three consent labels. Show `organiserEmail` beside a box that is ticked by default (the buyer is becoming the organiser's customer, so this is a soft opt-in) and send the result as `orgConsent.email` with `orgEmailBasis: \"soft_opt_in\"`. Show `organiserMessaging` beside an unticked box that needs a phone number, and send the one result as both `orgConsent.sms` and `orgConsent.whatsapp`. Show `platformEmail` beside its own box, ticked or not as `platformEmailDefaultTicked` says, and send the result as `platformConsent.email` with `platformEmailBasis` copied across. Then send the three strings back, verbatim, as `consentTextSnapshot` under the keys `organiser`, `messaging` and `platform`, with `formVersion` copied from the same block: that snapshot is the record of what was agreed to.\n\nA channel you did not ask about is omitted, not sent as `false`. Omitted leaves a returning buyer's standing choice alone; `false` withdraws it.\n\nCalling again replaces the details; it is safe to retry.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "checkoutToken",
            "in": "path",
            "required": true,
            "description": "The order's `checkoutToken` from the reserve response. It authorises this checkout only and expires a day after the reserve; keep it out of logs and analytics.",
            "schema": {
              "type": "string"
            },
            "example": "YzNhMWU1ZDctOWIyZi00ZTZhLThjMGQtMmY0YjZhOGMwZTEyOjE3ODk2NDM2MDAwMDA6dGt0LWNoZWNrb3V0.ZXhhbXBsZS1zaWduYXR1cmU"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "ok": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "`email_typo`: The email is almost certainly mistyped (`gmail.con`, `iclould.com`). The message names the address the buyer meant; show it by the email field so they can correct it.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "email_typo",
                    "message": "The email is almost certainly mistyped (`gmail.con`, `iclould.com`). The message names the address the buyer meant; show it by the email field so they can correct it."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`promo_customer_limit`: This email address has used the promo code as many times as it may.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "promo_customer_limit",
                    "message": "This email address has used the promo code as many times as it may."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "$ref": "#/components/schemas/tickets_details_request___schema0"
                      },
                      "firstName": {
                        "$ref": "#/components/schemas/tickets_details_request___schema1"
                      },
                      "lastName": {
                        "$ref": "#/components/schemas/tickets_details_request___schema2"
                      },
                      "phoneE164": {
                        "$ref": "#/components/schemas/tickets_details_request___schema3"
                      }
                    },
                    "required": [
                      "email"
                    ],
                    "description": "The buyer."
                  },
                  "orgConsent": {
                    "description": "What the buyer agreed to from the ORGANISER. Print `checkout.consent.organiserEmail` from the ticket feed beside a pre-ticked box (soft opt-in) and `organiserMessaging` beside an unticked one; send `sms` and `whatsapp` together from the messaging box.",
                    "$ref": "#/components/schemas/tickets_details_request___schema15"
                  },
                  "platformConsent": {
                    "description": "What the buyer agreed to from GROFOMO, asked separately. Print `checkout.consent.platformEmail` from the ticket feed beside its own box and send only `email`.",
                    "$ref": "#/components/schemas/tickets_details_request___schema15"
                  },
                  "orgEmailBasis": {
                    "default": "consent",
                    "description": "How the organiser email box was shown: `soft_opt_in` when it was pre-ticked (the wording we give you assumes this), `consent` when the buyer had to tick it.",
                    "$ref": "#/components/schemas/tickets_details_request___schema16"
                  },
                  "platformEmailBasis": {
                    "default": "consent",
                    "description": "How the Grofomo email box was shown. Send `checkout.platformEmailBasis` from the ticket feed.",
                    "$ref": "#/components/schemas/tickets_details_request___schema18"
                  },
                  "consentTextSnapshot": {
                    "description": "The exact wording the buyer saw, keyed `organiser`, `messaging` and `platform`. Send the strings you printed, verbatim: they are stored as the proof of consent.",
                    "$ref": "#/components/schemas/tickets_details_request___schema19"
                  },
                  "formVersion": {
                    "description": "Send `checkout.formVersion` from the ticket feed, so the stored consent names the wording it was given under.",
                    "$ref": "#/components/schemas/tickets_details_request___schema20"
                  },
                  "answers": {
                    "description": "Answers to the organiser's registration questions. The questions are not published on this API yet, so leave this out; the hosted ticket page collects them.",
                    "$ref": "#/components/schemas/tickets_details_request___schema21"
                  },
                  "locale": {
                    "description": "The buyer's BCP 47 locale, e.g. `en-GB`, for the confirmation email. Optional.",
                    "$ref": "#/components/schemas/tickets_details_request___schema23"
                  },
                  "adConsent": {
                    "description": "The buyer's advertising consent, as on reserve, for a banner answered after the tickets were reserved. The latest value sent wins; omit it to leave what reserve recorded.",
                    "$ref": "#/components/schemas/tickets_details_request___schema24"
                  },
                  "showNameToReferrer": {
                    "description": "Whether whoever shared the link the buyer came through (an artist, Ambassador or other affiliate) may see their first name and surname initial. Send `true` only when your checkout printed the notice that says so and the buyer did not tick the box to hide it; omit it otherwise, and the order stays anonymous to them. The latest value sent wins.",
                    "$ref": "#/components/schemas/tickets_details_request___schema25"
                  }
                },
                "required": [
                  "customer",
                  "orgConsent",
                  "platformConsent"
                ]
              },
              "example": {
                "customer": {
                  "email": "alex@example.com",
                  "firstName": "Alex",
                  "lastName": "Doe",
                  "phoneE164": "+447700900123"
                },
                "orgConsent": {
                  "email": true,
                  "sms": true,
                  "whatsapp": true
                },
                "platformConsent": {
                  "email": false
                },
                "orgEmailBasis": "soft_opt_in",
                "platformEmailBasis": "consent",
                "consentTextSnapshot": {
                  "organiser": "We'll email you about future Riot Promotions shows, presales and lineup drops. Untick if you'd rather not - unsubscribe anytime.",
                  "messaging": "Be first in line: on-sale alerts, presale codes and last-minute ticket drops from Riot Promotions by SMS or WhatsApp. Reply STOP anytime to opt out.",
                  "platform": "Grofomo runs this checkout and delivers your tickets. Tick to get occasional email picks of similar events on Grofomo. Unsubscribe anytime."
                },
                "formVersion": "storefront-web-3"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "tickets_order",
        "summary": "Order status",
        "description": "Everything a confirmation page needs after the purchase it just made: where the order is, its lines and totals read back from the server, any personal promo codes the buyer earned on the organiser's other events, and the buyer's own Ambassador code and reward ladder where the organiser runs one.\n\nAfter a card payment the order stays `reserved` until the payment is confirmed server-side, usually within a minute. Poll every few seconds until `orderStatus` reads `completed`, then tell the buyer their tickets are on their way; they arrive by email from Grofomo. Give up after a couple of minutes with a softer message: the confirmation email still arrives, and the buyer's card has not been charged twice.\n\nPrint the receipt from `order` rather than from what your page held in memory: it survives a payment redirect, and `shortId` is the reference printed on the tickets.\n\n`codes` is empty until the order is completed, and stays empty when the cart earned nothing. When a code is present, offer a link to the target event's ticket page with `?promo=<code>` so it is pre-filled; the same code is in the confirmation email. `ambassador` is null until the order completes, and stays null when the organiser has no programme or has automatic enrolment off.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "checkoutToken",
            "in": "path",
            "required": true,
            "description": "The order's `checkoutToken` from the reserve response. It authorises this checkout only and expires a day after the reserve; keep it out of logs and analytics.",
            "schema": {
              "type": "string"
            },
            "example": "YzNhMWU1ZDctOWIyZi00ZTZhLThjMGQtMmY0YjZhOGMwZTEyOjE3ODk2NDM2MDAwMDA6dGt0LWNoZWNrb3V0.ZXhhbXBsZS1zaWduYXR1cmU"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "orderStatus": {
                          "type": "string",
                          "description": "Where the order is. `reserved` while the hold is live (including after a card payment, until the payment is confirmed server-side, usually within a minute); `completed` once tickets are issued; `expired` when the hold ran out unpaid; `cancelled`, `refunded` or `partially_refunded` after the fact. Poll this after payment until it reads `completed`."
                        },
                        "codes": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/tickets_order___schema0"
                          },
                          "description": "Personal promo codes this order earned on other events. Empty until the order is `completed`, and empty forever when the cart earned none."
                        },
                        "order": {
                          "description": "The order's lines and totals, read back from the server: what a confirmation page should print rather than what it held in memory across a payment redirect.",
                          "$ref": "#/components/schemas/tickets_order___schema3"
                        },
                        "ambassador": {
                          "description": "The buyer's own Ambassador share code and reward ladder, once the order completed and the organiser runs a programme with automatic enrolment. Null otherwise.",
                          "$ref": "#/components/schemas/tickets_order___schema6"
                        }
                      },
                      "required": [
                        "orderStatus",
                        "codes"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "orderStatus": "completed",
                    "codes": [
                      {
                        "offerId": "e7c5a3b1-2d4f-4a6c-8e0b-3f5d7a9c1e24",
                        "name": "Winter warmer",
                        "targetEventName": "Winter Fest",
                        "targetEventSlug": "winter-fest",
                        "discountType": "percentage",
                        "discountValue": 1500,
                        "applicableReleaseIds": [],
                        "code": "SF-WINTER-7K3M",
                        "expiresAt": "2026-12-01T00:00:00.000Z"
                      }
                    ],
                    "order": {
                      "shortId": "T-3F9A2C",
                      "email": "alex@example.com",
                      "currency": "GBP",
                      "lines": [
                        {
                          "label": "Weekend camping ticket",
                          "quantity": 2,
                          "unitPricePennies": 9900,
                          "lineTotalPennies": 19800
                        }
                      ],
                      "subtotalPennies": 22000,
                      "discountPennies": 2200,
                      "quantityDiscountName": null,
                      "bookingFeePennies": 1535,
                      "totalPennies": 21335,
                      "paidTodayPennies": 21335,
                      "paymentPlan": null
                    },
                    "ambassador": {
                      "code": "SF-ALEX-9K2Q",
                      "shareUrl": "https://grfm.to/e/summer-fest/tickets?aff=SF-ALEX-9K2Q",
                      "qualifyingTickets": 0,
                      "tiers": [
                        {
                          "thresholdTickets": 2,
                          "tierName": null,
                          "title": "5 free drinks",
                          "description": null,
                          "fulfilmentInstructions": "At the festival bar"
                        },
                        {
                          "thresholdTickets": 4,
                          "tierName": "VIP",
                          "title": "VIP bar access",
                          "description": "All day, for you and a plus one",
                          "fulfilmentInstructions": null
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/tickets/orders/{checkoutToken}/pay": {
      "post": {
        "operationId": "tickets_pay",
        "summary": "Start payment",
        "description": "Create the payment for a detailed order and return what Stripe.js needs to take the card on your page: the PaymentIntent's `clientSecret` and the publishable key to initialise Stripe with. Mount a Payment Element with the secret and confirm it; the [selling tickets](/checkout) guide has the snippet.\n\nThe card form is Stripe's, rendered in an iframe on your page, so card numbers never touch your site or ours. The publishable key is Grofomo's platform key and is meant to be public; the client secret pays this one order and nothing else.\n\nCalling again returns the same secret while the payment is still open, so a page reload does not create a second charge. Once the buyer has confirmed, tickets are issued when the payment is confirmed server-side, usually within a minute: poll [order status](/reference/tickets/order) until it reads `completed`.\n\nOn a payment plan the amount is the deposit plus the booking fee; the card is saved for the instalments. Free orders are refused here (`nothing_to_pay`): use [complete free](/reference/tickets/complete-free).",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "checkoutToken",
            "in": "path",
            "required": true,
            "description": "The order's `checkoutToken` from the reserve response. It authorises this checkout only and expires a day after the reserve; keep it out of logs and analytics.",
            "schema": {
              "type": "string"
            },
            "example": "YzNhMWU1ZDctOWIyZi00ZTZhLThjMGQtMmY0YjZhOGMwZTEyOjE3ODk2NDM2MDAwMDA6dGt0LWNoZWNrb3V0.ZXhhbXBsZS1zaWduYXR1cmU"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "clientSecret": {
                          "type": "string",
                          "description": "The PaymentIntent client secret. Pass it to `stripe.elements({ clientSecret })` and confirm with `stripe.confirmPayment`. It only ever pays this one order."
                        },
                        "publishableKey": {
                          "type": "string",
                          "description": "The Stripe publishable key to initialise Stripe.js with. It is Grofomo's, not the organiser's, and it is meant to be public."
                        },
                        "paymentIntentId": {
                          "type": "string",
                          "description": "The Stripe PaymentIntent id, for your own records."
                        }
                      },
                      "required": [
                        "clientSecret",
                        "publishableKey",
                        "paymentIntentId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "clientSecret": "pi_3QbXk2Hn7v1Zq9Lm0aB1cD2e_secret_Fg3Hi4Jk5Lm6No7Pq8Rs9Tu0",
                    "publishableKey": "pk_live_51Hn7v1Zq9Lm0aB1cD2eFg3Hi4Jk5Lm6No7Pq8Rs9Tu0",
                    "paymentIntentId": "pi_3QbXk2Hn7v1Zq9Lm0aB1cD2e"
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`unavailable`: The organiser has not finished connecting Stripe.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unavailable",
                    "message": "The organiser has not finished connecting Stripe."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/tickets/orders/{checkoutToken}/complete-free": {
      "post": {
        "operationId": "tickets_complete-free",
        "summary": "Complete a free order",
        "description": "Finish an order whose `totalPennies` is zero: a free tier, or a code that discounted everything. Tickets are issued and the confirmation email sent at once, so there is nothing to poll.\n\nRefused with `payment_required` when the order has anything to pay or is on a payment plan; that order goes through [pay](/reference/tickets/pay). Safe to retry: a second call returns the same result.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "checkoutToken",
            "in": "path",
            "required": true,
            "description": "The order's `checkoutToken` from the reserve response. It authorises this checkout only and expires a day after the reserve; keep it out of logs and analytics.",
            "schema": {
              "type": "string"
            },
            "example": "YzNhMWU1ZDctOWIyZi00ZTZhLThjMGQtMmY0YjZhOGMwZTEyOjE3ODk2NDM2MDAwMDA6dGt0LWNoZWNrb3V0.ZXhhbXBsZS1zaWduYXR1cmU"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "completed": {
                          "type": "boolean",
                          "const": true,
                          "description": "The free order is finalized: tickets issued and the confirmation email on its way. Replay-safe - retrying returns this again."
                        }
                      },
                      "required": [
                        "completed"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "completed": true
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No order for that `checkoutToken` on this event (or the token has expired), or no event with that slug on this surface."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`payment_required`: The order has something to pay. Use pay.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "payment_required",
                    "message": "The order has something to pay. Use pay."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/tickets/funnel": {
      "post": {
        "operationId": "tickets_funnel",
        "summary": "Funnel beacon",
        "description": "Optional. The organiser's sales report shows a funnel from viewing tickets to buying them; the reserve and the payment write their own steps, but the top of the funnel only exists if your page reports it.\n\nMint an opaque token per visit (a UUID is fine), send `event_viewed` when the ticket list renders and `ticket_selected` the first time a quantity goes above zero, and pass the same token as `funnelSessionToken` on reserve so the steps join up. Send both or neither: beacons without the reserve token, or the reverse, show a funnel that never converts.\n\nFire and forget: the response is always `{ ok: true }`, and a failure must never block a checkout. `navigator.sendBeacon` or `fetch` with `keepalive` both work.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "ok": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body did not match the schema.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "bad_request",
                    "message": "The body did not match the schema."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "step": {
                    "type": "string",
                    "enum": [
                      "event_viewed",
                      "ticket_selected",
                      "checkout_started",
                      "purchased"
                    ],
                    "description": "Send `event_viewed` when the ticket list renders and `ticket_selected` the first time a quantity goes above zero. `checkout_started` and `purchased` are recorded server-side from the reserve and the payment; do not send them."
                  },
                  "sessionToken": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 64,
                    "description": "An opaque per-visit token you mint (a UUID is fine), kept for the visit and sent again as `funnelSessionToken` on reserve. Not a credential and never shown to anyone."
                  },
                  "orderPublicId": {
                    "description": "The order's `publicId` once one exists. Optional.",
                    "$ref": "#/components/schemas/tickets_funnel_request___schema0"
                  },
                  "deviceHandoff": {
                    "description": "Internal: a signed hand-off from the Grofomo mobile app. Leave it out.",
                    "$ref": "#/components/schemas/tickets_funnel_request___schema1"
                  }
                },
                "required": [
                  "step",
                  "sessionToken"
                ]
              },
              "example": {
                "step": "event_viewed",
                "sessionToken": "9d1f7c2a-3b6e-4a8d-9e0f-1c2b3a4d5e6f"
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/merch": {
      "get": {
        "operationId": "events_merch",
        "summary": "Merch catalogue",
        "description": "The event's merch catalogue: each product with its colours, sizes, print zones and price.\n\nProducts carry the plain garment image plus the event logo to overlay, so you can render a preview without anyone shipping you mock-ups.",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventSlug": {
                          "type": "string"
                        },
                        "logoUrl": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_merch___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The logo to overlay on each print zone, so you can render previews without any mock-ups."
                        },
                        "deliveryPennies": {
                          "default": 0,
                          "description": "Flat delivery fee in minor units, for shipped orders. 0 means free, or collection only.",
                          "$ref": "#/components/schemas/events_merch___schema1"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "value": {
                                "type": "string",
                                "description": "Product id. Matches the option value on a `merch_items` form field."
                              },
                              "name": {
                                "type": "string"
                              },
                              "garmentType": {
                                "type": "string",
                                "description": "What the garment is, e.g. \"Heavyweight cotton t-shirt\"."
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "pricePennies": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "description": "Unit price in minor units, so 2500 is £25.00."
                              },
                              "currency": {
                                "type": "string",
                                "description": "ISO 4217 code, e.g. \"GBP\"."
                              },
                              "sizes": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/events_merch___schema2"
                                },
                                "description": "Available sizes, in display order."
                              },
                              "colours": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/events_merch___schema3"
                                },
                                "description": "Colourways. Each carries the PLAIN garment image; overlay the event logo yourself."
                              },
                              "printZones": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/events_merch___schema9"
                                },
                                "description": "Where to place the logo on each side. All coordinates are 0-1 fractions, so a preview scales freely."
                              },
                              "outline": {
                                "description": "Traced garment silhouette (0-1 points) driving the `clip` mask. Absent means use a default tee shape.",
                                "$ref": "#/components/schemas/events_merch___schema13"
                              }
                            },
                            "required": [
                              "value",
                              "name",
                              "garmentType",
                              "description",
                              "pricePennies",
                              "currency",
                              "sizes",
                              "colours",
                              "printZones"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "eventSlug",
                        "logoUrl",
                        "deliveryPennies",
                        "items"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventSlug": "summer-fest",
                    "logoUrl": "https://cdn.grofomo.com/summer-fest/brand/logo.svg",
                    "deliveryPennies": 495,
                    "items": [
                      {
                        "value": "8e0d2f4a-6c8b-4f17-9e2a-3b5d7f9c1e71",
                        "name": "Summer Fest 2026 Tee",
                        "garmentType": "Heavyweight cotton t-shirt",
                        "description": "Organic cotton, boxy fit, printed in Bristol.",
                        "pricePennies": 2500,
                        "currency": "GBP",
                        "sizes": [
                          "S",
                          "M",
                          "L",
                          "XL",
                          "XXL"
                        ],
                        "colours": [
                          {
                            "label": "Bone",
                            "hex": "#FAFAF7",
                            "frontImageUrl": "https://cdn.grofomo.com/summer-fest/merch/tee-bone-front.png",
                            "backImageUrl": "https://cdn.grofomo.com/summer-fest/merch/tee-bone-back.png",
                            "logoColor": "black",
                            "outOfStock": false
                          },
                          {
                            "label": "Carbon",
                            "hex": "#080808",
                            "frontImageUrl": "https://cdn.grofomo.com/summer-fest/merch/tee-carbon-front.png",
                            "backImageUrl": "https://cdn.grofomo.com/summer-fest/merch/tee-carbon-back.png",
                            "logoColor": "white",
                            "outOfStock": true
                          }
                        ],
                        "printZones": [
                          {
                            "side": "front",
                            "x": 0.5,
                            "y": 0.34,
                            "scale": 0.32,
                            "recolor": true,
                            "logoColor": "auto",
                            "clip": true
                          },
                          {
                            "side": "back",
                            "x": 0.5,
                            "y": 0.28,
                            "scale": 0.55,
                            "recolor": true,
                            "logoColor": "auto",
                            "clip": true
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/subscribe": {
      "post": {
        "operationId": "events_subscribe",
        "summary": "Mailing-list signup",
        "description": "Post an email address straight into the organiser's mailing list, so your site can host its own signup block rather than embedding a hosted form.\n\n**Consent is the organiser's to collect.** Only submit an address when the visitor has actively asked to hear from them. This endpoint records a signup, it does not make one lawful.\n\n**Double opt-in.** The signup is saved at once, but the address is not on the list until the visitor opens the confirmation email we send them, so tell them to check their inbox (`verification.email` is `sent`). Three follow-up bodies use the same endpoint, keyed by the returned `submissionId`: `{ submissionId, phone, channel? }` attaches a mobile number and, where phone verification is on, sends it a code (`verification.phone` is `sent`) by text, or by WhatsApp when `channel` is `\"whatsapp\"`; a WhatsApp request the number cannot take falls back to a text, and `verification.phoneChannel` says which one went, so print that rather than what was asked for. `{ submissionId, code }` types the code back and answers with an `outcome` of `verified`, `wrong_code` or `expired`; `{ submissionId, resend: \"email\" | \"code\", channel? }` sends either again, three times per ten minutes, the code by the same choice of channel (the reply's `channel` is the one it went by). Follow-ups work for an hour after the signup.\n\n**Bot check.** Render the organiser's own Cloudflare Turnstile widget in your form and send its token as `turnstileToken`. The organiser creates the widget in their Cloudflare account for their website's domains and saves its keys in Grofomo under Settings, Developers; the token must come from a page on the domain the request is sent from. Once the organiser has saved a widget, a call without a valid token is refused with `400 turnstile_failed`; until then no token is needed. Your publishable key, the organiser's domain allowlist and a rate limit gate it too.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "ok": true,
                    "submissionId": "a7b8c9d0-e1f2-4345-8678-9abcdef01234",
                    "verification": {
                      "email": "sent",
                      "phone": "not_needed",
                      "phoneHint": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The email address was not valid.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "bad_request",
                    "message": "The email address was not valid."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "email": "fan@example.com",
                "name": "Alex Doe"
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/prelaunch": {
      "get": {
        "operationId": "prelaunch_form",
        "summary": "Prelaunch form",
        "description": "The prelaunch form an organiser has published for the event in the path (the event being registered for): the copy, which fields to ask, and the exact consent wording to print beside them. The hosted page at `events.grofomo.com/prelaunch/{slug}` renders the same thing; use this to render it in your own design instead.\n\n**Print the consent wording verbatim.** Registering is the email consent, so `consent.email` goes beside the submit button; `consent.post` labels the postal checkbox. The register endpoint snapshots this wording as the proof of consent, so a paraphrase makes the record wrong.\n\n**`consent.messaging` is rendered two ways, and `fields.phone.consentMode` says which.** Under `checkbox` it is the label for a tick box beside the number, and you send the result as `consentSms`. Under `implied` there is no tick: print it as a NOTICE immediately beside the number field and send no `consentSms` at all, because submitting an optional number and confirming the texted code is itself the consent. Put an `implied` notice anywhere else, in a footer or behind a link, and you have broken the thing that makes it valid, which is that one deliberate act covers one channel.\n\n**Never make the number required.** `fields.phone.required` is always `false` and is a promise rather than a formality. A mandatory number would make the messaging consent a condition of registering when it is not needed to register, and a consent that is not freely given is not consent, so the list you build on it is not usable.\n\n404 `not_found` when the organiser has no published prelaunch form for the event. `closed` turns true once `closesAt` has passed, after which registrations are refused with 410 `closed`.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventSlug": {
                          "type": "string",
                          "description": "The event being registered for. Post registrations to the same slug."
                        },
                        "eventName": {
                          "type": "string"
                        },
                        "hostEventName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organiserName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "headline": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bodyText": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bodyDoc": {
                          "anyOf": [
                            {},
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "imageUrl": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ctaLabel": {
                          "type": "string",
                          "description": "Submit button text."
                        },
                        "successMessage": {
                          "type": "string",
                          "description": "What to show once the registration is confirmed; the register response repeats it."
                        },
                        "closesAt": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/prelaunch_form___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "ISO instant after which registrations are refused (410 `closed`)."
                        },
                        "closed": {
                          "type": "boolean"
                        },
                        "privacyPolicyUrl": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/prelaunch_form___schema1"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The ORGANISER's own privacy notice, which they set in their Grofomo legal settings and attest to. Link it beside the consent wording: they are the controller for what this form collects, so Grofomo's policy does not cover it. Null only where they have not set one, which the console blocks for a published form."
                        },
                        "formVersion": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "object",
                          "properties": {
                            "firstName": {
                              "type": "object",
                              "properties": {
                                "required": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "required"
                              ],
                              "additionalProperties": false
                            },
                            "email": {
                              "type": "object",
                              "properties": {
                                "required": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "required"
                              ],
                              "additionalProperties": false
                            },
                            "phone": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "channels": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "sms",
                                      "whatsapp"
                                    ]
                                  }
                                },
                                "required": {
                                  "type": "boolean",
                                  "const": false
                                },
                                "consentMode": {
                                  "type": "string",
                                  "enum": [
                                    "checkbox",
                                    "implied"
                                  ]
                                }
                              },
                              "required": [
                                "enabled",
                                "channels",
                                "required",
                                "consentMode"
                              ],
                              "additionalProperties": false
                            },
                            "post": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "firstName",
                            "email",
                            "phone",
                            "post"
                          ],
                          "additionalProperties": false
                        },
                        "consent": {
                          "type": "object",
                          "properties": {
                            "email": {
                              "type": "string"
                            },
                            "messaging": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "post": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "email",
                            "messaging",
                            "post"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "eventSlug",
                        "eventName",
                        "hostEventName",
                        "organiserName",
                        "headline",
                        "bodyText",
                        "bodyDoc",
                        "imageUrl",
                        "ctaLabel",
                        "successMessage",
                        "closesAt",
                        "closed",
                        "privacyPolicyUrl",
                        "formVersion",
                        "fields",
                        "consent"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventSlug": "twisted-roots-2027",
                    "eventName": "Twisted Roots 2027",
                    "hostEventName": "Twisted Roots 2026",
                    "organiserName": "EVA Events",
                    "headline": "Be first for 2027",
                    "bodyText": "Register now for tickets, presales and news.",
                    "bodyDoc": null,
                    "imageUrl": null,
                    "ctaLabel": "Email me about tickets",
                    "successMessage": "You're on the list. We'll email you with tickets, presales and news.",
                    "closesAt": null,
                    "closed": false,
                    "privacyPolicyUrl": "https://www.evaevents.co.uk/privacy",
                    "formVersion": "prelaunch_form_v5",
                    "fields": {
                      "firstName": {
                        "required": true
                      },
                      "email": {
                        "required": true
                      },
                      "phone": {
                        "enabled": true,
                        "channels": [
                          "sms",
                          "whatsapp"
                        ],
                        "required": false,
                        "consentMode": "checkbox"
                      },
                      "post": {
                        "enabled": false
                      }
                    },
                    "consent": {
                      "email": "Registering signs you up for email updates about Twisted Roots 2027, plus other events from EVA Events. Unsubscribe anytime.",
                      "messaging": "Be first in line: updates about Twisted Roots 2027, plus other events from EVA Events, by SMS or WhatsApp. Reply STOP anytime to opt out.",
                      "post": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/prelaunch/register": {
      "post": {
        "operationId": "prelaunch_register",
        "summary": "Prelaunch registration",
        "description": "Post a registration for the event in the path from a form you rendered with the [prelaunch form](/reference/prelaunch/form) endpoint. `firstName` and `email` are required, and at least one consent must be granted. Send `consentEmail: true`: registering is the email consent, under the wording you printed. `consentPost` when the form asks for post.\n\n**How to send a number depends on `fields.phone.consentMode` from the form endpoint.** Under `checkbox`, `phone` and `consentSms` go together and neither is accepted without the other. Under `implied` there is no tick to send: post the `phone` alone and it IS the request, so the same body that earns a 400 `phone_without_sms_consent` on a checkbox form succeeds on an implied one. A `consentSms` with no number is refused either way, because there is nothing for it to apply to.\n\n**Double opt-in.** The registration is saved at once, but nothing is granted until it is proven: the email by the confirmation link we send (`verification.email` is `sent`; tell the person to check their inbox), a mobile number by the SMS code we text (`verification.phone` is `sent`; show a code box and post it to the [verify](/reference/prelaunch/verify) endpoint with `verification.token`). A person who already proved that address or number is registered on the spot (`not_needed`). The `prelaunch.registration` webhook fires each time a channel is proven, carrying the consents as they stand and naming the channel just confirmed.\n\n**Bot check.** Render the organiser's own Cloudflare Turnstile widget in your form and send its token as `turnstileToken`. The organiser creates the widget in their Cloudflare account for their website's domains and saves its keys in Grofomo under Settings, Developers; the token must come from a page on the domain the request is sent from. Once the organiser has saved a widget, a call without a valid token is refused with `400 turnstile_failed`; until then no token is needed. Your publishable key, the organiser's domain allowlist and a rate limit gate it too. Refused with 410 `closed` once the form's `closesAt` has passed.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "successMessage": {
                          "type": "string"
                        },
                        "deviceLinked": {
                          "type": "boolean"
                        },
                        "verification": {
                          "type": "object",
                          "properties": {
                            "token": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string",
                              "enum": [
                                "sent",
                                "not_needed",
                                "failed"
                              ]
                            },
                            "phone": {
                              "type": "string",
                              "enum": [
                                "sent",
                                "not_needed",
                                "failed",
                                "unavailable"
                              ]
                            },
                            "phoneHint": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "token",
                            "email",
                            "phone",
                            "phoneHint"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "successMessage",
                        "deviceLinked",
                        "verification"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "successMessage": "You're on the list. We'll email you with tickets, presales and news.",
                    "deviceLinked": false,
                    "verification": {
                      "token": "<verification token>",
                      "email": "sent",
                      "phone": "sent",
                      "phoneHint": "••••••456"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`phone_without_sms_consent`: A number was sent without the messaging tick (or the tick without a number).",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "phone_without_sms_consent",
                    "message": "A number was sent without the messaging tick (or the tick without a number)."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          },
          "410": {
            "description": "`closed`: The form closed at `closesAt`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "closed",
                    "message": "The form closed at `closesAt`."
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: More than ten registrations a minute from one address.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "rate_limited",
                    "message": "More than ten registrations a minute from one address."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "firstName": "Alex",
                "email": "alex@example.com",
                "consentEmail": true,
                "phone": "07400 123456",
                "consentSms": true
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/prelaunch/verify": {
      "post": {
        "operationId": "prelaunch_verify",
        "summary": "Prelaunch verification",
        "description": "Finish a registration's double opt-in with the `verification.token` the register response returned. `action` is one of `check_code` (with `code`), `resend_email` or `resend_code`. Wrong and expired codes come back as an `outcome`, not an error, so ask again; too many wrong codes is 429 `rate_limited`, after which a resend issues a fresh one. Resends are limited to three per registration per ten minutes.\n\nThe confirmation link in the email lands on our hosted confirm page, so you never build that half.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "verified",
                            "already_verified",
                            "sent",
                            "wrong_code",
                            "expired"
                          ]
                        },
                        "successMessage": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "outcome",
                        "successMessage"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "outcome": "verified",
                    "successMessage": "You're on the list. We'll email you with tickets, presales and news."
                  }
                }
              }
            }
          },
          "400": {
            "description": "`nothing_pending`: There is no number to verify on this registration.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "nothing_pending",
                    "message": "There is no number to verify on this registration."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          },
          "410": {
            "description": "`invalid_token`: The verification token has expired (24 hours). Register again.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "invalid_token",
                    "message": "The verification token has expired (24 hours). Register again."
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many wrong codes, or too many resends.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many wrong codes, or too many resends."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "action": "check_code",
                "token": "<verification token>",
                "code": "123456"
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/ambassadors": {
      "get": {
        "operationId": "events_ambassadors",
        "summary": "Ambassador programme",
        "description": "The event's Ambassador programme as the organiser runs it in Grofomo: the reward ladder, the rules, whether every ticket buyer is enrolled automatically, and whether the partner application form is open.\n\nBuild your \"bring your mates\" page on this rather than copying the tiers into it: the organiser edits the programme in Grofomo and the page follows within a minute. [`ambassadors.js`](/ambassadors) renders all of it for you.\n\n`programme` is **null** until the organiser publishes one with at least one reward, and while they have it switched off for this event. Keep your own copy on the page for that case; the drop-in does exactly that.\n\nTiers are **cumulative**: an Ambassador who reaches the 10-ticket tier keeps everything below it. Each tier carries `offer` and `prize` in Grofomo's wording, and the raw `thresholdTickets` and `rewards` to write your own (\"Bring 10 mates\" rather than \"Sell 10 tickets\").",
        "tags": [
          "Tickets & merch"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventSlug": {
                          "type": "string",
                          "description": "The event's current slug (an old one still resolves)."
                        },
                        "eventName": {
                          "type": "string"
                        },
                        "programme": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_ambassadors___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The published programme. Null while the organiser has none, has it in draft, has switched it off for this event, or has not added a reward yet."
                        },
                        "automaticEnrolment": {
                          "type": "boolean",
                          "description": "True when every ticket buyer becomes an Ambassador automatically, with nothing to sign up for."
                        },
                        "ticketsUrl": {
                          "type": "string",
                          "description": "The event's Grofomo ticket page, where a buyer is enrolled."
                        },
                        "partnerApplications": {
                          "type": "object",
                          "properties": {
                            "open": {
                              "$ref": "#/components/schemas/events_ambassadors___schema10"
                            },
                            "estimatedTicketsOptions": {
                              "$ref": "#/components/schemas/events_ambassadors___schema11"
                            },
                            "audienceReachOptions": {
                              "$ref": "#/components/schemas/events_ambassadors___schema13"
                            }
                          },
                          "required": [
                            "open",
                            "estimatedTicketsOptions",
                            "audienceReachOptions"
                          ],
                          "additionalProperties": false,
                          "description": "The form for promoters with an audience, who want a cash rate rather than the rewards. Approved applicants become commission partners."
                        }
                      },
                      "required": [
                        "eventSlug",
                        "eventName",
                        "programme",
                        "automaticEnrolment",
                        "ticketsUrl",
                        "partnerApplications"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventSlug": "summer-fest",
                    "eventName": "Summer Fest 2026",
                    "programme": {
                      "name": "Summer Fest Ambassadors",
                      "description": "Bring your mates and the bigger your group, the more we give back on the night.",
                      "rules": [
                        "Buying a ticket makes you an Ambassador. There is nothing to join and nothing to pay.",
                        "A mate counts when their ticket is bought through your own link, right up to the day of the show.",
                        "Rewards add up. Every reward you reach is yours to keep.",
                        "Collect your rewards at the bar with the Grofomo app. Bring ID."
                      ],
                      "tiers": [
                        {
                          "thresholdTickets": 2,
                          "name": "Crew",
                          "prize": "2 drinks",
                          "offer": "Sell 2 tickets, get 2 drinks",
                          "rewards": [
                            {
                              "title": "2 free drinks",
                              "description": null,
                              "rewardType": "drink",
                              "quantity": 2,
                              "fulfilmentInstructions": "At any bar, with the Grofomo app"
                            }
                          ]
                        },
                        {
                          "thresholdTickets": 5,
                          "name": "Headliner",
                          "prize": "a meal",
                          "offer": "Sell 5 tickets, get a meal",
                          "rewards": [
                            {
                              "title": "Street food voucher",
                              "description": "Any trader on the main field.",
                              "rewardType": "food",
                              "quantity": 1,
                              "fulfilmentInstructions": null
                            }
                          ]
                        },
                        {
                          "thresholdTickets": 10,
                          "name": "Legend",
                          "prize": "your ticket refunded",
                          "offer": "Sell 10 tickets, get your ticket refunded",
                          "rewards": [
                            {
                              "title": "Your ticket refunded",
                              "description": "One standard ticket at the price you paid, refunded after the show.",
                              "rewardType": "ticket_refund",
                              "quantity": 1,
                              "fulfilmentInstructions": null
                            }
                          ]
                        }
                      ]
                    },
                    "automaticEnrolment": true,
                    "ticketsUrl": "https://grfm.to/e/summer-fest/tickets",
                    "partnerApplications": {
                      "open": true,
                      "estimatedTicketsOptions": [
                        {
                          "value": "under_10",
                          "label": "Under 10"
                        },
                        {
                          "value": "10_25",
                          "label": "10–25"
                        },
                        {
                          "value": "25_50",
                          "label": "25–50"
                        },
                        {
                          "value": "50_plus",
                          "label": "50+"
                        }
                      ],
                      "audienceReachOptions": [
                        {
                          "value": "under_1k",
                          "label": "Under 1k"
                        },
                        {
                          "value": "1k_5k",
                          "label": "1k–5k"
                        },
                        {
                          "value": "5k_20k",
                          "label": "5k–20k"
                        },
                        {
                          "value": "20k_plus",
                          "label": "20k+"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/ambassadors/applications": {
      "post": {
        "operationId": "events_ambassadors-apply",
        "summary": "Apply to be a partner",
        "description": "For people with a following who want a cash rate for every ticket their crew brings, rather than the rewards. The application lands in the organiser's queue in Grofomo beside ones from the affiliate portal. When they approve it, the applicant becomes a commission partner and is emailed their link and a way to get paid.\n\nCheck `partnerApplications.open` on [the programme](/reference/events/ambassadors) first and hide the form when it is false: a submission is then refused with `applications_closed`.\n\nNothing is emailed to the address given until the organiser acts on the application, so there is no confirmation step to build. Sending again from the same email updates a pending application rather than adding another, and the answer is always `received`, whatever happened before.\n\nInclude an empty, visually hidden `website` field in your form and send whatever is in it. People never fill it; a submission that does is dropped as a bot. There is no Turnstile widget to render.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "const": "received",
                          "description": "Always `received`, whether this is a new application or an update to one already sent, so the form cannot be used to find out who has applied."
                        }
                      },
                      "required": [
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "status": "received"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body did not match the schema: a name and a valid email are required, and the two bands take only the listed values.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "bad_request",
                    "message": "The body did not match the schema: a name and a valid email are required, and the two bands take only the listed values."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`applications_closed`: The organiser is not taking partner applications for this event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "applications_closed",
                    "message": "The organiser is not taking partner applications for this event."
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many applications from this address, or too many waiting for the organiser to review. Try again later.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many applications from this address, or too many waiting for the organiser to review. Try again later."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "description": "Their name."
                  },
                  "email": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 320,
                    "description": "Where the organiser replies. Approval is sent here."
                  },
                  "phone": {
                    "description": "Mobile number, optional.",
                    "$ref": "#/components/schemas/events_ambassadors_apply_request___schema0"
                  },
                  "instagram": {
                    "description": "Instagram handle or profile URL, optional.",
                    "$ref": "#/components/schemas/events_ambassadors_apply_request___schema1"
                  },
                  "estimatedTickets": {
                    "description": "One of `estimatedTicketsOptions[].value`, optional.",
                    "$ref": "#/components/schemas/events_ambassadors_apply_request___schema2"
                  },
                  "audienceReach": {
                    "description": "One of `audienceReachOptions[].value`, optional.",
                    "$ref": "#/components/schemas/events_ambassadors_apply_request___schema3"
                  },
                  "message": {
                    "description": "Anything else they want the organiser to know, optional.",
                    "$ref": "#/components/schemas/events_ambassadors_apply_request___schema4"
                  },
                  "website": {
                    "description": "Leave this out. A hidden form field people never fill; a submission that fills it is dropped as a bot.",
                    "$ref": "#/components/schemas/events_ambassadors_apply_request___schema5"
                  }
                },
                "required": [
                  "name",
                  "email"
                ]
              },
              "example": {
                "name": "Sam Rivera",
                "email": "sam@example.com",
                "phone": "07400 123456",
                "instagram": "@samscrew",
                "estimatedTickets": "25_50",
                "audienceReach": "5k_20k",
                "website": ""
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/carer-tickets": {
      "get": {
        "operationId": "events_carer-tickets",
        "summary": "Carer tickets",
        "description": "Some attendees need a carer with them. When the organiser has switched carer tickets on, the carer applies with the attendee's order number and a document that shows they are a carer, and the organiser approves or denies it in Grofomo. Approval emails the carer a free ticket in the attendee's own order, so the door checks the two in together.\n\nThis is the form's configuration: whether it is open, the organiser's own note for the top of the page, what counts as proof, the consent line to show beside the upload, and the upload limits. The form itself is three calls: [match the order](/reference/events/carer-match), [upload the proof](/reference/events/carer-proof-upload), then [apply](/reference/events/carer-apply).\n\nHide the form when `open` is false. Show `acceptedProof` as a list and `consent.text` word for word: the carer is agreeing to the organiser seeing a sensitive document, and Grofomo records which wording they saw.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventSlug": {
                          "type": "string",
                          "description": "The event's current slug (an old one still resolves)."
                        },
                        "eventName": {
                          "type": "string"
                        },
                        "open": {
                          "type": "boolean",
                          "description": "Whether the organiser is taking carer applications for this event. Hide the form when false: a submission is refused."
                        },
                        "note": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_carer_tickets___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The organiser's own words for the top of the form, e.g. which proof they accept, or null."
                        },
                        "maxPerOrder": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "description": "How many carer tickets one order may hold."
                        },
                        "acceptedProof": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_carer_tickets___schema1"
                          },
                          "description": "What counts as proof, one item per entry. Render as a list."
                        },
                        "consent": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "$ref": "#/components/schemas/events_carer_tickets___schema2"
                            },
                            "text": {
                              "$ref": "#/components/schemas/events_carer_tickets___schema3"
                            }
                          },
                          "required": [
                            "version",
                            "text"
                          ],
                          "additionalProperties": false,
                          "description": "The line the carer agrees to when they upload their proof."
                        },
                        "proof": {
                          "type": "object",
                          "properties": {
                            "mimeTypes": {
                              "$ref": "#/components/schemas/events_carer_tickets___schema4"
                            },
                            "maxBytes": {
                              "$ref": "#/components/schemas/events_carer_tickets___schema6"
                            }
                          },
                          "required": [
                            "mimeTypes",
                            "maxBytes"
                          ],
                          "additionalProperties": false,
                          "description": "Limits for the proof upload."
                        }
                      },
                      "required": [
                        "eventSlug",
                        "eventName",
                        "open",
                        "note",
                        "maxPerOrder",
                        "acceptedProof",
                        "consent",
                        "proof"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventSlug": "summer-fest",
                    "eventName": "Summer Fest 2026",
                    "open": true,
                    "note": "Carer tickets are free for anyone supporting a ticket holder who could not attend without them. We usually reply within three working days.",
                    "maxPerOrder": 1,
                    "acceptedProof": [
                      "A carer card or carer ID (for example from Carers UK, a local carers centre or a Carer Card scheme)",
                      "A letter awarding Carer's Allowance, or the middle or higher rate of DLA, PIP or Attendance Allowance to the person you support",
                      "A Nimbus Access Card with the +1 symbol",
                      "A letter from a GP, social worker or support organisation confirming you are a carer"
                    ],
                    "consent": {
                      "version": "carer-proof-2026-09",
                      "text": "The organiser will see the document you upload, only to decide this application. It is deleted 30 days after their decision. Please do not send a passport, driving licence or any other government ID: a carer card, a benefit letter or a letter from a support organisation is all that is needed."
                    },
                    "proof": {
                      "mimeTypes": [
                        "image/jpeg",
                        "image/png",
                        "image/webp",
                        "application/pdf"
                      ],
                      "maxBytes": 15728640
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/carer-applications/match": {
      "post": {
        "operationId": "events_carer-match",
        "summary": "Match a carer to an order",
        "description": "Step one of the carer form. The order number is the `T-XXXXXX` code on the attendee's ticket email; with it the carer gives the attendee's email or surname, and the answer is the attendees on that order who can have a carer, each with an opaque `attendeeKey` for the application step. Most orders hold one attendee; on a group order show the names and let the carer pick.\n\nEvery miss is the same `no_match`, whether the order does not exist, belongs to another event, was cancelled, or the email or surname did not agree. A form that told them apart would let a stranger enumerate order numbers, so do not try to be more specific than the message.\n\n`carerSlotsLeft` is zero when the order already has a carer ticket or an application waiting; say so rather than sending an application that will be refused.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "attendees": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_carer_match___schema0"
                          },
                          "description": "The attendees on that order who can have a carer, in the order they were bought. One entry on most orders."
                        }
                      },
                      "required": [
                        "attendees"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "attendees": [
                      {
                        "attendeeKey": "ZXZlbnQtaWR8dGlja2V0LWlkOjE3ODk2NDM2MDAwMDA6Y2FyZXItYXR0ZW5kZWU.ZXhhbXBsZS1zaWduYXR1cmU",
                        "firstName": "Jane",
                        "ticketTypeName": "Weekend Camping",
                        "carerSlotsLeft": 1
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body did not match the schema: an order number and the attendee's email or surname are required.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "bad_request",
                    "message": "The body did not match the schema: an order number and the attendee's email or surname are required."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`no_match`: The order number, email or surname did not agree with an order for this event with a tier that can have a carer.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "no_match",
                    "message": "The order number, email or surname did not agree with an order for this event with a tier that can have a carer."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`applications_closed`: The organiser is not taking carer applications for this event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "applications_closed",
                    "message": "The organiser is not taking carer applications for this event."
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many lookups from this address, or for this event. Try again later.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many lookups from this address, or for this event. Try again later."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderNumber": {
                    "$ref": "#/components/schemas/events_carer_match_request___schema0"
                  },
                  "attendeeEmail": {
                    "$ref": "#/components/schemas/events_carer_match_request___schema1"
                  },
                  "attendeeSurname": {
                    "$ref": "#/components/schemas/events_carer_match_request___schema3"
                  }
                },
                "required": [
                  "orderNumber"
                ]
              },
              "example": {
                "orderNumber": "T-4K7Q2M",
                "attendeeEmail": "jane@example.com",
                "attendeeSurname": ""
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/carer-applications/proof-uploads": {
      "post": {
        "operationId": "events_carer-proof-upload",
        "summary": "Upload carer proof",
        "description": "Step two of the carer form. Send the file's name, type and size and you get a one-shot URL to PUT the bytes to (with `Content-Type` set to the file's type and the header `x-upsert: true`), plus a `proofToken` naming the upload for the application step. The bytes go straight to storage, so there is no body limit to work around and nothing is held by the API.\n\nThe upload is not trusted until the application step: the document is then locked against the upload URL, its first bytes checked against the type you declared, location and camera metadata stripped from images, and only then recorded. A file that fails is deleted and the application refused with `invalid_file`.\n\nAccepted types and the size limit come from [carer tickets](/reference/events/carer-tickets) (`proof.mimeTypes`, `proof.maxBytes`). Check them before uploading so a phone photo that is too large fails on the form, not after the wait.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "proofToken": {
                          "type": "string",
                          "description": "An opaque token for this upload, valid for an hour. Send it as `proofToken` on the application once the PUT has finished."
                        },
                        "uploadUrl": {
                          "type": "string",
                          "description": "PUT the file's bytes here, with `Content-Type` set to the file's type."
                        }
                      },
                      "required": [
                        "proofToken",
                        "uploadUrl"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "proofToken": "ZXZlbnQtaWR8aW1hZ2UvanBlZ3xvcmcvZXZlbnQvdXBsb2FkLmpwZzoxNzg5NjQzNjAwMDAwOmNhcmVyLXByb29m.ZXhhbXBsZS1zaWduYXR1cmU",
                    "uploadUrl": "https://unfdpucpvqglrmtbbisw.supabase.co/storage/v1/object/upload/sign/carer-proofs/org/event/upload.jpg?token=example"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body did not match the schema: a file name, type and size are required.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "bad_request",
                    "message": "The body did not match the schema: a file name, type and size are required."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`applications_closed`: The organiser is not taking carer applications for this event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "applications_closed",
                    "message": "The organiser is not taking carer applications for this event."
                  }
                }
              }
            }
          },
          "422": {
            "description": "`invalid_file`: The type is not accepted or the file is over the size limit.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "invalid_file",
                    "message": "The type is not accepted or the file is over the size limit."
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many uploads from this address, or for this event. Try again later.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many uploads from this address, or for this event. Try again later."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "description": "The file's name, for its extension."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "The file's type. One of `proof.mimeTypes` on the programme."
                  },
                  "sizeBytes": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "description": "The file's size, checked against `proof.maxBytes`."
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "sizeBytes"
                ]
              },
              "example": {
                "fileName": "carer-card.jpg",
                "mimeType": "image/jpeg",
                "sizeBytes": 812345
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/carer-applications": {
      "post": {
        "operationId": "events_carer-apply",
        "summary": "Apply for a carer ticket",
        "description": "Step three of the carer form: the carer's details, the `attendeeKey` from the match step, the `proofToken` from the upload step, and the `consent.version` they were shown. The application lands in the organiser's queue in Grofomo (Tickets, Carers). On approval the carer is emailed a free ticket in the attendee's own order; on denial they are emailed the reason.\n\nNothing is emailed until the organiser acts, so there is no confirmation step to build. Sending again from the same email while the first application is waiting replaces it, document included, and the answer is always `received`.\n\nBoth tokens last an hour. `expired` means start again from the step it names. Include an empty, visually hidden `website` field in your form and send whatever is in it: people never fill it, and a submission that does is dropped as a bot. There is no Turnstile widget to render.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "const": "received",
                          "description": "Always `received`, whether this is a new application or an update to one already waiting."
                        }
                      },
                      "required": [
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "status": "received"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body did not match the schema, the email is not valid, or the consent version is not the current one.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "bad_request",
                    "message": "The body did not match the schema, the email is not valid, or the consent version is not the current one."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          },
          "409": {
            "description": "`order_full`: The order already holds as many carer tickets and waiting applications as the organiser allows.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "order_full",
                    "message": "The order already holds as many carer tickets and waiting applications as the organiser allows."
                  }
                }
              }
            }
          },
          "410": {
            "description": "`expired`: The attendee key or the proof token is older than an hour. Repeat the step the message names.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "expired",
                    "message": "The attendee key or the proof token is older than an hour. Repeat the step the message names."
                  }
                }
              }
            }
          },
          "422": {
            "description": "`invalid_file`: The uploaded document never arrived, is not the type declared, or could not be read.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "invalid_file",
                    "message": "The uploaded document never arrived, is not the type declared, or could not be read."
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many applications from this address, or too many waiting for the organiser to review. Try again later.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many applications from this address, or too many waiting for the organiser to review. Try again later."
                  }
                }
              }
            }
          },
          "503": {
            "description": "`verify_unavailable`: The document could not be checked just now. Send the same application again.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "verify_unavailable",
                    "message": "The document could not be checked just now. Send the same application again."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attendeeKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "description": "From the match step: the attendee this carer is for."
                  },
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "description": "The carer's first name."
                  },
                  "lastName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "description": "The carer's surname."
                  },
                  "email": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 320,
                    "description": "Where the carer's ticket, or the organiser's answer, is sent."
                  },
                  "phone": {
                    "description": "Mobile number, optional.",
                    "$ref": "#/components/schemas/events_carer_apply_request___schema0"
                  },
                  "note": {
                    "description": "Anything the organiser should know, optional.",
                    "$ref": "#/components/schemas/events_carer_apply_request___schema1"
                  },
                  "proofToken": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "description": "From the upload step, once the file has been PUT."
                  },
                  "consentVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "description": "`consent.version` from the programme, as shown to the carer."
                  },
                  "website": {
                    "description": "Leave this out. A hidden form field people never fill; a submission that fills it is dropped as a bot.",
                    "$ref": "#/components/schemas/events_carer_apply_request___schema2"
                  }
                },
                "required": [
                  "attendeeKey",
                  "firstName",
                  "lastName",
                  "email",
                  "proofToken",
                  "consentVersion"
                ]
              },
              "example": {
                "attendeeKey": "ZXZlbnQtaWR8dGlja2V0LWlkOjE3ODk2NDM2MDAwMDA6Y2FyZXItYXR0ZW5kZWU.ZXhhbXBsZS1zaWduYXR1cmU",
                "firstName": "Sam",
                "lastName": "Rivera",
                "email": "sam@example.com",
                "phone": "07400 123456",
                "note": "I am Jane's full-time carer.",
                "proofToken": "ZXZlbnQtaWR8aW1hZ2UvanBlZ3xvcmcvZXZlbnQvdXBsb2FkLmpwZzoxNzg5NjQzNjAwMDAwOmNhcmVyLXByb29m.ZXhhbXBsZS1zaWduYXR1cmU",
                "consentVersion": "carer-proof-2026-09",
                "website": ""
              }
            }
          }
        }
      }
    },
    "/v1/forms/{key}": {
      "get": {
        "operationId": "forms_definition",
        "summary": "Form definition",
        "description": "A published form's definition (its fields, types, labels and validation) so you can render it in your own design instead of embedding a hosted page.\n\nArtist-picker fields arrive with their options already filled in from the event's lineup.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "description": "The form's key, from the organiser's console.",
            "schema": {
              "type": "string"
            },
            "example": "volunteer-signup"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The form key. Post submissions back to this same key."
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "feedback",
                            "mailing_list",
                            "contact",
                            "merch_enquiry"
                          ],
                          "description": "What the form is for."
                        },
                        "eventId": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/forms_definition___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Null for an organisation-wide form not tied to one event."
                        },
                        "eventSlug": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "title": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "description": "Definition version. Send it back with the submission so the answers can be audited against it."
                        },
                        "surface": {
                          "type": "string",
                          "enum": [
                            "app",
                            "web"
                          ]
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/forms_definition___schema1"
                          },
                          "description": "The questions, in the organiser's order."
                        },
                        "merchCatalog": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "value": {
                                "type": "string",
                                "description": "Product id. Matches the option value on a `merch_items` form field."
                              },
                              "name": {
                                "type": "string"
                              },
                              "garmentType": {
                                "type": "string",
                                "description": "What the garment is, e.g. \"Heavyweight cotton t-shirt\"."
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "pricePennies": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "description": "Unit price in minor units, so 2500 is £25.00."
                              },
                              "currency": {
                                "type": "string",
                                "description": "ISO 4217 code, e.g. \"GBP\"."
                              },
                              "sizes": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/forms_definition___schema9"
                                },
                                "description": "Available sizes, in display order."
                              },
                              "colours": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/forms_definition___schema10"
                                },
                                "description": "Colourways. Each carries the PLAIN garment image; overlay the event logo yourself."
                              },
                              "printZones": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/forms_definition___schema16"
                                },
                                "description": "Where to place the logo on each side. All coordinates are 0-1 fractions, so a preview scales freely."
                              },
                              "outline": {
                                "description": "Traced garment silhouette (0-1 points) driving the `clip` mask. Absent means use a default tee shape.",
                                "$ref": "#/components/schemas/forms_definition___schema20"
                              }
                            },
                            "required": [
                              "value",
                              "name",
                              "garmentType",
                              "description",
                              "pricePennies",
                              "currency",
                              "sizes",
                              "colours",
                              "printZones"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "key",
                        "kind",
                        "eventId",
                        "eventSlug",
                        "title",
                        "version",
                        "surface",
                        "fields"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "key": "volunteer-signup",
                    "kind": "contact",
                    "eventId": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                    "eventSlug": "summer-fest",
                    "title": "Volunteer with us",
                    "version": 3,
                    "surface": "web",
                    "fields": [
                      {
                        "id": "full_name",
                        "type": "text",
                        "label": "Your name",
                        "required": true
                      },
                      {
                        "id": "email",
                        "type": "email",
                        "label": "Email address",
                        "required": true,
                        "role": "email"
                      },
                      {
                        "id": "shifts",
                        "type": "checkbox",
                        "label": "Which shifts can you cover?",
                        "help": "Pick as many as you like.",
                        "required": true,
                        "options": [
                          {
                            "value": "friday-evening",
                            "label": "Friday evening"
                          },
                          {
                            "value": "saturday-morning",
                            "label": "Saturday morning"
                          },
                          {
                            "value": "sunday-close",
                            "label": "Sunday close"
                          }
                        ]
                      },
                      {
                        "id": "favourite_act",
                        "type": "artist_multiselect",
                        "label": "Anyone you would love to work near?",
                        "required": false,
                        "source": "lineup",
                        "options": [
                          {
                            "value": "9c7e5a3b-1f0d-4b2e-8a6c-4d2f0b8e6a13",
                            "label": "Nala Vex"
                          },
                          {
                            "value": "d1f3b5a7-9c2e-4d80-8b6f-5a3c1e7d9b04",
                            "label": "Sonny Delrey"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/forms/{key}/submissions": {
      "post": {
        "operationId": "forms_submit",
        "summary": "Submit a form",
        "description": "Submit answers for a published form. Answers are validated against the form's own definition, so fetch the definition first and post back matching field ids.\n\n**Bot check.** Render the organiser's own Cloudflare Turnstile widget in your form and send its token as `turnstileToken`. The organiser creates the widget in their Cloudflare account for their website's domains and saves its keys in Grofomo under Settings, Developers; the token must come from a page on the domain the request is sent from. Once the organiser has saved a widget, a call without a valid token is refused with `400 turnstile_failed`; until then no token is needed. Your publishable key, the organiser's domain allowlist and a rate limit gate it too.",
        "tags": [
          "Forms & signups"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "description": "The form's key.",
            "schema": {
              "type": "string"
            },
            "example": "volunteer-signup"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "ok": {
                          "type": "boolean",
                          "const": true
                        },
                        "verification": {
                          "type": "object",
                          "properties": {
                            "email": {
                              "type": "string",
                              "enum": [
                                "sent",
                                "not_needed",
                                "failed"
                              ]
                            },
                            "phone": {
                              "type": "string",
                              "enum": [
                                "sent",
                                "not_needed",
                                "failed",
                                "unavailable"
                              ]
                            },
                            "phoneHint": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "email",
                            "phone",
                            "phoneHint"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "ok": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: An answer did not match the form definition.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "bad_request",
                    "message": "An answer did not match the form definition."
                  }
                }
              }
            }
          },
          "401": {
            "description": "`unauthorized`: No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "unauthorized",
                    "message": "No key was sent and the organiser requires one, or the key is invalid, revoked, belongs to another organisation, or is scoped to a different event."
                  }
                }
              }
            }
          },
          "403": {
            "description": "`origin_not_allowed`: Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "origin_not_allowed",
                    "message": "Your site's domain is not on the organiser's allowed list. Browser calls only: a server sends no Origin header and is unaffected."
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "answers": {
                  "full_name": "Alex Doe",
                  "email": "alex@example.com",
                  "shifts": [
                    "friday-evening",
                    "saturday-morning"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}": {
      "get": {
        "operationId": "events_detail",
        "summary": "Event detail",
        "description": "Everything that describes the event itself: name, dates, timezone, venue, stages and the organiser's brand settings.\n\nUsually the first call a site makes.\n\nNo key is required today because the Grofomo mobile app calls this endpoint without one. That will change. Send a key now: it is accepted and ignored, so the integration keeps working when enforcement lands.",
        "tags": [
          "Event"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "slug": {
                          "type": "string",
                          "description": "The event's current URL slug. It changes if the organiser renames the event; a request using an old slug still reaches the event and answers with the current one here, so store this value rather than the one you asked with."
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_detail___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Long-form event copy."
                        },
                        "summary": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_detail___schema1"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "One line, for a card or a meta description."
                        },
                        "ticketUrl": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_detail___schema2"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Where to send someone to buy: the organiser's own link if they set one, otherwise their Grofomo checkout when the event sells through Grofomo. Null only when neither exists, which means no way to buy has been published yet. It is not a statement about whether a release is open right now, so read `soldOut` and `upcoming` on the tickets endpoint for that."
                        },
                        "metaPixelId": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_detail___schema3"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The event's Meta Pixel id, as set on the event in Grofomo, or null when none is set. Load this pixel on your ticket page (after the visitor's consent) so the organiser's Meta ads can see the sales they bring in. It is the pixel Grofomo's ads optimise against and the one its server-side purchase report goes to, so a site that reads it here never drifts from the ads. Already public by nature: it is in the source of any page that loads it."
                        },
                        "capacity": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "familyFriendly": {
                          "anyOf": [
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "musicGenres": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_detail___schema4"
                          },
                          "description": "Free-text genre tags for the event as a whole."
                        },
                        "timezone": {
                          "type": "string",
                          "description": "IANA zone, e.g. \"Europe/London\". Every local time in the API is in it."
                        },
                        "dates": {
                          "type": "object",
                          "properties": {
                            "startDate": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema5"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "First day, as `YYYY-MM-DD`."
                            },
                            "endDate": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema6"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Last day, as `YYYY-MM-DD`. Equal to `startDate` for a one-day event."
                            },
                            "doorsOpen": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema7"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Local opening time as `HH:MM`."
                            },
                            "doorsClose": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema8"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Local closing time as `HH:MM`. May be after midnight."
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema9"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "IANA zone, e.g. \"Europe/London\". Every `HH:MM` here is local to it."
                            },
                            "singleDay": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "startDate",
                            "endDate",
                            "doorsOpen",
                            "doorsClose",
                            "timezone",
                            "singleDay"
                          ],
                          "additionalProperties": false
                        },
                        "venue": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "address": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema10"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Street address, without city or postcode."
                            },
                            "city": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "region": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema11"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "State, province or county."
                            },
                            "postcode": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema12"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Raw ISO 3166-1 alpha-2 code, e.g. \"GB\"."
                            },
                            "indoorOutdoor": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema13"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Free text, e.g. \"outdoor\"."
                            }
                          },
                          "required": [
                            "name",
                            "address",
                            "city",
                            "region",
                            "postcode",
                            "country",
                            "indoorOutdoor"
                          ],
                          "additionalProperties": false
                        },
                        "stages": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/events_detail___schema14"
                          },
                          "description": "Every stage. A lineup slot names its stage by `name`, not by `id`."
                        },
                        "brand": {
                          "type": "object",
                          "properties": {
                            "brandColors": {
                              "$ref": "#/components/schemas/events_detail___schema16"
                            },
                            "logoUrl": {
                              "$ref": "#/components/schemas/events_detail___schema18"
                            },
                            "logoVectorUrl": {
                              "$ref": "#/components/schemas/events_detail___schema20"
                            },
                            "artworkUrl": {
                              "$ref": "#/components/schemas/events_detail___schema22"
                            },
                            "coverArtUrl": {
                              "$ref": "#/components/schemas/events_detail___schema24"
                            },
                            "backgroundColor": {
                              "$ref": "#/components/schemas/events_detail___schema26"
                            },
                            "textColor": {
                              "$ref": "#/components/schemas/events_detail___schema28"
                            },
                            "accentColor": {
                              "$ref": "#/components/schemas/events_detail___schema30"
                            },
                            "fontFamily": {
                              "$ref": "#/components/schemas/events_detail___schema32"
                            },
                            "socialLinks": {
                              "$ref": "#/components/schemas/events_detail___schema34"
                            },
                            "mapImageUrl": {
                              "$ref": "#/components/schemas/events_detail___schema37"
                            },
                            "themeMode": {
                              "$ref": "#/components/schemas/events_detail___schema39"
                            },
                            "fonts": {
                              "$ref": "#/components/schemas/events_detail___schema40"
                            }
                          },
                          "required": [
                            "brandColors",
                            "logoUrl",
                            "logoVectorUrl",
                            "artworkUrl",
                            "coverArtUrl",
                            "backgroundColor",
                            "textColor",
                            "accentColor",
                            "fontFamily",
                            "socialLinks",
                            "mapImageUrl",
                            "themeMode",
                            "fonts"
                          ],
                          "additionalProperties": false,
                          "description": "The organiser's colours, logos and fonts, so your site can match the event's identity."
                        },
                        "schemaOrg": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_detail___schema42"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "A ready-made schema.org `MusicEvent` block with the venue address, organiser and one Offer per ticket tier (fee-inclusive prices, sale windows, availability). Serialise it into a `<script type=\"application/ld+json\">` tag instead of hand-building your own. Null on the app surface. Empty fields on the event are dropped from the block rather than published blank."
                        },
                        "community": {
                          "type": "object",
                          "properties": {
                            "chatUrl": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema43"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Invite link to the attendee group chat, when the organiser runs one."
                            },
                            "chatPlatform": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema44"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Which platform the chat is on, so you can show the right icon."
                            },
                            "chatLabel": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/events_detail___schema45"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Call-to-action text, e.g. \"Summer Fest group chat\"."
                            }
                          },
                          "required": [
                            "chatUrl",
                            "chatPlatform",
                            "chatLabel"
                          ],
                          "additionalProperties": false
                        },
                        "organiser": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/events_detail___schema46"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Present only when the organiser has opted into a public profile, i.e. only when there is a page to link to."
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "name",
                        "description",
                        "summary",
                        "ticketUrl",
                        "metaPixelId",
                        "capacity",
                        "familyFriendly",
                        "musicGenres",
                        "timezone",
                        "dates",
                        "venue",
                        "stages",
                        "brand",
                        "schemaOrg",
                        "community",
                        "organiser"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "id": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                    "slug": "summer-fest",
                    "name": "Summer Fest",
                    "description": "Three days of house, disco and breaks across two stages on the edge of Bristol, with camping from Friday morning.",
                    "summary": "Three days, two stages, Ashton Court.",
                    "ticketUrl": "https://grfm.to/e/summer-fest",
                    "metaPixelId": "1234567890123456",
                    "capacity": 8000,
                    "familyFriendly": true,
                    "musicGenres": [
                      "House",
                      "Disco",
                      "Breaks"
                    ],
                    "timezone": "Europe/London",
                    "dates": {
                      "startDate": "2026-07-17",
                      "endDate": "2026-07-19",
                      "doorsOpen": "12:00",
                      "doorsClose": "02:00",
                      "timezone": "Europe/London",
                      "singleDay": false
                    },
                    "venue": {
                      "name": "Ashton Court",
                      "address": "Ashton Court Estate",
                      "city": "Bristol",
                      "region": "England",
                      "postcode": "BS41 9JN",
                      "country": "GB",
                      "indoorOutdoor": "outdoor"
                    },
                    "stages": [
                      {
                        "id": "main-stage",
                        "name": "Main Stage",
                        "type": "outdoor",
                        "description": "The big one, in the meadow.",
                        "imageUrl": "https://cdn.grofomo.com/summer-fest/stages/main.jpg"
                      },
                      {
                        "id": "the-orchard",
                        "name": "The Orchard",
                        "type": "tent",
                        "description": null,
                        "imageUrl": null
                      }
                    ],
                    "brand": {
                      "brandColors": [
                        "#FFEA00",
                        "#080808"
                      ],
                      "logoUrl": "https://cdn.grofomo.com/summer-fest/brand/logo.png",
                      "logoVectorUrl": "https://cdn.grofomo.com/summer-fest/brand/logo.svg",
                      "artworkUrl": "https://cdn.grofomo.com/summer-fest/brand/poster.jpg",
                      "coverArtUrl": "https://cdn.grofomo.com/summer-fest/brand/cover.jpg",
                      "backgroundColor": "#080808",
                      "textColor": "#FAFAF7",
                      "accentColor": "#FFEA00",
                      "fontFamily": "Syne",
                      "socialLinks": {
                        "instagram": "https://instagram.com/summerfest",
                        "spotify": "https://open.spotify.com/playlist/summerfest"
                      },
                      "mapImageUrl": "https://cdn.grofomo.com/summer-fest/brand/site-map.png",
                      "themeMode": "brand",
                      "fonts": {
                        "headline": {
                          "family": "Syne",
                          "url": "https://fonts.gstatic.com/s/syne/v22/8vIS7w4qzmVxsWxjBZRjr0FKM_04uT6kR47NCV5Z.ttf",
                          "weight": 700
                        },
                        "body": null
                      }
                    },
                    "community": {
                      "chatUrl": "https://chat.whatsapp.com/summerfest",
                      "chatPlatform": "whatsapp",
                      "chatLabel": "Summer Fest group chat"
                    },
                    "schemaOrg": {
                      "@context": "https://schema.org",
                      "@type": "MusicEvent",
                      "name": "Summer Fest",
                      "description": "Three days of house, disco and breaks across two stages on the edge of Bristol, with camping from Friday morning.",
                      "startDate": "2026-07-17T11:00:00+01:00",
                      "endDate": "2026-07-20T01:00:00+01:00",
                      "image": [
                        "https://cdn.grofomo.com/summer-fest/brand/artwork.jpg"
                      ],
                      "maximumAttendeeCapacity": 8000,
                      "location": {
                        "@type": "Place",
                        "name": "Ashton Court",
                        "address": {
                          "@type": "PostalAddress",
                          "streetAddress": "Ashton Court Estate",
                          "addressLocality": "Bristol",
                          "addressRegion": "England",
                          "postalCode": "BS41 9JN",
                          "addressCountry": "GB"
                        }
                      },
                      "organizer": {
                        "@type": "Organization",
                        "name": "Riot Promotions"
                      },
                      "offers": [
                        {
                          "@type": "Offer",
                          "name": "Weekend Camping: Tier 2",
                          "price": "89.50",
                          "priceCurrency": "GBP",
                          "availability": "https://schema.org/InStock",
                          "url": "https://grfm.to/e/summer-fest/tickets",
                          "validThrough": "2026-06-30T22:59:00.000Z"
                        }
                      ]
                    },
                    "organiser": {
                      "id": "b2d4a6f8-1c3e-4a5b-8d7f-2e9c0a1b3d45",
                      "name": "Riot Promotions",
                      "slug": "riot-promotions",
                      "logoUrl": "https://cdn.grofomo.com/riot-promotions/logo.png"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/{slug}/version": {
      "get": {
        "operationId": "events_version",
        "summary": "Content version",
        "description": "A single timestamp that moves whenever the event or its lineup is edited.\n\nPoll this instead of re-fetching the lineup. It is small and cached for 15 seconds, so you can check often and only pull the heavy feeds when the version actually changes.\n\nNo key is required today because the Grofomo mobile app calls this endpoint without one. That will change. Send a key now: it is accepted and ignored, so the integration keeps working when enforcement lands.",
        "tags": [
          "Event"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The event's URL slug. Globally unique. It can change if the organiser renames the event, but an old slug keeps reaching the same event, so a stored one never breaks.",
            "schema": {
              "type": "string"
            },
            "example": "summer-fest"
          },
          {
            "name": "surface",
            "in": "query",
            "required": true,
            "description": "Must be `web` for a website. Omit it and you get the mobile-app surface, which is gated on a different visibility setting, so a perfectly live event can return 404.",
            "schema": {
              "type": "string",
              "enum": [
                "web",
                "app"
              ]
            },
            "example": "web"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "eventId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "eventSlug": {
                          "type": "string"
                        },
                        "scheduleVersion": {
                          "type": "string",
                          "description": "Opaque token that changes whenever the event or its lineup is edited. Compare it with the last one you saw; only pull the heavy feeds when it differs."
                        },
                        "updatedAt": {
                          "type": "string",
                          "description": "When that last edit happened."
                        }
                      },
                      "required": [
                        "eventId",
                        "eventSlug",
                        "scheduleVersion",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "eventId": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                    "eventSlug": "summer-fest",
                    "scheduleVersion": "2026-06-01T09:15:00.000Z",
                    "updatedAt": "2026-06-01T09:15:00.000Z"
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No event with that slug is published on this surface. Check the slug, and check you sent `?surface=web`."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/organisers/{slug}": {
      "get": {
        "operationId": "organisers_detail",
        "summary": "Organiser profile",
        "description": "An organiser's public profile and their upcoming public events.\n\nOnly returned when the organiser has opted in to a public profile; otherwise this is a 404.\n\nNo key is required today because the Grofomo mobile app calls this endpoint without one. That will change. Send a key now: it is accepted and ignored, so the integration keeps working when enforcement lands.",
        "tags": [
          "Event"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The organiser's slug.",
            "schema": {
              "type": "string"
            },
            "example": "riot-promotions"
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "name": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "bio": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/organisers_detail___schema0"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Public \"about us\" copy."
                        },
                        "logoUrl": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "logoVectorUrl": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "backgroundColor": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "textColor": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "website": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "socials": {
                          "type": "object",
                          "propertyNames": {
                            "$ref": "#/components/schemas/organisers_detail___schema1"
                          },
                          "additionalProperties": {
                            "$ref": "#/components/schemas/organisers_detail___schema2"
                          },
                          "description": "Profile URLs keyed by platform slug. Blank entries are stripped server-side."
                        },
                        "upcomingEvents": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/organisers_detail___schema3"
                          },
                          "description": "The organiser's public events that have not finished yet, soonest first."
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "slug",
                        "bio",
                        "logoUrl",
                        "logoVectorUrl",
                        "backgroundColor",
                        "textColor",
                        "website",
                        "socials",
                        "upcomingEvents"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "id": "b2d4a6f8-1c3e-4a5b-8d7f-2e9c0a1b3d45",
                    "name": "Riot Promotions",
                    "slug": "riot-promotions",
                    "bio": "Bristol promoters since 2011. Warehouse parties, one festival, and a stubborn dislike of queues.",
                    "logoUrl": "https://cdn.grofomo.com/riot-promotions/logo.png",
                    "logoVectorUrl": null,
                    "backgroundColor": "#080808",
                    "textColor": "#FAFAF7",
                    "website": "https://riotpromotions.example",
                    "socials": {
                      "instagram": "https://instagram.com/riotpromotions"
                    },
                    "upcomingEvents": [
                      {
                        "id": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                        "slug": "summer-fest",
                        "name": "Summer Fest",
                        "startDate": "2026-07-17",
                        "endDate": "2026-07-19",
                        "venueName": "Ashton Court",
                        "city": "Bristol",
                        "country": "GB",
                        "artworkUrl": "https://cdn.grofomo.com/summer-fest/brand/poster.jpg",
                        "logoVectorUrl": "https://cdn.grofomo.com/summer-fest/brand/logo.svg",
                        "logoBackgroundColor": "#080808"
                      }
                    ]
                  }
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No such organiser, or they have not enabled a public profile.",
            "content": {
              "application/json": {
                "example": {
                  "apiVersion": 1,
                  "error": {
                    "code": "not_found",
                    "message": "No such organiser, or they have not enabled a public profile."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/events/search": {
      "get": {
        "operationId": "events_search",
        "summary": "Event search",
        "description": "Search events that organisers have opted in to public discovery, across the whole platform.\n\nCross-organisation, so it is not scoped to any one key and cannot be locked down per organiser. Meant for discovery surfaces rather than a single event's own website.\n\nCallable from a browser on **any** origin. This is the one endpoint that does not resolve your origin against an organiser's allowed-domains list, because it spans organisations and no single organiser's list could apply.\n\n**A result is not guaranteed to resolve on the web surface.** Discovery and website publishing are separate opt-ins, so a listed event can still return `404 not_found` from the per-event endpoints with `?surface=web`. Handle that 404 rather than assuming every result has a website presence.\n\nNo key is required today because the Grofomo mobile app calls this endpoint without one. That will change. Send a key now: it is accepted and ignored, so the integration keeps working when enforcement lands.",
        "tags": [
          "Discovery"
        ],
        "security": [
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Matched against event name and slug. Empty returns the soonest events.",
            "schema": {
              "type": "string"
            },
            "example": "summer"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum results. Defaults to 20, capped at 50.",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "string"
                        },
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "slug": {
                                "type": "string",
                                "description": "Pass this to any of the per-event endpoints."
                              },
                              "name": {
                                "type": "string"
                              },
                              "startDate": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/events_search___schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "First day, as `YYYY-MM-DD`."
                              },
                              "endDate": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/events_search___schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Last day, as `YYYY-MM-DD`."
                              },
                              "venueName": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "city": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "country": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/events_search___schema2"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Raw ISO 3166-1 alpha-2 code, e.g. \"GB\"."
                              },
                              "artworkUrl": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/events_search___schema3"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Poster or key artwork, for a listing card."
                              },
                              "logoVectorUrl": {
                                "description": "Hosted SVG of the event logo when the organiser uploaded one; prefer it over `artworkUrl` where you can render SVG.",
                                "$ref": "#/components/schemas/events_search___schema4"
                              },
                              "logoBackgroundColor": {
                                "description": "Hex colour to sit the card's logo on: the event's page background, else its first brand colour. Null when the organiser set neither.",
                                "$ref": "#/components/schemas/events_search___schema5"
                              },
                              "websiteUrl": {
                                "description": "The event's own website when the organiser runs one (their canonical URL); link there in preference to a Grofomo-hosted page.",
                                "$ref": "#/components/schemas/events_search___schema6"
                              }
                            },
                            "required": [
                              "id",
                              "slug",
                              "name",
                              "startDate",
                              "endDate",
                              "venueName",
                              "city",
                              "country",
                              "artworkUrl"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "query",
                        "results"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "apiVersion",
                    "data"
                  ],
                  "additionalProperties": false
                },
                "example": {
                  "apiVersion": 1,
                  "data": {
                    "query": "summer",
                    "results": [
                      {
                        "id": "6f1c8e2a-4b3d-4c9e-9f21-8a7d5e0b1c34",
                        "slug": "summer-fest",
                        "name": "Summer Fest",
                        "startDate": "2026-07-17",
                        "endDate": "2026-07-19",
                        "venueName": "Ashton Court",
                        "city": "Bristol",
                        "country": "GB",
                        "artworkUrl": "https://cdn.grofomo.com/summer-fest/brand/poster.jpg",
                        "logoVectorUrl": "https://cdn.grofomo.com/summer-fest/brand/logo.svg",
                        "logoBackgroundColor": "#080808"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "ticket.sale": {
      "post": {
        "operationId": "webhook_ticket_sale",
        "summary": "Ticket sale",
        "description": "A paid ticket order completes (web, app, or door).\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "buyer_name": "Jane Smith",
                "buyer_first_name": "Jane",
                "buyer_email": "jane@example.com",
                "event_name": "Summer Fest",
                "items": "2× General Admission",
                "ticket_count": "2",
                "order_total": "£45.00",
                "order_number": "AB12CD",
                "artist_name": "DJ Nova",
                "artist_credit": " (via DJ Nova)",
                "source": "a Meta ad",
                "source_credit": " (from a Meta ad)",
                "message": "Jane Smith just purchased 2× General Admission for Summer Fest totalling £45.00 (from a Meta ad)"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "merch.sale": {
      "post": {
        "operationId": "webhook_merch_sale",
        "summary": "Merch sale",
        "description": "A merch order is paid via checkout.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "buyer_name": "Jane Smith",
                "buyer_email": "jane@example.com",
                "event_name": "Summer Fest",
                "items": "1× Festival Tee (L, Black)",
                "item_count": "1",
                "order_total": "£28.00",
                "order_number": "M-4F7A2B",
                "message": "Jane Smith just bought 1× Festival Tee (L, Black) (Summer Fest merch) totalling £28.00"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "ticket.refund": {
      "post": {
        "operationId": "webhook_ticket_refund",
        "summary": "Ticket refund",
        "description": "A ticket order is fully or partially refunded.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "buyer_name": "Jane Smith",
                "event_name": "Summer Fest",
                "order_number": "AB12CD",
                "refund_amount": "£22.50",
                "refund_total": "£22.50",
                "order_total": "£45.00",
                "refund_scope": "Partial",
                "message": "Partial refund on order AB12CD for Summer Fest (Jane Smith) - £22.50 refunded"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "merch.refund": {
      "post": {
        "operationId": "webhook_merch_refund",
        "summary": "Merch refund",
        "description": "A merch order is fully or partially refunded.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "buyer_name": "Jane Smith",
                "event_name": "Summer Fest",
                "order_number": "M-4F7A2B",
                "refund_total": "£28.00",
                "order_total": "£28.00",
                "refund_scope": "Full",
                "message": "Full refund on merch order M-4F7A2B (Jane Smith) - £28.00 refunded to date"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "comp.issued": {
      "post": {
        "operationId": "webhook_comp_issued",
        "summary": "Comps issued",
        "description": "Complimentary tickets are issued by the organiser team.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "guest_name": "Sam Rivera",
                "quantity": "2",
                "ticket_type": "General Admission",
                "event_name": "Summer Fest",
                "message": "2× comp ticket(s) issued to Sam Rivera for Summer Fest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "carer.applied": {
      "post": {
        "operationId": "webhook_carer_applied",
        "summary": "Carer ticket application",
        "description": "A carer applies for a free ticket to accompany a ticket holder, and the application is waiting for a decision.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "carer_name": "Sam Rivera",
                "attendee_name": "Jane Smith",
                "ticket_type": "Weekend",
                "order_number": "AB12CD",
                "event_name": "Summer Fest",
                "pending_count": "3",
                "message": "Sam Rivera applied for a carer ticket to accompany Jane Smith at Summer Fest (3 waiting)"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "carer.approved": {
      "post": {
        "operationId": "webhook_carer_approved",
        "summary": "Carer ticket approved",
        "description": "A carer application is approved: a free carer ticket is issued into the ticket holder's order and emailed to the carer.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "carer_name": "Sam Rivera",
                "attendee_name": "Jane Smith",
                "order_number": "AB12CD",
                "event_name": "Summer Fest",
                "decided_by": "alex@example.com",
                "message": "Carer ticket approved: Sam Rivera accompanies Jane Smith at Summer Fest (order AB12CD)"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "carer.denied": {
      "post": {
        "operationId": "webhook_carer_denied",
        "summary": "Carer ticket denied",
        "description": "A carer application is denied and the carer is emailed the reason.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "carer_name": "Sam Rivera",
                "attendee_name": "Jane Smith",
                "reason": "Proof does not show carer status",
                "event_name": "Summer Fest",
                "decided_by": "alex@example.com",
                "message": "Carer ticket denied for Sam Rivera at Summer Fest: Proof does not show carer status"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "comp.redeemed": {
      "post": {
        "operationId": "webhook_comp_redeemed",
        "summary": "Artist comp redeemed",
        "description": "An artist sends a comp ticket from their remittance-offer allocation.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "artist_name": "DJ Nova",
                "recipient_name": "Sam Rivera",
                "event_name": "Summer Fest",
                "remaining": "3",
                "message": "DJ Nova sent a comp ticket to Sam Rivera for Summer Fest (3 left in their allocation)"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "prelaunch.registration": {
      "post": {
        "operationId": "webhook_prelaunch_registration",
        "summary": "Prelaunch registration",
        "description": "An attendee registers interest on a prelaunch page, or confirms another channel afterwards (the email link after the SMS code). Each notification names the channel it confirms.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "event_name": "Summer Fest 2027",
                "source_event_name": "Summer Fest 2026",
                "first_name": "Jane",
                "contact_email": "jane@example.com",
                "channels": "email, WhatsApp",
                "confirmed_channels": "WhatsApp",
                "registration_kind": "New",
                "message": "New prelaunch registration for Summer Fest 2027: WhatsApp confirmed"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "mailing_list.signup": {
      "post": {
        "operationId": "webhook_mailing_list_signup",
        "summary": "Mailing list signup",
        "description": "Someone joins the mailing list via a signup form.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "event_name": "Summer Fest",
                "form_title": "Summer Fest mailing list",
                "contact_email": "jane@example.com",
                "message": "New mailing list signup for Summer Fest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "site.content_changed": {
      "post": {
        "operationId": "webhook_site_content_changed",
        "summary": "Website content changed",
        "description": "Content the public website reads has changed: a news article, the lineup or the FAQs. Point this at a static host’s deploy hook (Cloudflare Pages, Netlify, Vercel) and a custom-built site rebuilds itself whenever you publish, instead of waiting for someone to push. Changes are batched: each one waits about two minutes for the next, so a whole editing session arrives as a single notification and a bulk edit triggers one rebuild rather than fifty. A change made on its own therefore reaches you a couple of minutes after you make it, and a long session is never more than fifteen minutes behind.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "content_type": "news",
                "event_name": "Summer Fest",
                "event_slug": "summer-fest-2026",
                "changed_at": "2026-08-26T10:34:48.449Z",
                "message": "news changed for Summer Fest - rebuilding the website"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "social.reconnect_required": {
      "post": {
        "operationId": "webhook_social_reconnect_required",
        "summary": "Social account disconnected",
        "description": "A connected social account can no longer publish, because its token expired or was revoked. Scheduled posts to it will fail until someone reconnects it in Settings.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "platform": "Instagram",
                "account_handle": "@summerfest",
                "reason": "the access token expired",
                "settings_url": "https://events.grofomo.com/org/summer-fest/settings/social",
                "message": "Instagram account @summerfest needs reconnecting - the access token expired. Scheduled posts will fail until it is fixed: https://events.grofomo.com/org/summer-fest/settings/social"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "whatsapp.template_decision": {
      "post": {
        "operationId": "webhook_whatsapp_template_decision",
        "summary": "WhatsApp template decision",
        "description": "Meta has approved, rejected, paused or switched off one of your WhatsApp message templates. A paused or rejected template cannot be used in a campaign until it is fixed or replaced.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "template_name": "tickets_on_sale",
                "language": "en_GB",
                "decision": "rejected",
                "reason": "Meta could not accept how the message is written.",
                "sender_number": "+44 7446 967468",
                "templates_url": "https://events.grofomo.com/org/summer-fest/settings/whatsapp",
                "message": "WhatsApp template tickets_on_sale was rejected - Meta could not accept how the message is written. https://events.grofomo.com/org/summer-fest/settings/whatsapp"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "whatsapp.campaign_held": {
      "post": {
        "operationId": "webhook_whatsapp_campaign_held",
        "summary": "WhatsApp campaign held back",
        "description": "A scheduled WhatsApp campaign did not send, because Meta now reports many complaints about the message it uses and is close to stopping that message sending. Nobody was messaged and nothing was lost: the campaign stays scheduled until the message is changed or the campaign is cancelled.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "template_name": "last_chance",
                "language": "en_GB",
                "scheduled_for": "2026-09-01T09:00:00.000Z",
                "recipient_count": "2400",
                "campaign_url": "https://events.grofomo.com/org/summer-fest/events/summer-fest-2026/whatsapp",
                "message": "WhatsApp campaign using last_chance is on hold: Meta reports many complaints about that message, so nobody has been messaged. https://events.grofomo.com/org/summer-fest/events/summer-fest-2026/whatsapp"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "whatsapp.allowance_change": {
      "post": {
        "operationId": "webhook_whatsapp_allowance_change",
        "summary": "WhatsApp sending allowance changed",
        "description": "Meta has changed how many different people one of your WhatsApp numbers can reach in any 24 hours. It goes up on its own when campaigns are well received, and down when too many recipients block or report them. A campaign bigger than the allowance is delivered in daily batches rather than failing.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "direction": "down",
                "allowance": "1000",
                "previous_allowance": "10000",
                "summary": "Meta has lowered it to 1,000 different people every 24 hours.",
                "sender_number": "+44 7446 967468",
                "settings_url": "https://events.grofomo.com/org/summer-fest/settings/whatsapp",
                "message": "WhatsApp sending allowance for +44 7446 967468 went down to 1000 people per 24 hours (was 10000): https://events.grofomo.com/org/summer-fest/settings/whatsapp"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    },
    "whatsapp.account_alert": {
      "post": {
        "operationId": "webhook_whatsapp_account_alert",
        "summary": "WhatsApp notice from Meta",
        "description": "Meta has raised a notice about one of your WhatsApp numbers that needs a person: a hold or refusal on raising its sending allowance, a decision on the official business account badge, or a profile photo that has been removed. Sent once per notice; the same notice also appears on your WhatsApp settings page until it is cleared or acknowledged.\n\nDelivered to the organiser's configured URL, signed with `X-Eventos-Signature: hmac-sha256=<hex>` over the raw body.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "The organiser's rendered message template."
                  }
                }
              },
              "example": {
                "alert": "profile photo missing",
                "severity": "warning",
                "status": "active",
                "summary": "Meta says this number’s profile photo has been removed, so people see a blank avatar next to your messages.",
                "what_to_do": "Add a photo under this number’s profile.",
                "meta_note": "Your business profile photo has been removed.",
                "sender_number": "+44 7446 967468",
                "settings_url": "https://events.grofomo.com/org/summer-fest/settings/whatsapp",
                "message": "WhatsApp notice for +44 7446 967468: Meta says this number’s profile photo has been removed, so people see a blank avatar next to your messages. https://events.grofomo.com/org/summer-fest/settings/whatsapp"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged. Return quickly; slow handlers are retried."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "events_lineup___schema0": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Stable id for this set. Use it as a render key."
          },
          "stage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema1"
              },
              {
                "type": "null"
              }
            ],
            "description": "Stage name. Null before a stage is assigned."
          },
          "day": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema2"
              },
              {
                "type": "null"
              }
            ],
            "description": "Festival day this set belongs to, as `YYYY-MM-DD`. An after-midnight set is attributed to the day it started, so a 01:00 slot sits under the previous date."
          },
          "startTime": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema3"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the set starts, as an ISO 8601 instant (e.g. `2026-07-17T20:30:00+00:00`). Convert to the event `timezone` (from event detail) for display. Do not render it raw."
          },
          "endTime": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema4"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the set ends, as an ISO 8601 instant. Same conversion rule as `startTime`."
          },
          "durationMinutes": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema5"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set length in minutes."
          },
          "billingTier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema6"
              },
              {
                "type": "null"
              }
            ],
            "description": "Organiser's billing label, e.g. \"headliner\". Free text; do not switch on it."
          },
          "isPlaceholder": {
            "type": "boolean",
            "description": "True for an unannounced set. Render `placeholderLabel` instead of an artist name."
          },
          "placeholderLabel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema7"
              },
              {
                "type": "null"
              }
            ],
            "description": "What to show in place of a name, e.g. \"Sunday headliner\"."
          },
          "placeholderDescription": {
            "default": null,
            "description": "Longer copy for a placeholder, e.g. when it will be announced.",
            "$ref": "#/components/schemas/events_lineup___schema8"
          },
          "setNote": {
            "default": null,
            "description": "A short note on how this set is played, e.g. \"DJ set\" or \"Live\", at most 80 characters. Show it beside the act; null when there is none.",
            "$ref": "#/components/schemas/events_lineup___schema9"
          },
          "featured": {
            "type": "boolean",
            "description": "The organiser has flagged this set as a highlight."
          },
          "createdAtIso": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema10"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the slot was first created."
          },
          "artist": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema11"
              },
              {
                "type": "null"
              }
            ],
            "description": "The lead artist, and the first entry of `artists`. Null on a placeholder slot."
          },
          "artists": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_lineup___schema11"
            },
            "description": "Every artist on the slot, in billing order. A back-to-back set has two or more; a normal set has exactly one; a placeholder has none."
          }
        },
        "required": [
          "id",
          "stage",
          "day",
          "startTime",
          "endTime",
          "durationMinutes",
          "billingTier",
          "isPlaceholder",
          "placeholderLabel",
          "placeholderDescription",
          "setNote",
          "featured",
          "createdAtIso",
          "artist",
          "artists"
        ],
        "additionalProperties": false
      },
      "events_lineup___schema1": {
        "type": "string"
      },
      "events_lineup___schema2": {
        "type": "string"
      },
      "events_lineup___schema3": {
        "type": "string"
      },
      "events_lineup___schema4": {
        "type": "string"
      },
      "events_lineup___schema5": {
        "type": "number"
      },
      "events_lineup___schema6": {
        "type": "string"
      },
      "events_lineup___schema7": {
        "type": "string"
      },
      "events_lineup___schema8": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_lineup___schema9": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_lineup___schema10": {
        "type": "string"
      },
      "events_lineup___schema11": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Pass this to the artist-detail endpoint for the full profile."
          },
          "name": {
            "type": "string",
            "description": "Billed name, as the organiser wants it displayed."
          },
          "imageUrl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema12"
              },
              {
                "type": "null"
              }
            ],
            "description": "Press shot. Null when the artist has none."
          },
          "genres": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_lineup___schema13"
            },
            "description": "Free-text genre tags. May be empty."
          },
          "hometown": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema14"
              },
              {
                "type": "null"
              }
            ],
            "description": "City."
          },
          "region": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema15"
              },
              {
                "type": "null"
              }
            ],
            "description": "State or province."
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema16"
              },
              {
                "type": "null"
              }
            ],
            "description": "Raw ISO 3166-1 alpha-2 code, e.g. \"GB\"."
          },
          "locationLabel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_lineup___schema17"
              },
              {
                "type": "null"
              }
            ],
            "description": "Pre-formatted location for display, e.g. \"Bristol, England, United Kingdom\". Render this rather than joining the parts yourself."
          },
          "verified": {
            "description": "True when the artist has claimed their Grofomo profile, so the name, photo and bio come from the artist themselves. Show a verified mark beside the name.",
            "$ref": "#/components/schemas/events_lineup___schema18"
          }
        },
        "required": [
          "id",
          "name",
          "imageUrl",
          "genres",
          "hometown",
          "region",
          "country",
          "locationLabel"
        ],
        "additionalProperties": false
      },
      "events_lineup___schema12": {
        "type": "string"
      },
      "events_lineup___schema13": {
        "type": "string"
      },
      "events_lineup___schema14": {
        "type": "string"
      },
      "events_lineup___schema15": {
        "type": "string"
      },
      "events_lineup___schema16": {
        "type": "string"
      },
      "events_lineup___schema17": {
        "type": "string"
      },
      "events_lineup___schema18": {
        "type": "boolean"
      },
      "events_lineup___schema19": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "events_lineup___schema20": {
        "type": "string"
      },
      "events_artist___schema0": {
        "type": "string"
      },
      "events_artist___schema1": {
        "type": "string"
      },
      "events_artist___schema2": {
        "type": "string"
      },
      "events_artist___schema3": {
        "type": "string"
      },
      "events_artist___schema4": {
        "type": "string"
      },
      "events_artist___schema5": {
        "type": "string"
      },
      "events_artist___schema6": {
        "type": "string"
      },
      "events_artist___schema7": {
        "type": "string"
      },
      "events_artist___schema8": {
        "type": "string"
      },
      "events_artist___schema9": {
        "type": "string"
      },
      "events_artist___schema10": {
        "type": "string"
      },
      "events_artist___schema11": {
        "type": "string"
      },
      "events_artist___schema12": {
        "type": "object",
        "properties": {
          "lineupId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Matches the `id` of the corresponding lineup slot."
          },
          "stage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "day": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_artist___schema13"
              },
              {
                "type": "null"
              }
            ],
            "description": "Festival day as `YYYY-MM-DD`."
          },
          "startTime": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_artist___schema14"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the set starts, as an ISO 8601 instant. Convert to the event timezone for display."
          },
          "endTime": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_artist___schema15"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the set ends, as an ISO 8601 instant."
          }
        },
        "required": [
          "lineupId",
          "stage",
          "day",
          "startTime",
          "endTime"
        ],
        "additionalProperties": false
      },
      "events_artist___schema13": {
        "type": "string"
      },
      "events_artist___schema14": {
        "type": "string"
      },
      "events_artist___schema15": {
        "type": "string"
      },
      "events_faq___schema0": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_faq___schema1"
              },
              {
                "type": "null"
              }
            ],
            "description": "Category id. Null for the catch-all group of uncategorised entries."
          },
          "name": {
            "type": "string",
            "description": "Category heading, e.g. \"Getting there\"."
          },
          "faqs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_faq___schema2"
            },
            "description": "The questions in this category, in the organiser's order."
          }
        },
        "required": [
          "id",
          "name",
          "faqs"
        ],
        "additionalProperties": false
      },
      "events_faq___schema1": {
        "type": "string"
      },
      "events_faq___schema2": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "question": {
            "type": "string"
          },
          "answerDoc": {
            "description": "The answer as a ProseMirror document. Only useful if you render rich text yourself. Otherwise use `answerHtml`.",
            "$ref": "#/components/schemas/events_faq___schema3"
          },
          "answerPlain": {
            "type": "string",
            "description": "Plain text, for search indexes and JSON-LD."
          },
          "answerHtml": {
            "type": "string",
            "description": "The answer pre-rendered to sanitised HTML. Safe to inject directly, and always present."
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "question",
          "answerDoc",
          "answerPlain",
          "answerHtml",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "events_faq___schema3": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "attrs": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "marks": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "attrs": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false
            }
          },
          "content": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_faq___schema3"
            }
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": false
      },
      "events_faq___schema4": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "events_faq___schema5": {
        "type": "string"
      },
      "events_gallery___schema0": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "events_gallery___schema1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Stable id for this gallery entry. Use it as a render key."
          },
          "url": {
            "type": "string",
            "description": "The full-size image."
          },
          "thumbnailUrl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_gallery___schema2"
              },
              {
                "type": "null"
              }
            ],
            "description": "A smaller version where one exists. Null means use `url` and size it yourself."
          },
          "width": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_gallery___schema3"
              },
              {
                "type": "null"
              }
            ],
            "description": "Pixel width of `url`, when known. Use it to reserve space and avoid layout shift."
          },
          "height": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_gallery___schema4"
              },
              {
                "type": "null"
              }
            ],
            "description": "Pixel height of `url`, when known."
          },
          "caption": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_gallery___schema5"
              },
              {
                "type": "null"
              }
            ],
            "description": "Organiser-written caption. Null when they did not write one; do not invent alt text from the filename."
          },
          "credit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_gallery___schema6"
              },
              {
                "type": "null"
              }
            ],
            "description": "Photographer or source credit the organiser asked to be shown. Display it wherever you display the photo."
          },
          "focalX": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_gallery___schema7"
              },
              {
                "type": "null"
              }
            ],
            "description": "Horizontal focal point as a fraction of width, 0 = left, 1 = right. Crop around it so a wide shot does not lose its subject on a narrow screen. Null means centre."
          },
          "focalY": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_gallery___schema8"
              },
              {
                "type": "null"
              }
            ],
            "description": "Vertical focal point as a fraction of height, 0 = top, 1 = bottom. Null means centre."
          }
        },
        "required": [
          "id",
          "url",
          "thumbnailUrl",
          "width",
          "height",
          "caption",
          "credit",
          "focalX",
          "focalY"
        ],
        "additionalProperties": false
      },
      "events_gallery___schema2": {
        "type": "string"
      },
      "events_gallery___schema3": {
        "type": "number"
      },
      "events_gallery___schema4": {
        "type": "number"
      },
      "events_gallery___schema5": {
        "type": "string"
      },
      "events_gallery___schema6": {
        "type": "string"
      },
      "events_gallery___schema7": {
        "type": "number"
      },
      "events_gallery___schema8": {
        "type": "number"
      },
      "events_gallery___schema9": {
        "type": "string"
      },
      "events_news___schema0": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Pass this to the single-article endpoint for the body."
          },
          "title": {
            "type": "string"
          },
          "excerpt": {
            "type": "string",
            "description": "Short standfirst, for a listing card."
          },
          "heroImageUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_news___schema1"
            },
            "description": "Free-text tags, e.g. \"lineup\". May be empty."
          },
          "author": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "type": "string",
            "description": "Publication time. The index is sorted newest first on this."
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "title",
          "excerpt",
          "heroImageUrl",
          "tags",
          "author",
          "publishedAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "events_news___schema1": {
        "type": "string"
      },
      "events_news___schema2": {
        "type": "string"
      },
      "events_news_article___schema0": {
        "type": "string"
      },
      "events_news_article___schema1": {
        "type": "string"
      },
      "events_news_article___schema2": {
        "type": "string"
      },
      "events_news_article___schema3": {
        "type": "string"
      },
      "events_news_article___schema4": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "events_broadcasts___schema0": {
        "type": "string"
      },
      "events_tickets___schema0": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "Referenced by `categoryId` on a ticket type."
          },
          "title": {
            "type": "string",
            "description": "Section heading, e.g. \"Weekend\"."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "title",
          "description"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "categoryId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_tickets___schema2"
              },
              {
                "type": "null"
              }
            ],
            "description": "Groups this type under a category. Null when ungrouped."
          },
          "title": {
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_tickets___schema3"
              },
              {
                "type": "null"
              }
            ],
            "description": "Plain-text description, for clients that render no rich text."
          },
          "descriptionDoc": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_tickets___schema4"
              },
              {
                "type": "null"
              }
            ],
            "description": "The same description as a ProseMirror document. Render this when present, otherwise `description`."
          },
          "ticketsPerGroup": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Admissions issued per unit bought. 1 is a single ticket; higher means a table or group ticket."
          },
          "minPerOrder": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Fewest units one order may contain."
          },
          "maxPerOrder": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Most units one order may contain."
          },
          "isHighlighted": {
            "type": "boolean",
            "description": "The organiser wants this type visually promoted."
          },
          "highlightMessage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_tickets___schema8"
              },
              {
                "type": "null"
              }
            ],
            "description": "Badge text for a highlighted type, e.g. \"Most popular\"."
          },
          "paymentPlan": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_tickets___schema9"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated: read `paymentPlans` on each release instead. Kept for older clients; set only when every purchasable tier of this type shares one open percent-deposit offer, and then carries that offer's terms. Null otherwise, including when the tiers differ."
          },
          "releases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_tickets___schema10"
            },
            "description": "Price tiers, in sale order. Only tiers this caller is allowed to see are included."
          }
        },
        "required": [
          "id",
          "categoryId",
          "title",
          "description",
          "descriptionDoc",
          "ticketsPerGroup",
          "minPerOrder",
          "maxPerOrder",
          "isHighlighted",
          "highlightMessage",
          "paymentPlan",
          "releases"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema2": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "events_tickets___schema3": {
        "type": "string"
      },
      "events_tickets___schema4": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/events_tickets___schema5"
          },
          "content": {
            "$ref": "#/components/schemas/events_tickets___schema6"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema5": {
        "type": "string",
        "const": "doc"
      },
      "events_tickets___schema6": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/events_tickets___schema7"
        }
      },
      "events_tickets___schema7": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "text"
              },
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4000
              },
              "marks": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "link"
                        },
                        "attrs": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string"
                            },
                            "target": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rel": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "class": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "href"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "type",
                        "attrs"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bold",
                            "italic",
                            "underline",
                            "strike",
                            "code"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "required": [
              "type",
              "text"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "paragraph"
              },
              "attrs": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "content": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/events_tickets___schema7"
                }
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "heading"
              },
              "attrs": {
                "type": "object",
                "properties": {
                  "level": {
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 2
                      },
                      {
                        "type": "number",
                        "const": 3
                      }
                    ]
                  }
                },
                "required": [
                  "level"
                ],
                "additionalProperties": false
              },
              "content": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/events_tickets___schema7"
                }
              }
            },
            "required": [
              "type",
              "attrs"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "bulletList",
                  "orderedList"
                ]
              },
              "attrs": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "content": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/events_tickets___schema7"
                }
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "listItem"
              },
              "attrs": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "content": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/events_tickets___schema7"
                }
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "hardBreak"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "events_tickets___schema8": {
        "type": "string"
      },
      "events_tickets___schema9": {
        "type": "object",
        "properties": {
          "depositBps": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Deposit as basis points of the face value, so 2500 is 25%."
          },
          "installments": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Number of monthly payments after the deposit."
          }
        },
        "required": [
          "depositBps",
          "installments"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema10": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "label": {
            "type": "string",
            "description": "Release name, e.g. \"Tier 2\" or \"Final release\"."
          },
          "pricePennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Price in minor units, so 9500 is £95.00."
          },
          "feeInclusivePricePennies": {
            "description": "The total a buyer pays for one unit including the mandatory booking fee, computed at the type's minimum order size. Advertise THIS figure (UK drip-pricing rules require the fee-inclusive total); `pricePennies` is the face value. The difference is the per-unit booking fee. Additive; absent on older servers.",
            "$ref": "#/components/schemas/events_tickets___schema11"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 code, e.g. \"GBP\"."
          },
          "available": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_tickets___schema12"
              },
              {
                "type": "null"
              }
            ],
            "description": "Tickets left. Null means EITHER unlimited OR the organiser has chosen not to publish counts, so this can never gate a buy button on its own. Use `soldOut`."
          },
          "capacity": {
            "description": "Total allocation, hidden under the same rule as `available`. With it you can show percent sold.",
            "$ref": "#/components/schemas/events_tickets___schema13"
          },
          "closesAt": {
            "description": "When this release stops selling. Null means no cut-off.",
            "$ref": "#/components/schemas/events_tickets___schema14"
          },
          "opensAt": {
            "description": "When this release starts selling. Set alongside `upcoming`, and the target for a countdown.",
            "$ref": "#/components/schemas/events_tickets___schema15"
          },
          "upcoming": {
            "description": "A teaser: listed but not yet purchasable. Takes precedence over `soldOut` and `closed`, which are both false while it holds.",
            "$ref": "#/components/schemas/events_tickets___schema16"
          },
          "soldOut": {
            "type": "boolean",
            "description": "Authoritative. Gate your buy button on this, never on `available`."
          },
          "closed": {
            "type": "boolean",
            "description": "The sale window has ended. Still shown, no longer purchasable."
          },
          "paymentPlans": {
            "description": "Payment plan offers open on this tier for an order placed now, in organiser order. Empty means pay in full only. An offer can disappear with no organiser action as the event approaches and there is no longer time to collect its instalments, so never cache it across a session. A mixed cart may use only an offer that appears on every PAID tier in it; free tiers carry no offers and are ignored, so adding a £0 ticket never removes the plan. Additive; absent on older servers.",
            "$ref": "#/components/schemas/events_tickets___schema17"
          }
        },
        "required": [
          "id",
          "label",
          "pricePennies",
          "currency",
          "available",
          "soldOut",
          "closed"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema11": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "events_tickets___schema12": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "events_tickets___schema13": {
        "anyOf": [
          {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          {
            "type": "null"
          }
        ]
      },
      "events_tickets___schema14": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_tickets___schema15": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_tickets___schema16": {
        "type": "boolean"
      },
      "events_tickets___schema17": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "Pass as `paymentPlanId` on reserve to buy on this plan."
            },
            "name": {
              "type": "string",
              "description": "Organiser-facing name shown to the buyer, e.g. \"Early bird plan\"."
            },
            "deposit": {
              "type": "object",
              "properties": {
                "kind": {
                  "$ref": "#/components/schemas/events_tickets___schema18"
                },
                "value": {
                  "$ref": "#/components/schemas/events_tickets___schema19"
                }
              },
              "required": [
                "kind",
                "value"
              ],
              "additionalProperties": false,
              "description": "What is paid today, before the booking fee. The booking fee is always taken in full with the deposit."
            },
            "installments": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Number of monthly payments after the deposit. Fixed per offer."
            },
            "dueDates": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/events_tickets___schema20"
              },
              "description": "ISO instants of each payment for an order placed NOW: monthly anniversaries of today at 09:00 in the event timezone, the last on or before the settle-by date. Re-read with the catalog; do not cache across a session."
            },
            "payByAt": {
              "type": "string",
              "description": "ISO instant the plan must be fully paid by (the event start minus the offer's margin)."
            }
          },
          "required": [
            "id",
            "name",
            "deposit",
            "installments",
            "dueDates",
            "payByAt"
          ],
          "additionalProperties": false
        }
      },
      "events_tickets___schema18": {
        "type": "string",
        "enum": [
          "percent",
          "fixed"
        ],
        "description": "`percent`: `value` is basis points of the face value (2500 is 25%). `fixed`: `value` is pennies per ticket the buyer PAYS for, capped at the face value. A £0 ticket, or one a buy-N-get-M deal gives away, owes no deposit."
      },
      "events_tickets___schema19": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "events_tickets___schema20": {
        "type": "string"
      },
      "events_tickets___schema21": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "name": {
              "type": "string",
              "description": "Organiser-facing name, e.g. \"Group of four\"."
            },
            "kind": {
              "type": "string",
              "enum": [
                "tiered_percent",
                "tiered_fixed",
                "buy_n_get_m",
                "bundle_price"
              ],
              "description": "Which of the fields below apply, and how `tiers[].value` should be read."
            },
            "applicableReleaseIds": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/events_tickets___schema22"
              },
              "description": "Releases this rule applies to. Empty means the whole order."
            },
            "tiers": {
              "description": "Present for the two tiered kinds.",
              "$ref": "#/components/schemas/events_tickets___schema23"
            },
            "buyQuantity": {
              "description": "The \"buy N\" of a `buy_n_get_m` rule.",
              "$ref": "#/components/schemas/events_tickets___schema24"
            },
            "freeQuantity": {
              "description": "The \"get M free\" of a `buy_n_get_m` rule.",
              "$ref": "#/components/schemas/events_tickets___schema25"
            },
            "freeReleaseId": {
              "description": "For a `buy_n_get_m` rule that gives away a DIFFERENT ticket (\"buy 1 early bird, get a free shuttle bus\"): the release given free. Every full group of `buyQuantity` paid units in scope frees `freeQuantity` units of this release, but only ones the visitor has put in the basket, so add it to the cart alongside the paid ticket. Absent means the same-pool rule: the cheapest units in scope go free.",
              "$ref": "#/components/schemas/events_tickets___schema26"
            },
            "bundleSize": {
              "description": "Tickets per bundle, for `bundle_price`.",
              "$ref": "#/components/schemas/events_tickets___schema27"
            },
            "bundlePricePennies": {
              "description": "Price of one whole bundle, for `bundle_price`.",
              "$ref": "#/components/schemas/events_tickets___schema28"
            },
            "combinableWithPromo": {
              "type": "boolean",
              "description": "Whether a promo code can stack on top of this discount."
            },
            "label": {
              "description": "Ready-to-display wording for this deal, e.g. \"5 for the price of 4\". Prefer it over building a string from the numbers: for `buy_n_get_m` the buyer must add buyQuantity + freeQuantity, so phrasing it as \"buy N, get M free\" tells them to add too few. Fee-inclusive for `bundle_price`. Additive; absent on older servers.",
              "$ref": "#/components/schemas/events_tickets___schema29"
            }
          },
          "required": [
            "id",
            "name",
            "kind",
            "applicableReleaseIds",
            "combinableWithPromo"
          ],
          "additionalProperties": false
        }
      },
      "events_tickets___schema22": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "events_tickets___schema23": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "minQuantity": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Quantity at which this tier starts applying."
            },
            "value": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Basis points off for `tiered_percent` (1000 = 10%), or pennies off per ticket for `tiered_fixed`."
            }
          },
          "required": [
            "minQuantity",
            "value"
          ],
          "additionalProperties": false
        }
      },
      "events_tickets___schema24": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "events_tickets___schema25": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "events_tickets___schema26": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "events_tickets___schema27": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "events_tickets___schema28": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "events_tickets___schema29": {
        "type": "string"
      },
      "events_tickets___schema30": {
        "type": "object",
        "properties": {
          "perTicketPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Fixed booking fee per ticket, in minor units."
          },
          "percentBps": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Percentage of the discounted subtotal, in basis points (300 = 3%)."
          },
          "capPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Hard cap on the fee per order, in minor units. 0 means uncapped."
          },
          "minPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Minimum fee per order, in minor units."
          }
        },
        "required": [
          "perTicketPennies",
          "percentBps",
          "capPennies",
          "minPennies"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema31": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "percentBps": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The percentage taken off, in basis points (1000 = 10%)."
              }
            },
            "required": [
              "percentBps"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "events_tickets___schema32": {
        "type": "object",
        "properties": {
          "consent": {
            "type": "object",
            "properties": {
              "organiserEmail": {
                "type": "string",
                "description": "Label for the organiser marketing-email box. Show it PRE-TICKED (soft opt-in: the buyer is becoming the organiser's customer) and send the result as `orgConsent.email` with `orgEmailBasis: \"soft_opt_in\"`."
              },
              "organiserMessaging": {
                "type": "string",
                "description": "Label for the organiser SMS and WhatsApp box. Show it UNTICKED; it needs a phone number. Send the one result as both `orgConsent.sms` and `orgConsent.whatsapp`."
              },
              "platformEmail": {
                "type": "string",
                "description": "Label for Grofomo's own marketing-email box, asked separately from the organiser's. Send the result as `platformConsent.email`."
              }
            },
            "required": [
              "organiserEmail",
              "organiserMessaging",
              "platformEmail"
            ],
            "additionalProperties": false
          },
          "platformEmailBasis": {
            "type": "string",
            "enum": [
              "consent",
              "soft_opt_in"
            ],
            "description": "How to show the Grofomo box: `soft_opt_in` means pre-ticked, `consent` means unticked. Send it back as `platformEmailBasis`."
          },
          "platformEmailDefaultTicked": {
            "type": "boolean",
            "description": "The initial state of the Grofomo box. Follows `platformEmailBasis`."
          },
          "formVersion": {
            "type": "string",
            "description": "Names the CONSENT wording above. Send it back as `formVersion` on the details step. It does not cover `legal`, which is notice rather than evidence and changes independently."
          },
          "legal": {
            "description": "Legal notices your checkout MUST print. Absent on older servers only; treat its absence as a bug to fix, not as permission to skip the notices.",
            "$ref": "#/components/schemas/events_tickets___schema33"
          }
        },
        "required": [
          "consent",
          "platformEmailBasis",
          "platformEmailDefaultTicked",
          "formVersion"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema33": {
        "type": "object",
        "properties": {
          "attestation": {
            "type": "object",
            "properties": {
              "text": {
                "$ref": "#/components/schemas/events_tickets___schema34"
              },
              "linkText": {
                "$ref": "#/components/schemas/events_tickets___schema35"
              },
              "termsUrl": {
                "$ref": "#/components/schemas/events_tickets___schema36"
              },
              "privacyUrl": {
                "$ref": "#/components/schemas/events_tickets___schema37"
              }
            },
            "required": [
              "text",
              "linkText",
              "termsUrl",
              "privacyUrl"
            ],
            "additionalProperties": false,
            "description": "The 18+ and Terms confirmation. Required on every checkout surface."
          },
          "attribution": {
            "type": "object",
            "properties": {
              "text": {
                "$ref": "#/components/schemas/events_tickets___schema38"
              },
              "url": {
                "$ref": "#/components/schemas/events_tickets___schema39"
              }
            },
            "required": [
              "text",
              "url"
            ],
            "additionalProperties": false,
            "description": "Names Grofomo as the party supplying the booking service and charging the booking fee. A ticket order is two supplies: admission sold by the organiser as principal, and the booking fee charged by Grofomo in its own right. The buyer is entitled to know who they are paying, and it is what makes the fee line on their VAT receipt make sense."
          },
          "organiser": {
            "description": "What the ORGANISER must tell the buyer, as opposed to what Grofomo must. They are the seller and the data controller for this sale, so their privacy notice and their refund position are theirs to supply and cannot be discharged by Grofomo’s own policies. Print it at TICKET SELECTION, not on the payment screen: a refund policy is material information and has to reach the buyer in time to inform the decision to buy.",
            "$ref": "#/components/schemas/events_tickets___schema40"
          }
        },
        "required": [
          "attestation",
          "attribution"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema34": {
        "type": "string",
        "description": "REQUIRED. Print verbatim, immediately next to the control that commits the buyer to pay. It carries two things the sale depends on: the buyer confirming they are 18 or over, and their acceptance of the Grofomo Terms. A checkout that omits it is asking buyers to agree to terms they were never shown."
      },
      "events_tickets___schema35": {
        "type": "string",
        "description": "A verbatim substring of `text`. Wrap exactly this substring in a link to `termsUrl` (open in a new tab). Provided as a substring so you never have to reassemble the sentence yourself."
      },
      "events_tickets___schema36": {
        "type": "string",
        "description": "Link target for `linkText`. The attendee Terms of Service."
      },
      "events_tickets___schema37": {
        "type": "string",
        "description": "The Privacy Policy, for your own footer. Not part of `text`."
      },
      "events_tickets___schema38": {
        "type": "string",
        "description": "REQUIRED. Print somewhere persistently visible on the checkout, e.g. a footer."
      },
      "events_tickets___schema39": {
        "type": "string",
        "description": "Link target for `text`."
      },
      "events_tickets___schema40": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The organiser’s display name, as the seller. Use it wherever you name who the buyer is buying from."
          },
          "privacyPolicyUrl": {
            "description": "REQUIRED to print when present. The organiser’s own privacy notice. They are the controller for everything this checkout collects, so linking only Grofomo’s policy leaves their Article 13 duty undischarged. Absent only where the organiser has not supplied one.",
            "$ref": "#/components/schemas/events_tickets___schema41"
          },
          "refundPolicyLine": {
            "description": "The organiser’s discretionary refund position, already written as a sentence. Absent when they have set none. Print it VERBATIM and on its OWN line, directly above refundCancellationLine.",
            "$ref": "#/components/schemas/events_tickets___schema42"
          },
          "refundCancellationLine": {
            "type": "string",
            "description": "REQUIRED. The statutory floor, which applies whatever the line above says. Print it VERBATIM on a SEPARATE line beneath refundPolicyLine, never joined into one paragraph: the booking fee comes back on a cancellation and does not on a change of mind, so the two read as a contradiction when run together."
          },
          "merchandise": {
            "description": "REQUIRED to print when the order can contain merchandise. Merchandise is goods rather than a dated leisure service, so the buyer usually keeps a statutory right to cancel that a ticket does not carry, and this information must reach them BEFORE the order is placed and be preserved in the confirmation. Absent when the event sells no merchandise.",
            "$ref": "#/components/schemas/events_tickets___schema43"
          }
        },
        "required": [
          "name",
          "refundCancellationLine"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema41": {
        "type": "string"
      },
      "events_tickets___schema42": {
        "type": "string"
      },
      "events_tickets___schema43": {
        "type": "object",
        "properties": {
          "sellerDetails": {
            "type": "string",
            "description": "Who the buyer is buying the goods from, and how to contact them."
          },
          "deliveryInfo": {
            "type": "string",
            "description": "Where the goods ship and how long they take, or that they are collected at the event."
          },
          "returnsInfo": {
            "type": "string",
            "description": "How to cancel and where to send goods back. Telling the seller and returning the goods are two separate steps with two separate deadlines."
          },
          "returnCosts": {
            "type": "string",
            "description": "Who pays return postage."
          },
          "statutoryExceptions": {
            "description": "Any genuine statutory exception, such as goods made to the buyer’s specification. Usually absent.",
            "$ref": "#/components/schemas/events_tickets___schema44"
          }
        },
        "required": [
          "sellerDetails",
          "deliveryInfo",
          "returnsInfo",
          "returnCosts"
        ],
        "additionalProperties": false
      },
      "events_tickets___schema44": {
        "type": "string"
      },
      "tickets_quote___schema0": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "tickets_quote___schema1": {
        "type": "boolean"
      },
      "tickets_quote___schema2": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "percentBps": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The percentage taken off, in basis points (1000 = 10%)."
              },
              "discountPennies": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Its share of `discountPennies`, in minor units."
              }
            },
            "required": [
              "percentBps",
              "discountPennies"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "tickets_quote___schema3": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "The payment plan offer the order is on."
            },
            "name": {
              "type": "string",
              "description": "The organiser's name for the plan, to show the buyer."
            },
            "depositPennies": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "What the payment step charges now: the deposit share of the face value plus the whole booking fee, in minor units."
            },
            "balancePennies": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "The remaining face value, collected over the instalments, in minor units."
            },
            "payByAt": {
              "type": "string",
              "description": "ISO instant the plan must be fully paid by. The last instalment lands on or before it."
            },
            "installments": {
              "minItems": 1,
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/tickets_quote___schema4"
              },
              "description": "The exact schedule the saved card is charged on once the deposit is paid. Show it before the buyer pays."
            }
          },
          "required": [
            "id",
            "name",
            "depositPennies",
            "balancePennies",
            "payByAt",
            "installments"
          ],
          "additionalProperties": false
        }
      },
      "tickets_quote___schema4": {
        "type": "object",
        "properties": {
          "seq": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "1-based position in the schedule."
          },
          "amountPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Charged on `dueAt`, in minor units."
          },
          "dueAt": {
            "type": "string",
            "description": "ISO instant the instalment is taken."
          }
        },
        "required": [
          "seq",
          "amountPennies",
          "dueAt"
        ],
        "additionalProperties": false
      },
      "tickets_quote_request___schema0": {
        "type": "object",
        "properties": {
          "releaseId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "A release id from the ticket availability feed."
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "Units of that release."
          }
        },
        "required": [
          "releaseId",
          "quantity"
        ]
      },
      "tickets_quote_request___schema1": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "tickets_quote_request___schema2": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "tickets_quote_request___schema3": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "tickets_reserve___schema0": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "description": "The rule that gave most. When a giveaway of a different ticket combined with the deal that earned it, this is the larger of the two and `name` names both."
              },
              "name": {
                "type": "string",
                "description": "The discount's name, to show on the receipt line. Both names, joined with \" + \", when a giveaway combined with a deal on the tickets that earned it."
              },
              "discountPennies": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Its share of `discountPennies`."
              }
            },
            "required": [
              "id",
              "name",
              "discountPennies"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "tickets_reserve___schema1": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "tickets_reserve___schema2": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "percentBps": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The percentage taken off, in basis points (1000 = 10%)."
              },
              "discountPennies": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Its share of `discountPennies`, in minor units."
              }
            },
            "required": [
              "percentBps",
              "discountPennies"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "tickets_reserve___schema3": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "The payment plan offer the order is on."
          },
          "name": {
            "type": "string",
            "description": "The organiser's name for the plan, to show the buyer."
          },
          "depositPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "What the payment step charges now: the deposit share of the face value plus the whole booking fee, in minor units."
          },
          "balancePennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The remaining face value, collected over the instalments, in minor units."
          },
          "payByAt": {
            "type": "string",
            "description": "ISO instant the plan must be fully paid by. The last instalment lands on or before it."
          },
          "installments": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/tickets_reserve___schema4"
            },
            "description": "The exact schedule the saved card is charged on once the deposit is paid. Show it before the buyer pays."
          }
        },
        "required": [
          "id",
          "name",
          "depositPennies",
          "balancePennies",
          "payByAt",
          "installments"
        ],
        "additionalProperties": false
      },
      "tickets_reserve___schema4": {
        "type": "object",
        "properties": {
          "seq": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "1-based position in the schedule."
          },
          "amountPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Charged on `dueAt`, in minor units."
          },
          "dueAt": {
            "type": "string",
            "description": "ISO instant the instalment is taken."
          }
        },
        "required": [
          "seq",
          "amountPennies",
          "dueAt"
        ],
        "additionalProperties": false
      },
      "tickets_reserve___schema5": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "description": "The offer id."
            },
            "name": {
              "type": "string",
              "description": "The organiser's label for the offer."
            },
            "targetEventName": {
              "type": "string",
              "description": "The event the code is spent on."
            },
            "targetEventSlug": {
              "type": "string",
              "description": "Slug of the target event, for a link to its storefront."
            },
            "discountType": {
              "type": "string",
              "enum": [
                "percentage",
                "fixed"
              ],
              "description": "How the code discounts: a percentage of the tier price, or a fixed amount off."
            },
            "discountValue": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Basis points for percentage (1000 = 10%), pennies for fixed."
            },
            "codeValidDays": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/tickets_reserve___schema6"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The code expires this many days after purchase; null = never."
            }
          },
          "required": [
            "id",
            "name",
            "targetEventName",
            "targetEventSlug",
            "discountType",
            "discountValue",
            "codeValidDays"
          ],
          "additionalProperties": false
        }
      },
      "tickets_reserve___schema6": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "tickets_reserve_request___schema0": {
        "type": "object",
        "properties": {
          "releaseId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "A release id from the ticket availability feed."
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "Units of that release. Must sit within the type's `minPerOrder` and `maxPerOrder`."
          }
        },
        "required": [
          "releaseId",
          "quantity"
        ]
      },
      "tickets_reserve_request___schema1": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "tickets_reserve_request___schema2": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "tickets_reserve_request___schema3": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "tickets_reserve_request___schema4": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "tickets_reserve_request___schema5": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema6"
          },
          "refId": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema7"
          },
          "utmSource": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema9"
          },
          "utmMedium": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema11"
          },
          "utmCampaign": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema13"
          },
          "utmTerm": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema15"
          },
          "utmContent": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema17"
          },
          "referrer": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema19"
          },
          "gclid": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema21"
          },
          "fbclid": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema23"
          },
          "at": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema25"
          },
          "firstTouch": {
            "description": "The first tagged visit in your attribution window, when you track one. The flat fields are the last touch.",
            "$ref": "#/components/schemas/tickets_reserve_request___schema27"
          }
        },
        "required": [
          "channel"
        ]
      },
      "tickets_reserve_request___schema6": {
        "type": "string",
        "enum": [
          "short_link",
          "poster",
          "artist",
          "affiliate",
          "social",
          "email",
          "whatsapp",
          "sms",
          "ads",
          "discover"
        ],
        "description": "How the buyer arrived. `affiliate` when an affiliate code is in play, `social`, `email`, `whatsapp`, `sms`, `ads` (an ad campaign built through Grofomo, `utm_medium=paid_social`), `discover` (the Grofomo directory), `poster`, `artist` or `short_link` otherwise."
      },
      "tickets_reserve_request___schema7": {
        "description": "Free-text reference for the channel (an affiliate code, a poster id). Analytics only: it never unlocks anything.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema8"
      },
      "tickets_reserve_request___schema8": {
        "type": "string",
        "maxLength": 128
      },
      "tickets_reserve_request___schema9": {
        "description": "`utm_source` from the page URL, when present.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema10"
      },
      "tickets_reserve_request___schema10": {
        "type": "string",
        "maxLength": 128
      },
      "tickets_reserve_request___schema11": {
        "description": "`utm_medium` from the page URL, when present.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema12"
      },
      "tickets_reserve_request___schema12": {
        "type": "string",
        "maxLength": 128
      },
      "tickets_reserve_request___schema13": {
        "description": "`utm_campaign` from the page URL, when present.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema14"
      },
      "tickets_reserve_request___schema14": {
        "type": "string",
        "maxLength": 128
      },
      "tickets_reserve_request___schema15": {
        "description": "`utm_term` from the page URL, when present.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema16"
      },
      "tickets_reserve_request___schema16": {
        "type": "string",
        "maxLength": 128
      },
      "tickets_reserve_request___schema17": {
        "description": "`utm_content` from the page URL, when present.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema18"
      },
      "tickets_reserve_request___schema18": {
        "type": "string",
        "maxLength": 128
      },
      "tickets_reserve_request___schema19": {
        "description": "The referrer HOST only (`document.referrer` with the path stripped). Never send the full URL.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema20"
      },
      "tickets_reserve_request___schema20": {
        "type": "string",
        "maxLength": 256
      },
      "tickets_reserve_request___schema21": {
        "description": "Google click id from the page URL, when present.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema22"
      },
      "tickets_reserve_request___schema22": {
        "type": "string",
        "maxLength": 256
      },
      "tickets_reserve_request___schema23": {
        "description": "Meta click id from the page URL, when present.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema24"
      },
      "tickets_reserve_request___schema24": {
        "type": "string",
        "maxLength": 256
      },
      "tickets_reserve_request___schema25": {
        "description": "When the touch landed, as epoch milliseconds.",
        "$ref": "#/components/schemas/tickets_reserve_request___schema26"
      },
      "tickets_reserve_request___schema26": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "tickets_reserve_request___schema27": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema6"
          },
          "refId": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema7"
          },
          "utmSource": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema9"
          },
          "utmMedium": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema11"
          },
          "utmCampaign": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema13"
          },
          "utmTerm": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema15"
          },
          "utmContent": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema17"
          },
          "referrer": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema19"
          },
          "gclid": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema21"
          },
          "fbclid": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema23"
          },
          "at": {
            "$ref": "#/components/schemas/tickets_reserve_request___schema25"
          }
        },
        "required": [
          "channel"
        ]
      },
      "tickets_reserve_request___schema28": {
        "type": "string",
        "minLength": 8,
        "maxLength": 64
      },
      "tickets_reserve_request___schema29": {
        "type": "boolean"
      },
      "tickets_reserve_request___schema30": {
        "type": "string",
        "maxLength": 512
      },
      "tickets_reserve_request___schema31": {
        "type": "string",
        "maxLength": 2048
      },
      "tickets_details_request___schema0": {
        "type": "string",
        "maxLength": 320,
        "format": "email",
        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
        "description": "Where the tickets are sent. Required."
      },
      "tickets_details_request___schema1": {
        "type": "string",
        "maxLength": 120
      },
      "tickets_details_request___schema2": {
        "type": "string",
        "maxLength": 120
      },
      "tickets_details_request___schema3": {
        "description": "E.164, e.g. +447700900123. Required when `sms` or `whatsapp` consent is `true`.",
        "$ref": "#/components/schemas/tickets_details_request___schema4"
      },
      "tickets_details_request___schema4": {
        "type": "string",
        "maxLength": 20
      },
      "tickets_details_request___schema5": {
        "description": "Marketing email. `true` = agreed, `false` = declined or withdrawn, omitted = you did not ask (leaves any standing choice untouched).",
        "$ref": "#/components/schemas/tickets_details_request___schema6"
      },
      "tickets_details_request___schema6": {
        "type": "boolean"
      },
      "tickets_details_request___schema7": {
        "description": "Marketing SMS. Needs a phone number on the customer. Same three states as `email`.",
        "$ref": "#/components/schemas/tickets_details_request___schema8"
      },
      "tickets_details_request___schema8": {
        "type": "boolean"
      },
      "tickets_details_request___schema9": {
        "description": "App push. Not something a website can ask for: leave it out.",
        "$ref": "#/components/schemas/tickets_details_request___schema10"
      },
      "tickets_details_request___schema10": {
        "type": "boolean"
      },
      "tickets_details_request___schema11": {
        "description": "Postal marketing. Leave it out unless you collect a postal address.",
        "$ref": "#/components/schemas/tickets_details_request___schema12"
      },
      "tickets_details_request___schema12": {
        "type": "boolean"
      },
      "tickets_details_request___schema13": {
        "description": "Marketing WhatsApp. Needs a phone number on the customer. Same three states as `email`.",
        "$ref": "#/components/schemas/tickets_details_request___schema14"
      },
      "tickets_details_request___schema14": {
        "type": "boolean"
      },
      "tickets_details_request___schema15": {
        "type": "object",
        "properties": {
          "email": {
            "$ref": "#/components/schemas/tickets_details_request___schema5"
          },
          "sms": {
            "$ref": "#/components/schemas/tickets_details_request___schema7"
          },
          "push": {
            "$ref": "#/components/schemas/tickets_details_request___schema9"
          },
          "post": {
            "$ref": "#/components/schemas/tickets_details_request___schema11"
          },
          "whatsapp": {
            "$ref": "#/components/schemas/tickets_details_request___schema13"
          }
        }
      },
      "tickets_details_request___schema16": {
        "$ref": "#/components/schemas/tickets_details_request___schema17"
      },
      "tickets_details_request___schema17": {
        "type": "string",
        "enum": [
          "consent",
          "soft_opt_in"
        ]
      },
      "tickets_details_request___schema18": {
        "$ref": "#/components/schemas/tickets_details_request___schema17"
      },
      "tickets_details_request___schema19": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {
          "type": "string"
        }
      },
      "tickets_details_request___schema20": {
        "type": "string",
        "maxLength": 40
      },
      "tickets_details_request___schema21": {
        "maxItems": 200,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/tickets_details_request___schema22"
        }
      },
      "tickets_details_request___schema22": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "ticketId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "required": [
          "questionId",
          "value"
        ]
      },
      "tickets_details_request___schema23": {
        "type": "string",
        "maxLength": 20
      },
      "tickets_details_request___schema24": {
        "type": "boolean"
      },
      "tickets_details_request___schema25": {
        "type": "boolean"
      },
      "tickets_order___schema0": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "The offer the code came from."
          },
          "name": {
            "type": "string",
            "description": "The organiser's label for the offer."
          },
          "targetEventName": {
            "type": "string",
            "description": "The event the code is spent on."
          },
          "targetEventSlug": {
            "type": "string",
            "description": "Slug of the target event. Link to its ticket page with `?promo=<code>` to pre-fill the code."
          },
          "discountType": {
            "type": "string",
            "enum": [
              "percentage",
              "fixed"
            ],
            "description": "How the code discounts: a percentage of the tier price, or a fixed amount off."
          },
          "discountValue": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Basis points for percentage (1000 = 10%), minor units for fixed."
          },
          "applicableReleaseIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/tickets_order___schema1"
            },
            "description": "Release ids on the target event the code discounts. Empty means every tier."
          },
          "code": {
            "type": "string",
            "description": "The personal promo code. It is also emailed to the buyer."
          },
          "expiresAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/tickets_order___schema2"
              },
              {
                "type": "null"
              }
            ],
            "description": "ISO instant the code stops working, or null when it never expires."
          }
        },
        "required": [
          "offerId",
          "name",
          "targetEventName",
          "targetEventSlug",
          "discountType",
          "discountValue",
          "applicableReleaseIds",
          "code",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "tickets_order___schema1": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "tickets_order___schema2": {
        "type": "string"
      },
      "tickets_order___schema3": {
        "type": "object",
        "properties": {
          "shortId": {
            "type": "string",
            "description": "The human order reference printed on the tickets, e.g. \"T-3F9A2C\"."
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "type": "string"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string",
                  "description": "The ticket name as sold, e.g. \"Adult\"."
                },
                "quantity": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "unitPricePennies": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991,
                  "description": "Price per unit after any automatic discount, before the booking fee."
                },
                "lineTotalPennies": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "label",
                "quantity",
                "unitPricePennies",
                "lineTotalPennies"
              ],
              "additionalProperties": false
            }
          },
          "subtotalPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "discountPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "quantityDiscountName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "bookingFeePennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "totalPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "paidTodayPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "paymentPlan": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "description": "The payment plan offer the order is on."
                  },
                  "name": {
                    "type": "string",
                    "description": "The organiser's name for the plan, to show the buyer."
                  },
                  "depositPennies": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "description": "What the payment step charges now: the deposit share of the face value plus the whole booking fee, in minor units."
                  },
                  "balancePennies": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "description": "The remaining face value, collected over the instalments, in minor units."
                  },
                  "payByAt": {
                    "type": "string",
                    "description": "ISO instant the plan must be fully paid by. The last instalment lands on or before it."
                  },
                  "installments": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/tickets_order___schema4"
                    },
                    "description": "The exact schedule the saved card is charged on once the deposit is paid. Show it before the buyer pays."
                  }
                },
                "required": [
                  "id",
                  "name",
                  "depositPennies",
                  "balancePennies",
                  "payByAt",
                  "installments"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "ticketsUrl": {
            "description": "The buyer's own page for this order, with every ticket and its QR code: the same link the confirmation email carries. Set once the order is completed, null before. Link to it from the confirmation page so a buyer whose email lands in junk, or never arrives, still has their tickets.",
            "$ref": "#/components/schemas/tickets_order___schema5"
          }
        },
        "required": [
          "shortId",
          "email",
          "currency",
          "lines",
          "subtotalPennies",
          "discountPennies",
          "quantityDiscountName",
          "bookingFeePennies",
          "totalPennies",
          "paidTodayPennies",
          "paymentPlan"
        ],
        "additionalProperties": false
      },
      "tickets_order___schema4": {
        "type": "object",
        "properties": {
          "seq": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "1-based position in the schedule."
          },
          "amountPennies": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Charged on `dueAt`, in minor units."
          },
          "dueAt": {
            "type": "string",
            "description": "ISO instant the instalment is taken."
          }
        },
        "required": [
          "seq",
          "amountPennies",
          "dueAt"
        ],
        "additionalProperties": false
      },
      "tickets_order___schema5": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "tickets_order___schema6": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "shareUrl": {
                "type": "string"
              },
              "qualifyingTickets": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "tiers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "thresholdTickets": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Tickets that must sell through the code before this reward is earned."
                    },
                    "tierName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "title": {
                      "type": "string",
                      "description": "What they get, e.g. \"5 free drinks\"."
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fulfilmentInstructions": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "thresholdTickets",
                    "tierName",
                    "title",
                    "description",
                    "fulfilmentInstructions"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "code",
              "shareUrl",
              "qualifyingTickets",
              "tiers"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "tickets_funnel_request___schema0": {
        "type": "string",
        "maxLength": 64
      },
      "tickets_funnel_request___schema1": {
        "type": "string",
        "maxLength": 512
      },
      "events_merch___schema0": {
        "type": "string"
      },
      "events_merch___schema1": {
        "type": "number"
      },
      "events_merch___schema2": {
        "type": "string"
      },
      "events_merch___schema3": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Colourway name, e.g. \"Bone\"."
          },
          "hex": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_merch___schema4"
              },
              {
                "type": "null"
              }
            ],
            "description": "Swatch colour, for a colour picker."
          },
          "frontImageUrl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_merch___schema5"
              },
              {
                "type": "null"
              }
            ],
            "description": "Plain garment front, with no logo applied."
          },
          "backImageUrl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_merch___schema6"
              },
              {
                "type": "null"
              }
            ],
            "description": "Plain garment back, with no logo applied."
          },
          "logoColor": {
            "description": "How to treat the logo on this colourway: `auto`, `brand`, `white` or `black`.",
            "$ref": "#/components/schemas/events_merch___schema7"
          },
          "outOfStock": {
            "description": "Show the colourway, but do not let anyone buy it.",
            "$ref": "#/components/schemas/events_merch___schema8"
          }
        },
        "required": [
          "label",
          "hex",
          "frontImageUrl",
          "backImageUrl"
        ],
        "additionalProperties": false
      },
      "events_merch___schema4": {
        "type": "string"
      },
      "events_merch___schema5": {
        "type": "string"
      },
      "events_merch___schema6": {
        "type": "string"
      },
      "events_merch___schema7": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_merch___schema8": {
        "type": "boolean"
      },
      "events_merch___schema9": {
        "type": "object",
        "properties": {
          "side": {
            "type": "string",
            "enum": [
              "front",
              "back"
            ]
          },
          "x": {
            "type": "number",
            "description": "Centre of the logo, as a 0-1 fraction of the garment image width."
          },
          "y": {
            "type": "number",
            "description": "Centre of the logo, as a 0-1 fraction of the garment image height."
          },
          "scale": {
            "type": "number",
            "description": "Logo width, as a 0-1 fraction of the garment image width."
          },
          "recolor": {
            "type": "boolean"
          },
          "logoUrl": {
            "description": "A logo specific to this placement. Absent means use the event logo.",
            "$ref": "#/components/schemas/events_merch___schema10"
          },
          "logoColor": {
            "description": "`auto`, `brand`, `white` or `black`.",
            "$ref": "#/components/schemas/events_merch___schema11"
          },
          "clip": {
            "description": "Mask the logo to the garment silhouette, so a wide placement does not bleed off the edge.",
            "$ref": "#/components/schemas/events_merch___schema12"
          }
        },
        "required": [
          "side",
          "x",
          "y",
          "scale"
        ],
        "additionalProperties": false
      },
      "events_merch___schema10": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_merch___schema11": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_merch___schema12": {
        "type": "boolean"
      },
      "events_merch___schema13": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          },
          "required": [
            "x",
            "y"
          ],
          "additionalProperties": false
        }
      },
      "prelaunch_form___schema0": {
        "type": "string"
      },
      "prelaunch_form___schema1": {
        "type": "string"
      },
      "events_ambassadors___schema0": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The programme's name, e.g. \"Twisted Roots Ambassadors\"."
          },
          "description": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_ambassadors___schema1"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organiser's short pitch for it, or null."
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_ambassadors___schema2"
            },
            "description": "The rules, one per entry, in the order the organiser set. Render as a list. Empty when they have written none."
          },
          "tiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_ambassadors___schema3"
            },
            "description": "The reward ladder, lowest threshold first. Rewards add up: reaching a tier keeps every tier below it."
          }
        },
        "required": [
          "name",
          "description",
          "rules",
          "tiers"
        ],
        "additionalProperties": false
      },
      "events_ambassadors___schema1": {
        "type": "string"
      },
      "events_ambassadors___schema2": {
        "type": "string"
      },
      "events_ambassadors___schema3": {
        "type": "object",
        "properties": {
          "thresholdTickets": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Tickets that must be bought through an Ambassador's link to reach this tier."
          },
          "name": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_ambassadors___schema4"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organiser's name for the tier (\"Ringmaster\"), or null when unnamed."
          },
          "prize": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_ambassadors___schema5"
              },
              {
                "type": "null"
              }
            ],
            "description": "Everything on the tier as one phrase for a sentence: \"2 drinks and a meal\". Null for a tier with no rewards."
          },
          "offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_ambassadors___schema6"
              },
              {
                "type": "null"
              }
            ],
            "description": "The tier as a whole deal: \"Sell 5 tickets, get 2 drinks\". Grofomo's wording; write your own from the fields above if the site says it differently."
          },
          "rewards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/events_ambassadors___schema7"
            },
            "description": "What the tier pays, in the organiser's order."
          }
        },
        "required": [
          "thresholdTickets",
          "name",
          "prize",
          "offer",
          "rewards"
        ],
        "additionalProperties": false
      },
      "events_ambassadors___schema4": {
        "type": "string"
      },
      "events_ambassadors___schema5": {
        "type": "string"
      },
      "events_ambassadors___schema6": {
        "type": "string"
      },
      "events_ambassadors___schema7": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "What the reward is, as the organiser named it, e.g. \"2 free drinks\"."
          },
          "description": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_ambassadors___schema8"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organiser's own detail on the reward, or null."
          },
          "rewardType": {
            "type": "string",
            "enum": [
              "drink",
              "food",
              "merchandise",
              "ticket_refund",
              "custom"
            ],
            "description": "`drink`, `food`, `merchandise`, `ticket_refund` or `custom`."
          },
          "quantity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "How many of it: 2 for \"2 free drinks\". 1 for anything that is not counted."
          },
          "fulfilmentInstructions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_ambassadors___schema9"
              },
              {
                "type": "null"
              }
            ],
            "description": "How it is collected, in the organiser's words (\"At the bar with your app\"), or null."
          }
        },
        "required": [
          "title",
          "description",
          "rewardType",
          "quantity",
          "fulfilmentInstructions"
        ],
        "additionalProperties": false
      },
      "events_ambassadors___schema8": {
        "type": "string"
      },
      "events_ambassadors___schema9": {
        "type": "string"
      },
      "events_ambassadors___schema10": {
        "type": "boolean",
        "description": "Whether the organiser is taking partner applications for this event. Hide the form when false: a submission is refused."
      },
      "events_ambassadors___schema11": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/events_ambassadors___schema12"
        },
        "description": "Choices for \"How many tickets could your crew bring?\"."
      },
      "events_ambassadors___schema12": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "description": "What to send back in the application."
          },
          "label": {
            "type": "string",
            "description": "What to show, e.g. \"10-25\"."
          }
        },
        "required": [
          "value",
          "label"
        ],
        "additionalProperties": false
      },
      "events_ambassadors___schema13": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/events_ambassadors___schema12"
        },
        "description": "Choices for \"How many people do you reach?\"."
      },
      "events_ambassadors_apply_request___schema0": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 32
          },
          {
            "type": "null"
          }
        ]
      },
      "events_ambassadors_apply_request___schema1": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 120
          },
          {
            "type": "null"
          }
        ]
      },
      "events_ambassadors_apply_request___schema2": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "under_10",
              "10_25",
              "25_50",
              "50_plus"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "events_ambassadors_apply_request___schema3": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "under_1k",
              "1k_5k",
              "5k_20k",
              "20k_plus"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "events_ambassadors_apply_request___schema4": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 1000
          },
          {
            "type": "null"
          }
        ]
      },
      "events_ambassadors_apply_request___schema5": {
        "type": "string",
        "maxLength": 500
      },
      "events_carer_tickets___schema0": {
        "type": "string"
      },
      "events_carer_tickets___schema1": {
        "type": "string"
      },
      "events_carer_tickets___schema2": {
        "type": "string",
        "description": "Send this back as `consentVersion` on the application."
      },
      "events_carer_tickets___schema3": {
        "type": "string",
        "description": "Show this beside the upload field, word for word."
      },
      "events_carer_tickets___schema4": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/events_carer_tickets___schema5"
        },
        "description": "Accepted file types."
      },
      "events_carer_tickets___schema5": {
        "type": "string"
      },
      "events_carer_tickets___schema6": {
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 9007199254740991,
        "description": "The largest file accepted."
      },
      "events_carer_match___schema0": {
        "type": "object",
        "properties": {
          "attendeeKey": {
            "type": "string",
            "description": "An opaque key for this ticket, valid for an hour. Send it as `attendeeKey` on the application."
          },
          "firstName": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_carer_match___schema1"
              },
              {
                "type": "null"
              }
            ],
            "description": "The attendee's first name, so the carer can pick the right person on a group order."
          },
          "ticketTypeName": {
            "type": "string",
            "description": "The tier the attendee holds, e.g. \"Weekend Camping\"."
          },
          "carerSlotsLeft": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many more carer tickets this order can take. Zero means one is already issued or waiting."
          }
        },
        "required": [
          "attendeeKey",
          "firstName",
          "ticketTypeName",
          "carerSlotsLeft"
        ],
        "additionalProperties": false
      },
      "events_carer_match___schema1": {
        "type": "string"
      },
      "events_carer_match_request___schema0": {
        "type": "string",
        "minLength": 3,
        "maxLength": 24,
        "description": "The order number on the attendee's ticket email, e.g. `T-4K7Q2M`. Case does not matter."
      },
      "events_carer_match_request___schema1": {
        "description": "The email the attendee bought with. Either this or `attendeeSurname` is required.",
        "$ref": "#/components/schemas/events_carer_match_request___schema2"
      },
      "events_carer_match_request___schema2": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 320
          },
          {
            "type": "null"
          }
        ]
      },
      "events_carer_match_request___schema3": {
        "description": "The attendee's surname as given at checkout. Either this or `attendeeEmail` is required.",
        "$ref": "#/components/schemas/events_carer_match_request___schema4"
      },
      "events_carer_match_request___schema4": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 120
          },
          {
            "type": "null"
          }
        ]
      },
      "events_carer_apply_request___schema0": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 32
          },
          {
            "type": "null"
          }
        ]
      },
      "events_carer_apply_request___schema1": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 1000
          },
          {
            "type": "null"
          }
        ]
      },
      "events_carer_apply_request___schema2": {
        "type": "string",
        "maxLength": 500
      },
      "forms_definition___schema0": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "forms_definition___schema1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "description": "Key this answer under this id when you submit."
          },
          "type": {
            "type": "string",
            "enum": [
              "rating",
              "radio",
              "checkbox",
              "select",
              "textarea",
              "text",
              "email",
              "tel",
              "number",
              "artist_multiselect"
            ],
            "description": "Which control to render."
          },
          "label": {
            "type": "string",
            "maxLength": 300,
            "description": "The question, as the organiser wrote it."
          },
          "help": {
            "description": "Hint text to show under the control.",
            "$ref": "#/components/schemas/forms_definition___schema2"
          },
          "required": {
            "description": "Absent means optional.",
            "$ref": "#/components/schemas/forms_definition___schema3"
          },
          "role": {
            "description": "What the answer means to Grofomo, e.g. `email` promotes it to the contact address.",
            "$ref": "#/components/schemas/forms_definition___schema4"
          },
          "options": {
            "description": "Choices for a radio, checkbox, select or artist picker. Submit the `value`, display the `label`.",
            "$ref": "#/components/schemas/forms_definition___schema5"
          },
          "min": {
            "description": "Lower bound of a rating.",
            "$ref": "#/components/schemas/forms_definition___schema7"
          },
          "max": {
            "description": "Upper bound of a rating.",
            "$ref": "#/components/schemas/forms_definition___schema8"
          },
          "source": {
            "type": "string",
            "enum": [
              "lineup",
              "stages",
              "merch_items"
            ]
          }
        },
        "required": [
          "id",
          "type",
          "label"
        ],
        "additionalProperties": false
      },
      "forms_definition___schema2": {
        "type": "string",
        "maxLength": 500
      },
      "forms_definition___schema3": {
        "type": "boolean"
      },
      "forms_definition___schema4": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "overall_rating",
              "venue_rating",
              "would_return",
              "favourite_artist",
              "favourite_stage",
              "email",
              "name",
              "phone",
              "merch_item",
              "merch_colour",
              "merch_size",
              "quantity"
            ]
          },
          {
            "type": "null"
          }
        ]
      },
      "forms_definition___schema5": {
        "maxItems": 200,
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/forms_definition___schema6"
        }
      },
      "forms_definition___schema6": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "maxLength": 200
          },
          "label": {
            "type": "string",
            "maxLength": 300
          }
        },
        "required": [
          "value",
          "label"
        ],
        "additionalProperties": false
      },
      "forms_definition___schema7": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "forms_definition___schema8": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "forms_definition___schema9": {
        "type": "string"
      },
      "forms_definition___schema10": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Colourway name, e.g. \"Bone\"."
          },
          "hex": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/forms_definition___schema11"
              },
              {
                "type": "null"
              }
            ],
            "description": "Swatch colour, for a colour picker."
          },
          "frontImageUrl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/forms_definition___schema12"
              },
              {
                "type": "null"
              }
            ],
            "description": "Plain garment front, with no logo applied."
          },
          "backImageUrl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/forms_definition___schema13"
              },
              {
                "type": "null"
              }
            ],
            "description": "Plain garment back, with no logo applied."
          },
          "logoColor": {
            "description": "How to treat the logo on this colourway: `auto`, `brand`, `white` or `black`.",
            "$ref": "#/components/schemas/forms_definition___schema14"
          },
          "outOfStock": {
            "description": "Show the colourway, but do not let anyone buy it.",
            "$ref": "#/components/schemas/forms_definition___schema15"
          }
        },
        "required": [
          "label",
          "hex",
          "frontImageUrl",
          "backImageUrl"
        ],
        "additionalProperties": false
      },
      "forms_definition___schema11": {
        "type": "string"
      },
      "forms_definition___schema12": {
        "type": "string"
      },
      "forms_definition___schema13": {
        "type": "string"
      },
      "forms_definition___schema14": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "forms_definition___schema15": {
        "type": "boolean"
      },
      "forms_definition___schema16": {
        "type": "object",
        "properties": {
          "side": {
            "type": "string",
            "enum": [
              "front",
              "back"
            ]
          },
          "x": {
            "type": "number",
            "description": "Centre of the logo, as a 0-1 fraction of the garment image width."
          },
          "y": {
            "type": "number",
            "description": "Centre of the logo, as a 0-1 fraction of the garment image height."
          },
          "scale": {
            "type": "number",
            "description": "Logo width, as a 0-1 fraction of the garment image width."
          },
          "recolor": {
            "type": "boolean"
          },
          "logoUrl": {
            "description": "A logo specific to this placement. Absent means use the event logo.",
            "$ref": "#/components/schemas/forms_definition___schema17"
          },
          "logoColor": {
            "description": "`auto`, `brand`, `white` or `black`.",
            "$ref": "#/components/schemas/forms_definition___schema18"
          },
          "clip": {
            "description": "Mask the logo to the garment silhouette, so a wide placement does not bleed off the edge.",
            "$ref": "#/components/schemas/forms_definition___schema19"
          }
        },
        "required": [
          "side",
          "x",
          "y",
          "scale"
        ],
        "additionalProperties": false
      },
      "forms_definition___schema17": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "forms_definition___schema18": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "forms_definition___schema19": {
        "type": "boolean"
      },
      "forms_definition___schema20": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "x": {
              "type": "number"
            },
            "y": {
              "type": "number"
            }
          },
          "required": [
            "x",
            "y"
          ],
          "additionalProperties": false
        }
      },
      "events_detail___schema0": {
        "type": "string"
      },
      "events_detail___schema1": {
        "type": "string"
      },
      "events_detail___schema2": {
        "type": "string"
      },
      "events_detail___schema3": {
        "type": "string"
      },
      "events_detail___schema4": {
        "type": "string"
      },
      "events_detail___schema5": {
        "type": "string"
      },
      "events_detail___schema6": {
        "type": "string"
      },
      "events_detail___schema7": {
        "type": "string"
      },
      "events_detail___schema8": {
        "type": "string"
      },
      "events_detail___schema9": {
        "type": "string"
      },
      "events_detail___schema10": {
        "type": "string"
      },
      "events_detail___schema11": {
        "type": "string"
      },
      "events_detail___schema12": {
        "type": "string"
      },
      "events_detail___schema13": {
        "type": "string"
      },
      "events_detail___schema14": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable within the event. Matches `stage` on a lineup slot by name, not by id."
          },
          "name": {
            "type": "string"
          },
          "type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_detail___schema15"
              },
              {
                "type": "null"
              }
            ],
            "description": "Free text, e.g. \"tent\"."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "imageUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "description",
          "imageUrl"
        ],
        "additionalProperties": false
      },
      "events_detail___schema15": {
        "type": "string"
      },
      "events_detail___schema16": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/events_detail___schema17"
        },
        "description": "Hex colours, most important first."
      },
      "events_detail___schema17": {
        "type": "string"
      },
      "events_detail___schema18": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema19"
          },
          {
            "type": "null"
          }
        ],
        "description": "Raster logo (PNG/JPG). Null when the mark is SVG-only."
      },
      "events_detail___schema19": {
        "type": "string"
      },
      "events_detail___schema20": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema21"
          },
          {
            "type": "null"
          }
        ],
        "description": "Hosted SVG logo. Prefer this on the web when set, and fall back to `logoUrl`."
      },
      "events_detail___schema21": {
        "type": "string"
      },
      "events_detail___schema22": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema23"
          },
          {
            "type": "null"
          }
        ],
        "description": "Poster or key artwork."
      },
      "events_detail___schema23": {
        "type": "string"
      },
      "events_detail___schema24": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema25"
          },
          {
            "type": "null"
          }
        ],
        "description": "Wide cover image, for a page header."
      },
      "events_detail___schema25": {
        "type": "string"
      },
      "events_detail___schema26": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema27"
          },
          {
            "type": "null"
          }
        ],
        "description": "Hex page background the organiser chose."
      },
      "events_detail___schema27": {
        "type": "string"
      },
      "events_detail___schema28": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema29"
          },
          {
            "type": "null"
          }
        ],
        "description": "Hex foreground paired with `backgroundColor`."
      },
      "events_detail___schema29": {
        "type": "string"
      },
      "events_detail___schema30": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema31"
          },
          {
            "type": "null"
          }
        ],
        "description": "Hex accent for buttons and CTAs. Null means fall back to `brandColors[0]`."
      },
      "events_detail___schema31": {
        "type": "string"
      },
      "events_detail___schema32": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema33"
          },
          {
            "type": "null"
          }
        ],
        "description": "Font name. See `fonts` for something you can actually load."
      },
      "events_detail___schema33": {
        "type": "string"
      },
      "events_detail___schema34": {
        "type": "object",
        "propertyNames": {
          "$ref": "#/components/schemas/events_detail___schema35"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/events_detail___schema36"
        },
        "description": "The event's social profile URLs, keyed by platform slug."
      },
      "events_detail___schema35": {
        "type": "string"
      },
      "events_detail___schema36": {
        "type": "string"
      },
      "events_detail___schema37": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/events_detail___schema38"
          },
          {
            "type": "null"
          }
        ],
        "description": "Site map image, when the organiser has uploaded one."
      },
      "events_detail___schema38": {
        "type": "string"
      },
      "events_detail___schema39": {
        "default": "neutral",
        "type": "string",
        "enum": [
          "neutral",
          "brand",
          "brand-full"
        ]
      },
      "events_detail___schema40": {
        "default": {
          "headline": null,
          "body": null
        },
        "type": "object",
        "properties": {
          "headline": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_detail___schema41"
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/events_detail___schema41"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "headline",
          "body"
        ],
        "additionalProperties": false
      },
      "events_detail___schema41": {
        "type": "object",
        "properties": {
          "family": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "weight": {
            "type": "number"
          }
        },
        "required": [
          "family",
          "url",
          "weight"
        ],
        "additionalProperties": false
      },
      "events_detail___schema42": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "events_detail___schema43": {
        "type": "string"
      },
      "events_detail___schema44": {
        "type": "string",
        "enum": [
          "whatsapp",
          "telegram",
          "discord",
          "signal",
          "other"
        ]
      },
      "events_detail___schema45": {
        "type": "string"
      },
      "events_detail___schema46": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "logoUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "logoUrl"
        ],
        "additionalProperties": false
      },
      "organisers_detail___schema0": {
        "type": "string"
      },
      "organisers_detail___schema1": {
        "type": "string"
      },
      "organisers_detail___schema2": {
        "type": "string"
      },
      "organisers_detail___schema3": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "slug": {
            "type": "string",
            "description": "Pass this to any of the per-event endpoints."
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/organisers_detail___schema4"
              },
              {
                "type": "null"
              }
            ],
            "description": "First day, as `YYYY-MM-DD`."
          },
          "endDate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/organisers_detail___schema5"
              },
              {
                "type": "null"
              }
            ],
            "description": "Last day, as `YYYY-MM-DD`."
          },
          "venueName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/organisers_detail___schema6"
              },
              {
                "type": "null"
              }
            ],
            "description": "Raw ISO 3166-1 alpha-2 code, e.g. \"GB\"."
          },
          "artworkUrl": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/organisers_detail___schema7"
              },
              {
                "type": "null"
              }
            ],
            "description": "Poster or key artwork, for a listing card."
          },
          "logoVectorUrl": {
            "description": "Hosted SVG of the event logo when the organiser uploaded one; prefer it over `artworkUrl` where you can render SVG.",
            "$ref": "#/components/schemas/organisers_detail___schema8"
          },
          "logoBackgroundColor": {
            "description": "Hex colour to sit the card's logo on: the event's page background, else its first brand colour. Null when the organiser set neither.",
            "$ref": "#/components/schemas/organisers_detail___schema9"
          },
          "websiteUrl": {
            "description": "The event's own website when the organiser runs one (their canonical URL); link there in preference to a Grofomo-hosted page.",
            "$ref": "#/components/schemas/organisers_detail___schema10"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "startDate",
          "endDate",
          "venueName",
          "city",
          "country",
          "artworkUrl"
        ],
        "additionalProperties": false
      },
      "organisers_detail___schema4": {
        "type": "string"
      },
      "organisers_detail___schema5": {
        "type": "string"
      },
      "organisers_detail___schema6": {
        "type": "string"
      },
      "organisers_detail___schema7": {
        "type": "string"
      },
      "organisers_detail___schema8": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "organisers_detail___schema9": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "organisers_detail___schema10": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_search___schema0": {
        "type": "string"
      },
      "events_search___schema1": {
        "type": "string"
      },
      "events_search___schema2": {
        "type": "string"
      },
      "events_search___schema3": {
        "type": "string"
      },
      "events_search___schema4": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_search___schema5": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      },
      "events_search___schema6": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ]
      }
    },
    "securitySchemes": {
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Grofomo-Key",
        "description": "A publishable (`pk_live_…`) or secret (`sk_live_…`) key. Publishable keys are safe in browser code; secret keys are server-only and are refused if passed as a `?key=` query parameter."
      }
    }
  }
}