{
    "openapi": "3.1.0",
    "info": {
        "title": "SignupSavant API",
        "version": "1.0.0",
        "summary": "Create volunteer signup events and register volunteers.",
        "description": "REST API for SignupSavant volunteer signup sheets. Every plan, Free included, can use it. Authenticate with an API key (Settings \u2192 API keys) as `Authorization: Bearer <key>`, or with an OAuth 2.1 access token. Rate limits per minute, by plan \u2014 Free: 60/min, Premium: 300/min, Pro: 600/min, Nonprofit: 600/min. Registering volunteers is unlimited. Creating events and adding time slots use the plan's event-build allowance (Free: 2 builds total, never reset; paid plans: unlimited). An MCP server with the same capabilities is at https://signupsavant.com/api/mcp.",
        "contact": {
            "name": "SignupSavant support",
            "email": "support@signupsavant.com",
            "url": "https://signupsavant.com/contact"
        }
    },
    "externalDocs": {
        "description": "Developer guide",
        "url": "https://signupsavant.com/developers"
    },
    "servers": [
        {
            "url": "https://signupsavant.com/api/v1"
        }
    ],
    "security": [
        {
            "bearerApiKey": []
        },
        {
            "apiKeyHeader": []
        },
        {
            "oauth2": [
                "api"
            ]
        }
    ],
    "tags": [
        {
            "name": "Account",
            "description": "Your organization, plan, and allowance."
        },
        {
            "name": "Events",
            "description": "Signup events and their time slots."
        },
        {
            "name": "Signups",
            "description": "Volunteers signed up for an event."
        }
    ],
    "paths": {
        "/me": {
            "get": {
                "operationId": "getAccount",
                "tags": [
                    "Account"
                ],
                "summary": "Account, plan, and event-build allowance",
                "responses": {
                    "200": {
                        "description": "The caller's organization and allowance.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Me"
                                },
                                "example": {
                                    "organization": {
                                        "id": 1,
                                        "name": "Riverside Food Bank",
                                        "plan": "free"
                                    },
                                    "ai_event_builds": {
                                        "used": 1,
                                        "limit": 2,
                                        "remaining": 1
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/events": {
            "get": {
                "operationId": "listEvents",
                "tags": [
                    "Events"
                ],
                "summary": "List your events (newest 100)",
                "responses": {
                    "200": {
                        "description": "Events with their time slots.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Event"
                                            }
                                        }
                                    }
                                },
                                "example": {
                                    "data": [
                                        {
                                            "id": 123,
                                            "title": "Saturday Park Cleanup",
                                            "description": "Bring gloves; we supply bags.",
                                            "event_date": "2026-11-07T09:00:00+00:00",
                                            "is_recurring": false,
                                            "recurrence": null,
                                            "is_published": true,
                                            "signup_url": "https://signupsavant.com/events/saturday-park-cleanup-x7k2/signup",
                                            "created_at": "2026-10-23T15:04:05+00:00",
                                            "time_slots": [
                                                {
                                                    "id": 456,
                                                    "occurs_on": null,
                                                    "start_time": "09:00",
                                                    "end_time": "12:00",
                                                    "max_volunteers": 25,
                                                    "confirmed_count": 3
                                                }
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "createEvent",
                "tags": [
                    "Events"
                ],
                "summary": "Create an event from a plain-language prompt or structured fields",
                "description": "Uses one event build (Free: 2 total). With `prompt`, the event is assembled by AI; if the prompt is too vague the response is 422 with `status: needs_clarification`.",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "oneOf": [
                                    {
                                        "$ref": "#/components/schemas/EventFromPrompt"
                                    },
                                    {
                                        "$ref": "#/components/schemas/SingleEventInput"
                                    },
                                    {
                                        "$ref": "#/components/schemas/RecurringEventInput"
                                    }
                                ]
                            },
                            "examples": {
                                "prompt": {
                                    "value": {
                                        "prompt": "food drive every Friday 2-5pm through December"
                                    }
                                },
                                "single": {
                                    "value": {
                                        "title": "Saturday Park Cleanup",
                                        "event_date": "2026-11-07",
                                        "event_time": "09:00",
                                        "event_end_time": "12:00",
                                        "max_signups": 25
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Event"
                                        }
                                    }
                                },
                                "example": {
                                    "data": {
                                        "id": 123,
                                        "title": "Saturday Park Cleanup",
                                        "description": "Bring gloves; we supply bags.",
                                        "event_date": "2026-11-07T09:00:00+00:00",
                                        "is_recurring": false,
                                        "recurrence": null,
                                        "is_published": true,
                                        "signup_url": "https://signupsavant.com/events/saturday-park-cleanup-x7k2/signup",
                                        "created_at": "2026-10-23T15:04:05+00:00",
                                        "time_slots": [
                                            {
                                                "id": 456,
                                                "occurs_on": null,
                                                "start_time": "09:00",
                                                "end_time": "12:00",
                                                "max_volunteers": 25,
                                                "confirmed_count": 3
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/events/{event}": {
            "get": {
                "operationId": "getEvent",
                "tags": [
                    "Events"
                ],
                "summary": "Event detail and time slots",
                "parameters": [
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "Event id.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The event.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Event"
                                        }
                                    }
                                },
                                "example": {
                                    "data": {
                                        "id": 123,
                                        "title": "Saturday Park Cleanup",
                                        "description": "Bring gloves; we supply bags.",
                                        "event_date": "2026-11-07T09:00:00+00:00",
                                        "is_recurring": false,
                                        "recurrence": null,
                                        "is_published": true,
                                        "signup_url": "https://signupsavant.com/events/saturday-park-cleanup-x7k2/signup",
                                        "created_at": "2026-10-23T15:04:05+00:00",
                                        "time_slots": [
                                            {
                                                "id": 456,
                                                "occurs_on": null,
                                                "start_time": "09:00",
                                                "end_time": "12:00",
                                                "max_volunteers": 25,
                                                "confirmed_count": 3
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/events/{event}/time-slots": {
            "post": {
                "operationId": "addTimeSlot",
                "tags": [
                    "Events"
                ],
                "summary": "Add a time slot (shift) or an item to bring",
                "parameters": [
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "Event id.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/TimeSlotInput"
                            },
                            "example": {
                                "start_time": "13:00",
                                "end_time": "15:00",
                                "max_volunteers": 10
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CreatedTimeSlot"
                                        }
                                    }
                                },
                                "example": {
                                    "data": {
                                        "id": 457,
                                        "start_time": "13:00",
                                        "end_time": "15:00",
                                        "max_volunteers": 10,
                                        "occurs_on": null
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationError"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/events/{event}/signups": {
            "get": {
                "operationId": "listSignups",
                "tags": [
                    "Signups"
                ],
                "summary": "List signups (newest 500)",
                "parameters": [
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "Event id.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Signups, newest first. Cancelled signups are excluded.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "data"
                                    ],
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Signup"
                                            }
                                        }
                                    }
                                },
                                "example": {
                                    "data": [
                                        {
                                            "id": 789,
                                            "name": "Pat Volunteer",
                                            "email": "pat@example.com",
                                            "time_slot_id": 456,
                                            "confirmed": true,
                                            "waitlisted": false,
                                            "response_data": {
                                                "T-shirt size": "M"
                                            },
                                            "created_at": "2026-10-23T15:10:00+00:00"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "registerSignup",
                "tags": [
                    "Signups"
                ],
                "summary": "Register a volunteer for a time slot",
                "description": "Free and unlimited on every plan. The volunteer gets the usual confirmation email.",
                "parameters": [
                    {
                        "name": "event",
                        "in": "path",
                        "required": true,
                        "description": "Event id.",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SignupInput"
                            },
                            "example": {
                                "name": "Pat Volunteer",
                                "email": "pat@example.com",
                                "time_slot_id": 456
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Signed up (`status: success`) or waitlisted (`status: waitlisted`).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "status",
                                        "data"
                                    ],
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "enum": [
                                                "success",
                                                "waitlisted"
                                            ]
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/Signup"
                                        }
                                    }
                                },
                                "example": {
                                    "status": "success",
                                    "data": {
                                        "id": 789,
                                        "name": "Pat Volunteer",
                                        "email": "pat@example.com",
                                        "time_slot_id": 456,
                                        "confirmed": true,
                                        "waitlisted": false,
                                        "response_data": {
                                            "T-shirt size": "M"
                                        },
                                        "created_at": "2026-10-23T15:10:00+00:00"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "description": "Already signed up for this time slot.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "status",
                                        "message"
                                    ],
                                    "properties": {
                                        "status": {
                                            "const": "duplicate"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/Signup"
                                        }
                                    }
                                },
                                "example": {
                                    "status": "duplicate",
                                    "message": "pat@example.com is already signed up for this time slot.",
                                    "data": {
                                        "id": 789,
                                        "name": "Pat Volunteer",
                                        "email": "pat@example.com",
                                        "time_slot_id": 456,
                                        "confirmed": true,
                                        "waitlisted": false,
                                        "response_data": {
                                            "T-shirt size": "M"
                                        },
                                        "created_at": "2026-10-23T15:10:00+00:00"
                                    }
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation error, slot full (`status: full`), or per-volunteer limit reached (`status: limit`).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "oneOf": [
                                        {
                                            "$ref": "#/components/schemas/ValidationError"
                                        },
                                        {
                                            "$ref": "#/components/schemas/BookingRefused"
                                        }
                                    ]
                                },
                                "example": {
                                    "status": "full",
                                    "message": "This time slot is full. Pass waitlist_if_full=true to join the waitlist."
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerApiKey": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "API key (ss_\u2026)",
                "description": "An API key from Settings \u2192 API keys."
            },
            "apiKeyHeader": {
                "type": "apiKey",
                "in": "header",
                "name": "X-Api-Key",
                "description": "The same API key, in a header of its own."
            },
            "oauth2": {
                "type": "oauth2",
                "description": "OAuth 2.1 authorization code with PKCE (S256). Public clients register at the registration endpoint (RFC 7591); discovery at /.well-known/oauth-authorization-server.",
                "flows": {
                    "authorizationCode": {
                        "authorizationUrl": "https://signupsavant.com/oauth/authorize",
                        "tokenUrl": "https://signupsavant.com/oauth/token",
                        "refreshUrl": "https://signupsavant.com/oauth/token",
                        "scopes": {
                            "api": "Act as the organizer who approved the app."
                        }
                    }
                }
            }
        },
        "responses": {
            "Unauthorized": {
                "description": "Missing or invalid credentials. WWW-Authenticate points to the OAuth protected resource metadata.",
                "headers": {
                    "WWW-Authenticate": {
                        "schema": {
                            "type": "string"
                        },
                        "example": "Bearer resource_metadata=\"https://signupsavant.com/.well-known/oauth-protected-resource\""
                    }
                },
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        },
                        "example": {
                            "message": "Invalid or missing API key. Pass it as \"Authorization: Bearer <key>\"."
                        }
                    }
                }
            },
            "NotFound": {
                "description": "No such event in your organization.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        },
                        "example": {
                            "message": "Event not found."
                        }
                    }
                }
            },
            "ValidationError": {
                "description": "The request body failed validation.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ValidationError"
                        },
                        "example": {
                            "message": "The title field is required.",
                            "errors": {
                                "title": [
                                    "The title field is required."
                                ]
                            }
                        }
                    }
                }
            },
            "TooManyRequests": {
                "description": "Per-minute rate limit exceeded (see Retry-After), or the event-build allowance is used up.",
                "headers": {
                    "Retry-After": {
                        "schema": {
                            "type": "integer"
                        },
                        "description": "Seconds to wait (rate limit only)."
                    }
                },
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        },
                        "example": {
                            "message": "Too Many Attempts."
                        }
                    }
                }
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "required": [
                    "message"
                ],
                "properties": {
                    "message": {
                        "type": "string"
                    }
                }
            },
            "ValidationError": {
                "type": "object",
                "required": [
                    "message",
                    "errors"
                ],
                "properties": {
                    "message": {
                        "type": "string"
                    },
                    "errors": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "BookingRefused": {
                "type": "object",
                "required": [
                    "status",
                    "message"
                ],
                "properties": {
                    "status": {
                        "type": "string",
                        "enum": [
                            "full",
                            "limit"
                        ]
                    },
                    "message": {
                        "type": "string"
                    }
                }
            },
            "Me": {
                "type": "object",
                "required": [
                    "organization",
                    "ai_event_builds"
                ],
                "properties": {
                    "organization": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "integer"
                            },
                            "name": {
                                "type": "string"
                            },
                            "plan": {
                                "type": "string",
                                "enum": [
                                    "free",
                                    "premium",
                                    "pro",
                                    "nonprofit"
                                ]
                            }
                        }
                    },
                    "ai_event_builds": {
                        "type": "object",
                        "properties": {
                            "used": {
                                "type": "integer"
                            },
                            "limit": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "description": "Lifetime allowance; null = unlimited"
                            },
                            "remaining": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            }
                        }
                    }
                }
            },
            "TimeSlot": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "shift",
                            "item"
                        ],
                        "description": "shift: a timed slot. item: something to bring (no times)."
                    },
                    "label": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "An item's name (\"Main dish\"), or a shift's optional name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "occurs_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date",
                        "description": "The date, for recurring events."
                    },
                    "start_time": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "HH:MM"
                    },
                    "end_time": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "HH:MM"
                    },
                    "max_volunteers": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "confirmed_count": {
                        "type": "integer"
                    }
                }
            },
            "CreatedTimeSlot": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "shift",
                            "item"
                        ],
                        "description": "shift: a timed slot. item: something to bring (no times)."
                    },
                    "label": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "An item's name (\"Main dish\"), or a shift's optional name."
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "start_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "max_volunteers": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "occurs_on": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    }
                }
            },
            "Event": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "event_date": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "is_recurring": {
                        "type": "boolean"
                    },
                    "recurrence": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Weekly recurrence rule, for recurring events."
                    },
                    "is_published": {
                        "type": "boolean"
                    },
                    "signup_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Public page volunteers sign up on."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "time_slots": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/TimeSlot"
                        }
                    }
                }
            },
            "Signup": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "time_slot_id": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "confirmed": {
                        "type": "boolean"
                    },
                    "waitlisted": {
                        "type": "boolean"
                    },
                    "response_data": {
                        "type": [
                            "object",
                            "array",
                            "null"
                        ],
                        "description": "Answers to the event's custom signup questions."
                    },
                    "bringing": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "For an item: what they're bringing."
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "EventFromPrompt": {
                "type": "object",
                "required": [
                    "prompt"
                ],
                "properties": {
                    "prompt": {
                        "type": "string",
                        "description": "Plain-language description, e.g. \"park cleanup Saturday 9am, 25 volunteers\"."
                    }
                }
            },
            "SingleEventInput": {
                "type": "object",
                "required": [
                    "title",
                    "event_date"
                ],
                "properties": {
                    "event_type": {
                        "const": "single"
                    },
                    "title": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string",
                        "maxLength": 5000
                    },
                    "event_date": {
                        "type": "string",
                        "format": "date"
                    },
                    "event_time": {
                        "type": "string",
                        "description": "HH:MM (24h)"
                    },
                    "event_end_time": {
                        "type": "string",
                        "description": "HH:MM (24h)"
                    },
                    "max_signups": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9999
                    }
                }
            },
            "RecurringEventInput": {
                "type": "object",
                "required": [
                    "event_type",
                    "title",
                    "recurrence_weekday",
                    "recurrence_starts_on",
                    "recurrence_ends_on"
                ],
                "properties": {
                    "event_type": {
                        "const": "recurring"
                    },
                    "title": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 255
                    },
                    "description": {
                        "type": "string",
                        "maxLength": 5000
                    },
                    "recurrence_weekday": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 6,
                        "description": "0 = Sunday"
                    },
                    "recurrence_starts_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "recurrence_ends_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "volunteers_per_occurrence": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 999
                    },
                    "event_time": {
                        "type": "string",
                        "description": "HH:MM (24h)"
                    },
                    "skip_dates": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                }
            },
            "TimeSlotInput": {
                "type": "object",
                "description": "A shift (start_time + end_time), or an item (kind \"item\" + label, no times).",
                "properties": {
                    "kind": {
                        "type": "string",
                        "enum": [
                            "shift",
                            "item"
                        ],
                        "default": "shift"
                    },
                    "label": {
                        "type": "string",
                        "maxLength": 100,
                        "description": "Required for an item (\"Main dish\"); optional name for a shift."
                    },
                    "description": {
                        "type": "string",
                        "maxLength": 200
                    },
                    "start_time": {
                        "type": "string",
                        "description": "HH:MM (24h); required for a shift"
                    },
                    "end_time": {
                        "type": "string",
                        "description": "HH:MM (24h), after start_time; required for a shift"
                    },
                    "max_volunteers": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9999
                    },
                    "occurs_on": {
                        "type": "string",
                        "format": "date"
                    }
                }
            },
            "SignupInput": {
                "type": "object",
                "required": [
                    "name",
                    "email",
                    "time_slot_id"
                ],
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 100
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                    },
                    "time_slot_id": {
                        "type": "integer"
                    },
                    "response_data": {
                        "type": "object",
                        "description": "Answers to custom signup questions."
                    },
                    "bringing": {
                        "type": "string",
                        "maxLength": 200,
                        "description": "For an item: what they're bringing (\"Green bean casserole\")."
                    },
                    "waitlist_if_full": {
                        "type": "boolean",
                        "default": true
                    }
                }
            }
        }
    }
}