{
  "components": {
    "headers": {
      "API-Version": {
        "description": "Version of the API that served the response.",
        "schema": {
          "example": "2.1.0",
          "type": "string"
        }
      },
      "Deprecation": {
        "description": "RFC 9745 deprecation timestamp when an endpoint is scheduled for replacement.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Limit": {
        "description": "Maximum number of requests permitted in the current rate-limit window.",
        "schema": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "RateLimit-Policy": {
        "description": "IETF RateLimit policy declaration (for example `600;w=60`).",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit-Remaining": {
        "description": "Number of requests remaining in the current rate-limit window.",
        "schema": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until the rate-limit quota resets.",
        "schema": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "Retry-After": {
        "description": "Seconds to wait before retrying after a 429 Too Many Requests response.",
        "schema": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "Sunset": {
        "description": "RFC 8594 HTTP-date after which a deprecated endpoint will be removed (at least 90 days notice).",
        "schema": {
          "type": "string"
        }
      }
    },
    "parameters": {
      "ApiVersion": {
        "description": "Requested API version label (defaults to the current stable version).",
        "in": "header",
        "name": "API-Version",
        "required": false,
        "schema": {
          "default": "2.1.0",
          "type": "string"
        }
      }
    },
    "schemas": {
      "ProblemDetails": {
        "properties": {
          "code": {
            "description": "Machine-readable error code.",
            "type": "string"
          },
          "detail": {
            "description": "Explanation of this specific error.",
            "type": "string"
          },
          "hint": {
            "description": "Actionable recovery guidance for callers.",
            "type": "string"
          },
          "status": {
            "description": "HTTP status code.",
            "type": "integer"
          },
          "title": {
            "description": "Short summary of the error.",
            "type": "string"
          },
          "type": {
            "description": "Stable URI identifying the error class.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "description": "Least-privilege OAuth 2.1 scopes for authenticated operations; public read operations also accept anonymous requests.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://yoga.ferrite.run/oauth/authorize",
            "scopes": {
              "apps:discover": "Discover available operations, schemas, and public metadata.",
              "apps:read": "Read-only access to declared GET and read-only operations.",
              "apps:write": "Invoke mutating operations and asynchronous jobs."
            },
            "tokenUrl": "https://yoga.ferrite.run/oauth/token"
          }
        },
        "type": "oauth2"
      }
    }
  },
  "info": {
    "description": "Northlight Yoga is a sample yoga studio whose classes people, programs and AI assistants book under the same rules. Read the timetable, list open places, hold one for five minutes and book it, free of charge and with no account; every receipt carries a signed link that moves or cancels the booking. Personal Agents start at `/.well-known/poppy.json` and `/poppy/guide`, and can sign a member in to use class packs and memberships. The studio's own calendar, bookings list and settings need a staff sign-in and are not part of this public surface.\n\nVersioning and deprecation policy: endpoints are versioned via URL path and the optional `API-Version` header (current version: 2.1.0). Deprecated endpoints emit RFC 9745 `Deprecation` and RFC 8594 `Sunset` response headers at least 90 days before removal. Rate limits are communicated via IETF `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, `RateLimit-Policy`, and `Retry-After` headers.",
    "title": "ferrite-booking",
    "version": "2.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/bookings": {
      "post": {
        "operationId": "create_booking",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "attendee_email": {
                    "description": "the customer's valid email address",
                    "examples": [
                      "maya@example.org"
                    ],
                    "type": "string"
                  },
                  "attendee_name": {
                    "description": "the customer's full name",
                    "examples": [
                      "Maya Lin"
                    ],
                    "type": "string"
                  },
                  "attendee_phone": {
                    "description": "optional phone",
                    "type": "string"
                  },
                  "attendee_timezone": {
                    "description": "optional IANA timezone from the offered list",
                    "type": "string"
                  },
                  "event_type_id": {
                    "description": "class id or slug",
                    "examples": [
                      "evt_beginners"
                    ],
                    "type": "string"
                  },
                  "hold_id": {
                    "description": "optional 5-minute hold id from reserve_slot",
                    "type": "string"
                  },
                  "idempotency_key": {
                    "description": "a retry key: 24-120 letters, digits, '-' or '_' (a UUID or 32 hex characters; base64 padding '=' is refused). A retry with the same key and identical details returns the same booking, never a second one.",
                    "type": "string"
                  },
                  "notes": {
                    "description": "optional notes for the teacher",
                    "type": "string"
                  },
                  "recovery_secret": {
                    "description": "the secret from begin_booking. A retry returns manage_url again only when it presents this secret; send the same value on every attempt.",
                    "type": "string"
                  },
                  "responses": {
                    "description": "optional answers keyed by the class's booking questions (see list_event_types.questions)",
                    "type": "object"
                  },
                  "start_ms": {
                    "description": "the slot start as epoch milliseconds, in a decimal string, from list_slots",
                    "examples": [
                      "1795858200000"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "event_type_id",
                  "start_ms",
                  "attendee_name",
                  "attendee_email"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "description": "What booking answers with.",
                  "properties": {
                    "attendee_start": {
                      "type": "string"
                    },
                    "booking": {
                      "additionalProperties": false,
                      "description": "One booking.",
                      "properties": {
                        "attendee_email": {
                          "description": "Their email.",
                          "type": "string"
                        },
                        "attendee_name": {
                          "description": "Who booked.",
                          "type": "string"
                        },
                        "attendee_phone": {
                          "description": "Their phone, possibly empty.",
                          "type": "string"
                        },
                        "attendee_timezone": {
                          "description": "Their IANA timezone.",
                          "type": "string"
                        },
                        "created_at_ms": {
                          "description": "When it was created (epoch ms).",
                          "format": "int64",
                          "type": "string"
                        },
                        "end_ms": {
                          "description": "The slot end (epoch ms).",
                          "format": "int64",
                          "type": "string"
                        },
                        "event_title": {
                          "description": "Its title, denormalised for the list.",
                          "type": "string"
                        },
                        "event_type_id": {
                          "description": "The event type booked.",
                          "type": "string"
                        },
                        "host_id": {
                          "description": "The hosting member id.",
                          "type": "string"
                        },
                        "host_name": {
                          "description": "The host's name, denormalised for the list.",
                          "type": "string"
                        },
                        "id": {
                          "description": "The booking id (`book_000401`).",
                          "type": "string"
                        },
                        "location": {
                          "description": "Where it happens.",
                          "type": "string"
                        },
                        "notes": {
                          "description": "The booker's notes.",
                          "type": "string"
                        },
                        "responses": {
                          "description": "The booker's answers to the event type's questions."
                        },
                        "start_ms": {
                          "description": "The slot start (epoch ms).",
                          "format": "int64",
                          "type": "string"
                        },
                        "status": {
                          "description": "`confirmed` | `pending-confirmation` | `tentative` | `cancelled` |\n`denied` | `no-show` | `rescheduled`.",
                          "type": "string"
                        },
                        "uid": {
                          "description": "The stable calendar uid.",
                          "type": "string"
                        },
                        "workflow_run_id": {
                          "description": "The workflow run the creation started.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "uid",
                        "event_type_id",
                        "event_title",
                        "host_id",
                        "host_name",
                        "attendee_name",
                        "attendee_email",
                        "attendee_phone",
                        "attendee_timezone",
                        "start_ms",
                        "end_ms",
                        "status",
                        "location",
                        "notes",
                        "created_at_ms",
                        "workflow_run_id",
                        "responses"
                      ],
                      "type": "object"
                    },
                    "idempotent": {
                      "description": "Whether this was a replay of an earlier admission.",
                      "type": "boolean"
                    },
                    "manage_endpoint": {
                      "type": "string"
                    },
                    "manage_path": {
                      "type": "string"
                    },
                    "manage_token": {
                      "type": "string"
                    },
                    "manage_url": {
                      "type": "string"
                    },
                    "manage_withheld": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "booking",
                    "idempotent"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Default guest booking (free, no account or OAuth sign-in required; Poppy Personal Agents sending Poppy-Session confirm via operations v3). Use it once the customer has agreed the class, the time and their details. Required fields: `event_type_id` (or slug), `start_ms` (decimal string from `list_slots`), `attendee_name`, `attendee_email`. Optional: `attendee_phone`, `attendee_timezone`, `hold_id`, `notes`, `responses` (answers to per-class `questions`), `idempotency_key` (24-120 chars `[A-Za-z0-9_-]`), `recovery_secret` (from `begin_booking`). Example: {\"event_type_id\":\"evt_beginners\",\"start_ms\":\"1795858200000\",\"attendee_name\":\"Maya Lin\",\"attendee_email\":\"maya@example.org\",\"responses\":{\"Have you practised before?\":\"No\"}}. Returns `{ booking: { id, status, host_name, start_ms, ... }, manage_url, manage_path, manage_token }` (409 if full or hold expired).",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/bookings/attempts": {
      "post": {
        "operationId": "begin_booking",
        "parameters": [
          {
            "description": "Recorded for tracing. This operation is not declared idempotent, so a retry may run again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "event_type_id": {
                    "description": "class id or slug",
                    "examples": [
                      "evt_beginners"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "event_type_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "recovery_secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "recovery_secret"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Start a booking attempt before `create_booking` so lost receipts can be recovered safely with their signed `manage_url`. Use it once per booking, and keep the secret until the receipt arrives. Required fields: `event_type_id`. Example: {\"event_type_id\":\"evt_beginners\"}. Returns `{ recovery_secret }`; send it unchanged on every retry with the same `idempotency_key`.",
        "x-idempotent": false,
        "x-read-only": false
      }
    },
    "/api/bookings/manage": {
      "post": {
        "operationId": "manage_booking",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "what to do with the booking",
                    "enum": [
                      "view",
                      "cancel",
                      "reschedule"
                    ],
                    "examples": [
                      "view"
                    ],
                    "type": "string"
                  },
                  "id": {
                    "description": "booking id",
                    "examples": [
                      "book_000001"
                    ],
                    "type": "string"
                  },
                  "request_id": {
                    "description": "stable operation key",
                    "type": "string"
                  },
                  "scope": {
                    "description": "this session only, or every remaining session of its series",
                    "enum": [
                      "occurrence",
                      "series"
                    ],
                    "type": "string"
                  },
                  "start_ms": {
                    "description": "the slot start as epoch milliseconds, in a decimal string, from list_slots",
                    "examples": [
                      "1795858200000"
                    ],
                    "type": "string"
                  },
                  "token": {
                    "description": "signed manage capability: the manage_token from the receipt",
                    "examples": [
                      "<manage_token>"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "token",
                  "action"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "additionalProperties": true,
                      "description": "What booking answers with.",
                      "properties": {
                        "attendee_start": {
                          "type": "string"
                        },
                        "booking": {
                          "additionalProperties": false,
                          "description": "One booking.",
                          "properties": {
                            "attendee_email": {
                              "description": "Their email.",
                              "type": "string"
                            },
                            "attendee_name": {
                              "description": "Who booked.",
                              "type": "string"
                            },
                            "attendee_phone": {
                              "description": "Their phone, possibly empty.",
                              "type": "string"
                            },
                            "attendee_timezone": {
                              "description": "Their IANA timezone.",
                              "type": "string"
                            },
                            "created_at_ms": {
                              "description": "When it was created (epoch ms).",
                              "format": "int64",
                              "type": "string"
                            },
                            "end_ms": {
                              "description": "The slot end (epoch ms).",
                              "format": "int64",
                              "type": "string"
                            },
                            "event_title": {
                              "description": "Its title, denormalised for the list.",
                              "type": "string"
                            },
                            "event_type_id": {
                              "description": "The event type booked.",
                              "type": "string"
                            },
                            "host_id": {
                              "description": "The hosting member id.",
                              "type": "string"
                            },
                            "host_name": {
                              "description": "The host's name, denormalised for the list.",
                              "type": "string"
                            },
                            "id": {
                              "description": "The booking id (`book_000401`).",
                              "type": "string"
                            },
                            "location": {
                              "description": "Where it happens.",
                              "type": "string"
                            },
                            "notes": {
                              "description": "The booker's notes.",
                              "type": "string"
                            },
                            "responses": {
                              "description": "The booker's answers to the event type's questions."
                            },
                            "start_ms": {
                              "description": "The slot start (epoch ms).",
                              "format": "int64",
                              "type": "string"
                            },
                            "status": {
                              "description": "`confirmed` | `pending-confirmation` | `tentative` | `cancelled` |\n`denied` | `no-show` | `rescheduled`.",
                              "type": "string"
                            },
                            "uid": {
                              "description": "The stable calendar uid.",
                              "type": "string"
                            },
                            "workflow_run_id": {
                              "description": "The workflow run the creation started.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "uid",
                            "event_type_id",
                            "event_title",
                            "host_id",
                            "host_name",
                            "attendee_name",
                            "attendee_email",
                            "attendee_phone",
                            "attendee_timezone",
                            "start_ms",
                            "end_ms",
                            "status",
                            "location",
                            "notes",
                            "created_at_ms",
                            "workflow_run_id",
                            "responses"
                          ],
                          "type": "object"
                        },
                        "idempotent": {
                          "description": "Whether this was a replay of an earlier admission.",
                          "type": "boolean"
                        },
                        "manage_endpoint": {
                          "type": "string"
                        },
                        "manage_path": {
                          "type": "string"
                        },
                        "manage_token": {
                          "type": "string"
                        },
                        "manage_url": {
                          "type": "string"
                        },
                        "manage_withheld": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "booking",
                        "idempotent"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "booking": {
                          "additionalProperties": false,
                          "description": "One booking.",
                          "properties": {
                            "attendee_email": {
                              "description": "Their email.",
                              "type": "string"
                            },
                            "attendee_name": {
                              "description": "Who booked.",
                              "type": "string"
                            },
                            "attendee_phone": {
                              "description": "Their phone, possibly empty.",
                              "type": "string"
                            },
                            "attendee_timezone": {
                              "description": "Their IANA timezone.",
                              "type": "string"
                            },
                            "created_at_ms": {
                              "description": "When it was created (epoch ms).",
                              "format": "int64",
                              "type": "string"
                            },
                            "end_ms": {
                              "description": "The slot end (epoch ms).",
                              "format": "int64",
                              "type": "string"
                            },
                            "event_title": {
                              "description": "Its title, denormalised for the list.",
                              "type": "string"
                            },
                            "event_type_id": {
                              "description": "The event type booked.",
                              "type": "string"
                            },
                            "host_id": {
                              "description": "The hosting member id.",
                              "type": "string"
                            },
                            "host_name": {
                              "description": "The host's name, denormalised for the list.",
                              "type": "string"
                            },
                            "id": {
                              "description": "The booking id (`book_000401`).",
                              "type": "string"
                            },
                            "location": {
                              "description": "Where it happens.",
                              "type": "string"
                            },
                            "notes": {
                              "description": "The booker's notes.",
                              "type": "string"
                            },
                            "responses": {
                              "description": "The booker's answers to the event type's questions."
                            },
                            "start_ms": {
                              "description": "The slot start (epoch ms).",
                              "format": "int64",
                              "type": "string"
                            },
                            "status": {
                              "description": "`confirmed` | `pending-confirmation` | `tentative` | `cancelled` |\n`denied` | `no-show` | `rescheduled`.",
                              "type": "string"
                            },
                            "uid": {
                              "description": "The stable calendar uid.",
                              "type": "string"
                            },
                            "workflow_run_id": {
                              "description": "The workflow run the creation started.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "uid",
                            "event_type_id",
                            "event_title",
                            "host_id",
                            "host_name",
                            "attendee_name",
                            "attendee_email",
                            "attendee_phone",
                            "attendee_timezone",
                            "start_ms",
                            "end_ms",
                            "status",
                            "location",
                            "notes",
                            "created_at_ms",
                            "workflow_run_id",
                            "responses"
                          ],
                          "type": "object"
                        },
                        "series": {
                          "type": "boolean"
                        },
                        "slots": {
                          "items": {
                            "properties": {
                              "label": {
                                "type": "string"
                              },
                              "start_ms": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "start_ms",
                              "label"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "booking",
                        "slots",
                        "series"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "bookings": {
                          "type": "array"
                        },
                        "scope": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "scope",
                        "bookings"
                      ],
                      "type": "object"
                    }
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "View, reschedule, or cancel a guest booking without sign-in using the signed capability from `manage_url` (`#id=<id>&token=<token>`). Use it when a guest wants to check, move or cancel a booking they hold the link for. Required fields: `id`, `token`, `action` (`view`|`cancel`|`reschedule`), plus `request_id` (stable key) for `cancel`/`reschedule`, `start_ms` for `reschedule`, and optional `scope` (`occurrence`|`series`). Example: {\"id\":\"book_000001\",\"token\":\"<manage_token>\",\"action\":\"cancel\",\"scope\":\"occurrence\",\"request_id\":\"cancel-1\"}. Returns `{ booking, slots, series }` on `view`, or `{ scope, bookings, manage_token? }` on `cancel`/`reschedule` (cancelling spends the token; rescheduling rotates and returns a new `manage_token`). A Personal Agent cancels with Poppy operations v3 `approver=\"user\"`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/bookings/series": {
      "post": {
        "operationId": "create_booking_series",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "attendee_email": {
                    "description": "the customer's email",
                    "examples": [
                      "maya@example.org"
                    ],
                    "type": "string"
                  },
                  "attendee_name": {
                    "description": "the customer's name",
                    "examples": [
                      "Maya Lin"
                    ],
                    "type": "string"
                  },
                  "attendee_timezone": {
                    "description": "optional IANA timezone from the offered list",
                    "type": "string"
                  },
                  "count": {
                    "description": "how many weekly sessions to book",
                    "examples": [
                      4
                    ],
                    "maximum": 12,
                    "minimum": 2,
                    "type": "integer"
                  },
                  "event_type_id": {
                    "description": "class id or slug",
                    "examples": [
                      "evt_beginners"
                    ],
                    "type": "string"
                  },
                  "idempotency_key": {
                    "description": "a retry key: 24-120 letters, digits, '-' or '_'. It only deduplicates; it never authorises the management links",
                    "type": "string"
                  },
                  "recovery_secret": {
                    "description": "the secret from begin_booking; a retry returns the management links again only when it presents this secret",
                    "type": "string"
                  },
                  "start_ms": {
                    "description": "the slot start as epoch milliseconds, in a decimal string, from list_slots",
                    "examples": [
                      "1795858200000"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "event_type_id",
                  "start_ms",
                  "attendee_name",
                  "attendee_email",
                  "count"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "complete": {
                      "type": "boolean"
                    },
                    "failure": {},
                    "occurrences": {
                      "items": {
                        "additionalProperties": true,
                        "description": "What booking answers with.",
                        "properties": {
                          "attendee_start": {
                            "type": "string"
                          },
                          "booking": {
                            "additionalProperties": false,
                            "description": "One booking.",
                            "properties": {
                              "attendee_email": {
                                "description": "Their email.",
                                "type": "string"
                              },
                              "attendee_name": {
                                "description": "Who booked.",
                                "type": "string"
                              },
                              "attendee_phone": {
                                "description": "Their phone, possibly empty.",
                                "type": "string"
                              },
                              "attendee_timezone": {
                                "description": "Their IANA timezone.",
                                "type": "string"
                              },
                              "created_at_ms": {
                                "description": "When it was created (epoch ms).",
                                "format": "int64",
                                "type": "string"
                              },
                              "end_ms": {
                                "description": "The slot end (epoch ms).",
                                "format": "int64",
                                "type": "string"
                              },
                              "event_title": {
                                "description": "Its title, denormalised for the list.",
                                "type": "string"
                              },
                              "event_type_id": {
                                "description": "The event type booked.",
                                "type": "string"
                              },
                              "host_id": {
                                "description": "The hosting member id.",
                                "type": "string"
                              },
                              "host_name": {
                                "description": "The host's name, denormalised for the list.",
                                "type": "string"
                              },
                              "id": {
                                "description": "The booking id (`book_000401`).",
                                "type": "string"
                              },
                              "location": {
                                "description": "Where it happens.",
                                "type": "string"
                              },
                              "notes": {
                                "description": "The booker's notes.",
                                "type": "string"
                              },
                              "responses": {
                                "description": "The booker's answers to the event type's questions."
                              },
                              "start_ms": {
                                "description": "The slot start (epoch ms).",
                                "format": "int64",
                                "type": "string"
                              },
                              "status": {
                                "description": "`confirmed` | `pending-confirmation` | `tentative` | `cancelled` |\n`denied` | `no-show` | `rescheduled`.",
                                "type": "string"
                              },
                              "uid": {
                                "description": "The stable calendar uid.",
                                "type": "string"
                              },
                              "workflow_run_id": {
                                "description": "The workflow run the creation started.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "uid",
                              "event_type_id",
                              "event_title",
                              "host_id",
                              "host_name",
                              "attendee_name",
                              "attendee_email",
                              "attendee_phone",
                              "attendee_timezone",
                              "start_ms",
                              "end_ms",
                              "status",
                              "location",
                              "notes",
                              "created_at_ms",
                              "workflow_run_id",
                              "responses"
                            ],
                            "type": "object"
                          },
                          "idempotent": {
                            "description": "Whether this was a replay of an earlier admission.",
                            "type": "boolean"
                          },
                          "manage_endpoint": {
                            "type": "string"
                          },
                          "manage_path": {
                            "type": "string"
                          },
                          "manage_token": {
                            "type": "string"
                          },
                          "manage_url": {
                            "type": "string"
                          },
                          "manage_withheld": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "booking",
                          "idempotent"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "resume": {
                      "type": "string"
                    },
                    "series_id": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "series_id",
                    "timezone",
                    "complete",
                    "occurrences",
                    "failure",
                    "resume"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Book 2-12 weekly guest sessions at the same studio local time (signed-out OK; Poppy operations v3). Use it when the customer wants the same class at the same time for several weeks. Required fields: `event_type_id`, `start_ms`, `attendee_name`, `attendee_email`, `count` (2-12). Optional: `attendee_timezone`, `idempotency_key`, `recovery_secret`. Example: {\"event_type_id\":\"evt_vinyasa\",\"start_ms\":\"1795854600000\",\"attendee_name\":\"Maya Lin\",\"attendee_email\":\"maya@example.org\",\"count\":4}. Returns `{ series_id, timezone, complete, occurrences: [{ booking, manage_url, manage_token }], failure, resume }`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/event-types": {
      "get": {
        "operationId": "list_event_types",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "drop_in_price": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "event_types": {
                      "items": {
                        "additionalProperties": true,
                        "description": "One bookable event type.",
                        "properties": {
                          "active": {
                            "description": "Whether it can be booked at all.",
                            "type": "boolean"
                          },
                          "booking_count": {
                            "description": "How many bookings it currently carries, any status.",
                            "type": "integer"
                          },
                          "color": {
                            "description": "Its calendar colour.",
                            "type": "string"
                          },
                          "description": {
                            "description": "What the meeting is for.",
                            "type": "string"
                          },
                          "drop_in_price": {
                            "description": "Single-class cash drop-in price. Always null at Northlight Yoga because booking a single class is free.",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "duration_minutes": {
                            "description": "How long one slot lasts.",
                            "type": "integer"
                          },
                          "hidden": {
                            "description": "Whether it is hidden from the public listing.",
                            "type": "boolean"
                          },
                          "host_ids": {
                            "description": "The team members who can host it.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "id": {
                            "description": "The event type id (`evt_arch_review`).",
                            "type": "string"
                          },
                          "location": {
                            "description": "Where it happens.",
                            "type": "string"
                          },
                          "pricing_model": {
                            "description": "Human-readable pricing model summary (e.g. 'booking is free; packs and memberships optional').",
                            "type": "string"
                          },
                          "questions": {
                            "description": "The questions a booker answers.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "requires_confirmation": {
                            "description": "Whether a booking starts `pending-confirmation` rather than `confirmed`.",
                            "type": "boolean"
                          },
                          "seats_per_slot": {
                            "description": "How many attendees one slot admits.",
                            "type": "integer"
                          },
                          "slug": {
                            "description": "The URL slug the public booking page lives under.",
                            "type": "string"
                          },
                          "title": {
                            "description": "The display title.",
                            "type": "string"
                          },
                          "workflow_ids": {
                            "description": "The workflows that run on its bookings.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "title",
                          "description",
                          "duration_minutes",
                          "location",
                          "requires_confirmation",
                          "seats_per_slot",
                          "active",
                          "hidden",
                          "color",
                          "host_ids",
                          "questions",
                          "workflow_ids",
                          "booking_count"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pricing_model": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "event_types"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "List every bookable class with its duration, seats per session, teacher IDs, optional per-class booking questions (`questions`), and drop-in pricing (`drop_in_price: null`, `pricing_model`). Use it first, to find the class a customer wants and its id. Required fields: none. Example: GET /api/event-types. Returns `{ event_types: [...], drop_in_price: null, pricing_model }`.",
        "x-idempotent": true,
        "x-read-only": true
      }
    },
    "/api/event-types/{id}/slots": {
      "get": {
        "operationId": "list_slots",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "event_type_id or slug",
              "examples": [
                "beginners-yoga"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "description": "how many days ahead to look, 14 unless given",
              "maximum": 60,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "teacher_id",
            "required": false,
            "schema": {
              "description": "optional teacher id (e.g. mem_mira, mem_nadia, mem_karim)",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "description": "optional attendee display timezone",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "drop_in_price": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "now_ms": {
                      "type": "string"
                    },
                    "pricing_model": {
                      "type": "string"
                    },
                    "questions": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "slots": {
                      "items": {
                        "additionalProperties": true,
                        "description": "One open slot.",
                        "properties": {
                          "end_ms": {
                            "description": "The slot end (epoch ms).",
                            "format": "int64",
                            "type": "string"
                          },
                          "seats_remaining": {
                            "description": "Seats still open.",
                            "type": "integer"
                          },
                          "start_ms": {
                            "description": "The slot start (epoch ms).",
                            "format": "int64",
                            "type": "string"
                          },
                          "timezone": {
                            "description": "The host's IANA timezone.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "start_ms",
                          "end_ms",
                          "seats_remaining",
                          "timezone"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "slots",
                    "now_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "List open sessions for one class over the next `days` days (default 14, max 60). Use it before holding or booking, because it is the only source of a valid `start_ms`. Required fields: `id` (event_type_id or slug, e.g. `beginners-yoga` or `evt_beginners`). Optional: `timezone` (IANA), `teacher_id` (`mem_mira`, `mem_nadia`, `mem_karim`), `days` (1-60). Example: GET /api/event-types/beginners-yoga/slots?days=14&timezone=Europe/London. Returns `{ slots: [{ start_ms, local_start, seats_remaining, ... }], now_ms, questions, drop_in_price: null, pricing_model }`.",
        "x-idempotent": true,
        "x-read-only": true
      }
    },
    "/api/holds": {
      "post": {
        "operationId": "reserve_slot",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "attendee_email": {
                    "description": "the customer's email",
                    "examples": [
                      "maya@example.org"
                    ],
                    "type": "string"
                  },
                  "event_type_id": {
                    "description": "class id or slug",
                    "examples": [
                      "evt_beginners"
                    ],
                    "type": "string"
                  },
                  "start_ms": {
                    "description": "the slot start as epoch milliseconds, in a decimal string, from list_slots",
                    "examples": [
                      "1795858200000"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "event_type_id",
                  "start_ms",
                  "attendee_email"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "description": "One five-minute slot hold.",
                  "properties": {
                    "attendee_email": {
                      "description": "Who holds it.",
                      "type": "string"
                    },
                    "end_ms": {
                      "description": "The slot end (epoch ms).",
                      "format": "int64",
                      "type": "string"
                    },
                    "event_type_id": {
                      "description": "The event type held.",
                      "type": "string"
                    },
                    "expires_at_ms": {
                      "description": "When the hold lapses (epoch ms).",
                      "format": "int64",
                      "type": "string"
                    },
                    "id": {
                      "description": "The hold id.",
                      "type": "string"
                    },
                    "start_ms": {
                      "description": "The slot start (epoch ms).",
                      "format": "int64",
                      "type": "string"
                    },
                    "status": {
                      "description": "`held` | `released` | `converted` | `expired`.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "event_type_id",
                    "attendee_email",
                    "start_ms",
                    "end_ms",
                    "status",
                    "expires_at_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Hold one seat for 5 minutes while confirming with the customer (signed-out OK). Use it when the customer has chosen a time but still has to confirm the details. Required fields: `event_type_id`, `start_ms`, `attendee_email`. Example: {\"event_type_id\":\"evt_beginners\",\"start_ms\":\"1795858200000\",\"attendee_email\":\"maya@example.org\"}. Returns `{ id, event_type_id, start_ms, expires_at_ms, status: \"held\" }`; pass `id` as `hold_id` to `create_booking`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/holds/release": {
      "post": {
        "operationId": "release_hold",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "hold_id": {
                    "description": "the hold id from reserve_slot",
                    "examples": [
                      "hold_000001"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "hold_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "description": "One five-minute slot hold.",
                  "properties": {
                    "attendee_email": {
                      "description": "Who holds it.",
                      "type": "string"
                    },
                    "end_ms": {
                      "description": "The slot end (epoch ms).",
                      "format": "int64",
                      "type": "string"
                    },
                    "event_type_id": {
                      "description": "The event type held.",
                      "type": "string"
                    },
                    "expires_at_ms": {
                      "description": "When the hold lapses (epoch ms).",
                      "format": "int64",
                      "type": "string"
                    },
                    "id": {
                      "description": "The hold id.",
                      "type": "string"
                    },
                    "start_ms": {
                      "description": "The slot start (epoch ms).",
                      "format": "int64",
                      "type": "string"
                    },
                    "status": {
                      "description": "`held` | `released` | `converted` | `expired`.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "event_type_id",
                    "attendee_email",
                    "start_ms",
                    "end_ms",
                    "status",
                    "expires_at_ms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Release an unused 5-minute hold before it lapses so the seat returns immediately. Use it when the customer changes their mind. Required fields: `hold_id`. Example: {\"hold_id\":\"hold_000001\"}. Returns `{ id, status: \"released\" }` (409 if already converted to a booking).",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/me/account": {
      "get": {
        "operationId": "get_my_account",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "account": {
                      "type": "object"
                    },
                    "bookings": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "upcoming_bookings_count": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "account",
                    "upcoming_bookings_count",
                    "bookings"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Optional signed-in member operation (OAuth scope `bookings:read`; not needed for guest bookings). Use it to read the member's profile, plan and remaining credits. Required fields: none. Example: GET /api/me/account (with Bearer token + Poppy-Session). Returns `{ account, upcoming_bookings_count, bookings }`.",
        "x-idempotent": true,
        "x-read-only": true
      }
    },
    "/api/me/bookings": {
      "get": {
        "operationId": "list_my_bookings",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "description": "which bookings to list",
              "enum": [
                "upcoming",
                "all",
                "past",
                "confirmed",
                "cancelled"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "account_id": {
                      "type": "string"
                    },
                    "bookings": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "email": {
                      "type": "string"
                    },
                    "filter": {
                      "type": "string"
                    },
                    "waitlist": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "account_id",
                    "bookings",
                    "waitlist"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Optional signed-in member operation (OAuth scope `bookings:read`; not needed for guest bookings). Use it to find the `booking_id` of a class the member wants to check or cancel. Required fields: none. Optional: `status` (`upcoming`|`all`|`past`|`confirmed`|`cancelled`). Example: GET /api/me/bookings?status=upcoming. Returns `{ account_id, email, filter, bookings, waitlist }`.",
        "x-idempotent": true,
        "x-read-only": true
      },
      "post": {
        "operationId": "book_with_membership",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "attendee_timezone": {
                    "description": "optional IANA timezone",
                    "type": "string"
                  },
                  "event_type_id": {
                    "description": "class id or slug",
                    "examples": [
                      "evt_beginners"
                    ],
                    "type": "string"
                  },
                  "hold_id": {
                    "description": "optional prior hold id",
                    "type": "string"
                  },
                  "idempotency_key": {
                    "description": "optional retry key (24-120 chars)",
                    "type": "string"
                  },
                  "notes": {
                    "description": "optional note for the teacher",
                    "type": "string"
                  },
                  "responses": {
                    "description": "optional map of answers to the class's booking questions (from list_event_types.questions)",
                    "type": "object"
                  },
                  "start_ms": {
                    "description": "the slot start as epoch milliseconds, in a decimal string, from list_slots",
                    "examples": [
                      "1795858200000"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "event_type_id",
                  "start_ms"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "description": "What booking answers with.",
                  "properties": {
                    "attendee_start": {
                      "type": "string"
                    },
                    "booking": {
                      "additionalProperties": false,
                      "description": "One booking.",
                      "properties": {
                        "attendee_email": {
                          "description": "Their email.",
                          "type": "string"
                        },
                        "attendee_name": {
                          "description": "Who booked.",
                          "type": "string"
                        },
                        "attendee_phone": {
                          "description": "Their phone, possibly empty.",
                          "type": "string"
                        },
                        "attendee_timezone": {
                          "description": "Their IANA timezone.",
                          "type": "string"
                        },
                        "created_at_ms": {
                          "description": "When it was created (epoch ms).",
                          "format": "int64",
                          "type": "string"
                        },
                        "end_ms": {
                          "description": "The slot end (epoch ms).",
                          "format": "int64",
                          "type": "string"
                        },
                        "event_title": {
                          "description": "Its title, denormalised for the list.",
                          "type": "string"
                        },
                        "event_type_id": {
                          "description": "The event type booked.",
                          "type": "string"
                        },
                        "host_id": {
                          "description": "The hosting member id.",
                          "type": "string"
                        },
                        "host_name": {
                          "description": "The host's name, denormalised for the list.",
                          "type": "string"
                        },
                        "id": {
                          "description": "The booking id (`book_000401`).",
                          "type": "string"
                        },
                        "location": {
                          "description": "Where it happens.",
                          "type": "string"
                        },
                        "notes": {
                          "description": "The booker's notes.",
                          "type": "string"
                        },
                        "responses": {
                          "description": "The booker's answers to the event type's questions."
                        },
                        "start_ms": {
                          "description": "The slot start (epoch ms).",
                          "format": "int64",
                          "type": "string"
                        },
                        "status": {
                          "description": "`confirmed` | `pending-confirmation` | `tentative` | `cancelled` |\n`denied` | `no-show` | `rescheduled`.",
                          "type": "string"
                        },
                        "uid": {
                          "description": "The stable calendar uid.",
                          "type": "string"
                        },
                        "workflow_run_id": {
                          "description": "The workflow run the creation started.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "uid",
                        "event_type_id",
                        "event_title",
                        "host_id",
                        "host_name",
                        "attendee_name",
                        "attendee_email",
                        "attendee_phone",
                        "attendee_timezone",
                        "start_ms",
                        "end_ms",
                        "status",
                        "location",
                        "notes",
                        "created_at_ms",
                        "workflow_run_id",
                        "responses"
                      ],
                      "type": "object"
                    },
                    "idempotent": {
                      "description": "Whether this was a replay of an earlier admission.",
                      "type": "boolean"
                    },
                    "manage_endpoint": {
                      "type": "string"
                    },
                    "manage_path": {
                      "type": "string"
                    },
                    "manage_token": {
                      "type": "string"
                    },
                    "manage_url": {
                      "type": "string"
                    },
                    "manage_withheld": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "booking",
                    "idempotent"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Optional signed-in member alternative (OAuth scope `bookings:write`, Poppy operations v3) for studio members redeeming an active class pack or monthly membership. Use it when a signed-in member wants to spend a credit; for guests without an account, use `create_booking` instead. Required fields: `event_type_id`, `start_ms`. Optional: `attendee_timezone`, `hold_id`, `notes`, `responses`, `idempotency_key`. Example: {\"event_type_id\":\"evt_beginners\",\"start_ms\":\"1795858200000\"}. Returns `{ booking, manage_url, manage_token, membership_billing }`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/me/bookings/cancel": {
      "post": {
        "operationId": "cancel_my_booking",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "booking_id": {
                    "description": "the booking id to cancel, from list_my_bookings",
                    "examples": [
                      "book_000001"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "booking_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "booking": {
                      "type": "object"
                    },
                    "cancelled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "cancelled",
                    "booking"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Optional signed-in member cancellation (OAuth scope `bookings:write`, requires Poppy operations v3 `approver=\"user\"`). For guest bookings, use `manage_booking` with `manage_token` instead. Use it when the member asks to give up a class booked under their account. Required fields: `booking_id`. Example: {\"booking_id\":\"book_000001\"}. Returns `{ cancelled: true, credit_refunded, booking }`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/me/memberships/manage": {
      "post": {
        "operationId": "manage_membership",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "action": {
                    "description": "what to do with the membership",
                    "enum": [
                      "pause",
                      "resume",
                      "cancel"
                    ],
                    "examples": [
                      "pause"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "action"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "account_id": {
                      "type": "string"
                    },
                    "subscription": {
                      "type": "object"
                    },
                    "updated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "updated",
                    "subscription"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Optional signed-in member operation (OAuth scope `memberships:write`, requires Poppy operations v3 `approver=\"user\"`). Use it to pause, resume or cancel the membership the member already has. Required fields: `action` (`pause`|`resume`|`cancel`). Example: {\"action\":\"pause\"}. Returns `{ updated: true, account_id, subscription }`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/me/memberships/subscribe": {
      "post": {
        "operationId": "subscribe_membership",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "plan_id": {
                    "description": "the plan, from list_memberships",
                    "enum": [
                      "plan_5pack",
                      "plan_monthly",
                      "plan_founding"
                    ],
                    "examples": [
                      "plan_monthly"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "plan_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "account_id": {
                      "type": "string"
                    },
                    "subscribed": {
                      "type": "boolean"
                    },
                    "subscription": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "subscribed",
                    "subscription"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Optional signed-in member operation (OAuth scope `memberships:write`, requires Poppy operations v3 `approver=\"user\"`). Use it to start a pack or membership from `list_memberships` for the member; no payment is taken. Required fields: `plan_id` (`plan_5pack`|`plan_monthly`|`plan_founding`). Example: {\"plan_id\":\"plan_monthly\"}. Returns `{ subscribed: true, account_id, subscription }`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/memberships": {
      "get": {
        "operationId": "list_memberships",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "drop_in_price": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "plans": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pricing_model": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "plans"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "List optional Northlight Yoga class packs and monthly memberships (never required for single-class guest bookings, which are free). Use it when the customer asks about prices, packs or memberships. Required fields: none. Example: GET /api/memberships. Returns `{ plans: [{ id, name, billing, price_usd, credits_included, perks }], drop_in_price: null, pricing_model }`.",
        "x-idempotent": true,
        "x-read-only": true
      }
    },
    "/api/public/{slug}": {
      "get": {
        "operationId": "get_public_page",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "description": "the class slug",
              "examples": [
                "beginners-yoga"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "drop_in_price": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "event_type": {
                      "additionalProperties": true,
                      "description": "One bookable event type.",
                      "properties": {
                        "active": {
                          "description": "Whether it can be booked at all.",
                          "type": "boolean"
                        },
                        "booking_count": {
                          "description": "How many bookings it currently carries, any status.",
                          "type": "integer"
                        },
                        "color": {
                          "description": "Its calendar colour.",
                          "type": "string"
                        },
                        "description": {
                          "description": "What the meeting is for.",
                          "type": "string"
                        },
                        "drop_in_price": {
                          "description": "Single-class cash drop-in price. Always null at Northlight Yoga because booking a single class is free.",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "duration_minutes": {
                          "description": "How long one slot lasts.",
                          "type": "integer"
                        },
                        "hidden": {
                          "description": "Whether it is hidden from the public listing.",
                          "type": "boolean"
                        },
                        "host_ids": {
                          "description": "The team members who can host it.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "id": {
                          "description": "The event type id (`evt_arch_review`).",
                          "type": "string"
                        },
                        "location": {
                          "description": "Where it happens.",
                          "type": "string"
                        },
                        "pricing_model": {
                          "description": "Human-readable pricing model summary (e.g. 'booking is free; packs and memberships optional').",
                          "type": "string"
                        },
                        "questions": {
                          "description": "The questions a booker answers.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "requires_confirmation": {
                          "description": "Whether a booking starts `pending-confirmation` rather than `confirmed`.",
                          "type": "boolean"
                        },
                        "seats_per_slot": {
                          "description": "How many attendees one slot admits.",
                          "type": "integer"
                        },
                        "slug": {
                          "description": "The URL slug the public booking page lives under.",
                          "type": "string"
                        },
                        "title": {
                          "description": "The display title.",
                          "type": "string"
                        },
                        "workflow_ids": {
                          "description": "The workflows that run on its bookings.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "title",
                        "description",
                        "duration_minutes",
                        "location",
                        "requires_confirmation",
                        "seats_per_slot",
                        "active",
                        "hidden",
                        "color",
                        "host_ids",
                        "questions",
                        "workflow_ids",
                        "booking_count"
                      ],
                      "type": "object"
                    },
                    "owner": {
                      "additionalProperties": false,
                      "description": "The calendar owner's profile.",
                      "properties": {
                        "business_name": {
                          "description": "The business the calendar belongs to, as customers see it.",
                          "type": "string"
                        },
                        "default_end_minute": {
                          "description": "The default working day end, minutes past midnight.",
                          "type": "integer"
                        },
                        "default_start_minute": {
                          "description": "The default working day start, minutes past midnight.",
                          "type": "integer"
                        },
                        "email": {
                          "description": "Their email.",
                          "type": "string"
                        },
                        "name": {
                          "description": "Their name.",
                          "type": "string"
                        },
                        "phone": {
                          "description": "Their phone number.",
                          "type": "string"
                        },
                        "timezone": {
                          "description": "Their IANA timezone.",
                          "type": "string"
                        },
                        "user_id": {
                          "description": "The owner's user id.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "user_id",
                        "name",
                        "business_name",
                        "email",
                        "phone",
                        "timezone",
                        "default_start_minute",
                        "default_end_minute"
                      ],
                      "type": "object"
                    },
                    "pricing_model": {
                      "type": "string"
                    },
                    "slots": {
                      "items": {
                        "additionalProperties": false,
                        "description": "One open slot.",
                        "properties": {
                          "end_ms": {
                            "description": "The slot end (epoch ms).",
                            "format": "int64",
                            "type": "string"
                          },
                          "seats_remaining": {
                            "description": "Seats still open.",
                            "type": "integer"
                          },
                          "start_ms": {
                            "description": "The slot start (epoch ms).",
                            "format": "int64",
                            "type": "string"
                          },
                          "timezone": {
                            "description": "The host's IANA timezone.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "start_ms",
                          "end_ms",
                          "seats_remaining",
                          "timezone"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "timezones": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "event_type",
                    "slots",
                    "timezones"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Read the public booking page payload for one class slug (including per-class `questions`, `drop_in_price: null`, `pricing_model`, open `slots`, and `timezones`). Use it to get one class and its open times in a single call. Required fields: `slug` (e.g. `beginners-yoga`). Example: GET /api/public/beginners-yoga. Returns `{ owner, event_type, slots, timezones, drop_in_price: null, pricing_model }`.",
        "x-idempotent": true,
        "x-read-only": true
      }
    },
    "/api/routing/responses": {
      "post": {
        "operationId": "submit_routing_response",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "company_size": {
                    "description": "group size, 1 for an individual",
                    "examples": [
                      1
                    ],
                    "type": "integer"
                  },
                  "email": {
                    "description": "their email",
                    "examples": [
                      "maya@example.org"
                    ],
                    "type": "string"
                  },
                  "intent": {
                    "description": "what they want",
                    "type": "string"
                  },
                  "name": {
                    "description": "who is asking",
                    "examples": [
                      "Maya Lin"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "email",
                  "company_size"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "description": "One inbound routing response.",
                  "properties": {
                    "company_size": {
                      "description": "Their company size.",
                      "type": "integer"
                    },
                    "email": {
                      "description": "Their email.",
                      "type": "string"
                    },
                    "id": {
                      "description": "The response id.",
                      "type": "string"
                    },
                    "intent": {
                      "description": "What they want.",
                      "type": "string"
                    },
                    "matched_rule_id": {
                      "description": "The rule that matched, absent when none did.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "description": "The prospect's name.",
                      "type": "string"
                    },
                    "routed_to": {
                      "description": "Who it was routed to.",
                      "type": "string"
                    },
                    "status": {
                      "description": "`routed` | `needs-review` | `booked`.",
                      "type": "string"
                    },
                    "submitted_at_ms": {
                      "description": "When it arrived (epoch ms).",
                      "format": "int64",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "submitted_at_ms",
                    "name",
                    "email",
                    "company_size",
                    "intent",
                    "routed_to",
                    "status"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Send the studio an enquiry (signed-out OK). Use it for a question or request that booking a class does not cover. Required fields: `name`, `email`, `company_size` (integer; 1 for an individual). Optional: `intent`. Example: {\"name\":\"Maya Lin\",\"email\":\"maya@example.org\",\"company_size\":1,\"intent\":\"Private session inquiry\"}. Returns `{ id, status, routed_to }`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    },
    "/api/teachers": {
      "get": {
        "operationId": "list_teachers",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "teachers": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "teachers"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "List active Northlight Yoga teachers with bios, specialties, certifications, and classes (including each class's `questions` and `drop_in_price: null`). Use it when the customer asks who teaches, or wants a class with a particular teacher. Required fields: none. Example: GET /api/teachers. Returns `{ teachers: [{ id, name, bio, specialties, classes }] }`.",
        "x-idempotent": true,
        "x-read-only": true
      }
    },
    "/api/teachers/{teacher_id}/slots": {
      "get": {
        "operationId": "get_teacher_schedule",
        "parameters": [
          {
            "in": "path",
            "name": "teacher_id",
            "required": true,
            "schema": {
              "description": "teacher id (mem_mira, mem_nadia, mem_karim) or teacher name",
              "examples": [
                "mem_karim"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "days",
            "required": false,
            "schema": {
              "description": "how many days ahead to look, 14 unless given",
              "maximum": 30,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "description": "optional attendee display timezone",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "sessions": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "teacher": {
                      "type": "object"
                    },
                    "timezone": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "teacher",
                    "timezone",
                    "sessions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "List upcoming open sessions taught by one teacher over the next `days` days (default 14). Use it when the customer chooses the teacher before the class. Required fields: `teacher_id` (`mem_mira`, `mem_nadia`, `mem_karim`, or teacher name). Optional: `timezone`, `days` (1-30). Example: GET /api/teachers/mem_karim/slots?days=14. Returns `{ teacher, timezone, sessions: [{ event_type_id, slug, start_ms, start_iso, seats_left, questions, drop_in_price, pricing_model }] }`.",
        "x-idempotent": true,
        "x-read-only": true
      }
    },
    "/api/waitlist": {
      "post": {
        "operationId": "join_waitlist",
        "parameters": [
          {
            "description": "Retry-safe: a request repeating this key returns the first result instead of running again.",
            "in": "header",
            "name": "idempotency-key",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "attendee_email": {
                    "description": "their email",
                    "examples": [
                      "maya@example.org"
                    ],
                    "type": "string"
                  },
                  "attendee_name": {
                    "description": "who is waiting",
                    "examples": [
                      "Maya Lin"
                    ],
                    "type": "string"
                  },
                  "event_type_id": {
                    "description": "class id or slug",
                    "examples": [
                      "evt_beginners"
                    ],
                    "type": "string"
                  },
                  "start_ms": {
                    "description": "the slot start as epoch milliseconds, in a decimal string, from list_slots",
                    "examples": [
                      "1795858200000"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "event_type_id",
                  "attendee_name",
                  "attendee_email"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "description": "What joining the waitlist answers with.",
                  "properties": {
                    "entry": {
                      "additionalProperties": false,
                      "description": "One waitlist entry.",
                      "properties": {
                        "attendee_email": {
                          "description": "Their email.",
                          "type": "string"
                        },
                        "attendee_name": {
                          "description": "Who is waiting.",
                          "type": "string"
                        },
                        "created_ms": {
                          "description": "When they joined (epoch ms).",
                          "format": "int64",
                          "type": "string"
                        },
                        "event_type_id": {
                          "description": "The event type waited for.",
                          "type": "string"
                        },
                        "id": {
                          "description": "The entry id.",
                          "type": "string"
                        },
                        "requested_start_ms": {
                          "description": "The slot they want, absent for any slot.",
                          "format": "int64",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "description": "`waiting` | `promoted` | `promotion-retry`.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "event_type_id",
                        "attendee_name",
                        "attendee_email",
                        "status",
                        "created_ms"
                      ],
                      "type": "object"
                    },
                    "idempotent": {
                      "description": "Whether the booker was already waiting.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "entry",
                    "idempotent"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success",
            "headers": {
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              },
              "Deprecation": {
                "$ref": "#/components/headers/Deprecation"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Sunset": {
                "$ref": "#/components/headers/Sunset"
              }
            }
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Invalid request parameters or body (RFC 9457 problem details)"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Resource not found (RFC 9457 problem details)"
          },
          "429": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Rate limit exceeded; wait Retry-After seconds before retrying",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            }
          },
          "default": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            },
            "description": "Error (RFC 9457 problem details)"
          }
        },
        "summary": "Join a full class's waitlist without sign-in; a cancellation automatically promotes the oldest matching entry. Use it when the session the customer wants has no places left. Required fields: `event_type_id`, `attendee_name`, `attendee_email`. Optional: `start_ms`. Example: {\"event_type_id\":\"evt_beginners\",\"attendee_name\":\"Maya Lin\",\"attendee_email\":\"maya@example.org\",\"start_ms\":\"1795858200000\"}. Returns `{ entry: { id, status, position } }`.",
        "x-idempotent": true,
        "x-read-only": false
      }
    }
  },
  "security": [
    {},
    {
      "oauth2": [
        "apps:discover",
        "apps:read",
        "apps:write"
      ]
    }
  ],
  "servers": [
    {
      "url": "https://yoga.ferrite.run"
    }
  ],
  "x-agent-card": "https://yoga.ferrite.run/.well-known/agent-card.json",
  "x-ard-catalog": "https://yoga.ferrite.run/.well-known/ard.json",
  "x-llms-txt": "https://yoga.ferrite.run/llms.txt",
  "x-mcp-endpoint": "https://yoga.ferrite.run/mcp",
  "x-webmcp": "https://yoga.ferrite.run/.well-known/webmcp.js"
}