{
    "openapi": "3.1.0",
    "info": {
        "title": "Artibox Calendar API",
        "version": "1.0.0",
        "summary": "L'API publique de prise de rendez-vous d'Artibox Calendar.",
        "description": "Les routes `/api/v1` ouvertes aux jetons : un jeton personnel (`rdv_pat_…`, Réglages › Intégrations, formule Pro) ou un jeton d'accès OAuth (`rdv_oat_…`, valable 2 heures), envoyé dans l'en-tête `x-api-key`. Chaque route demande une portée (`x-scope`) ; hors portée, la réponse est 403.\n\nToute réponse suit l'enveloppe `{message, data, errors}`. Les listes paginées acceptent `page` et `limit` (25 par défaut, 500 au plus). 100 appels par minute et par jeton (`X-RateLimit-*`, 429 et `Retry-After` au-delà). Les créations (`POST`) acceptent `Idempotency-Key`, gardée 24 heures. Les dates sont en ISO 8601 avec décalage.\n\nGuide : https://www.artibox-calendar.com/developpeurs",
        "x-description-en": "The `/api/v1` routes open to tokens: a personal token (`rdv_pat_…`) or an OAuth access token (`rdv_oat_…`, valid 2 hours) in the `x-api-key` header. Each route needs a scope (`x-scope`); outside it, 403. Responses use the `{message, data, errors}` envelope; paginated lists take `page` and `limit` (25 by default, 500 at most); 100 calls per minute per token; `POST` accepts `Idempotency-Key` (24 hours); dates are ISO 8601 with an offset. Guide: https://www.artibox-calendar.com/en/developers",
        "contact": {
            "name": "Artibox Calendar",
            "url": "https://www.artibox-calendar.com/developpeurs"
        }
    },
    "servers": [
        {
            "url": "https://www.artibox-calendar.com/api/v1",
            "description": "Production"
        }
    ],
    "security": [
        {
            "ApiKey": []
        }
    ],
    "tags": [
        {
            "name": "account",
            "description": "Le compte du jeton, son organisation, ses droits et ses notifications.",
            "x-name-fr": "Compte et contexte",
            "x-name-en": "Account and context",
            "x-description-en": "The token's account, organisation, rights and notifications.",
            "x-slug": "compte"
        },
        {
            "name": "types",
            "description": "Les types de rendez-vous de l'organisation, leurs réglages et leurs créneaux.",
            "x-name-fr": "Types de rendez-vous",
            "x-name-en": "Event types",
            "x-description-en": "The organisation's event types, their settings and their slots.",
            "x-slug": "types"
        },
        {
            "name": "availability",
            "description": "Les plannings, les exceptions et l'aperçu des heures libres des membres.",
            "x-name-fr": "Disponibilités",
            "x-name-en": "Availability",
            "x-description-en": "Members' schedules, exceptions and availability preview.",
            "x-slug": "disponibilites"
        },
        {
            "name": "bookings",
            "description": "Créer, lire, déplacer, annuler et constater les rendez-vous.",
            "x-name-fr": "Rendez-vous",
            "x-name-en": "Bookings",
            "x-description-en": "Create, read, reschedule, cancel and mark bookings.",
            "x-slug": "reservations"
        },
        {
            "name": "one_off",
            "description": "Des rendez-vous à créneaux choisis, proposés une fois à un invité.",
            "x-name-fr": "Réunions ponctuelles",
            "x-name-en": "One-off meetings",
            "x-description-en": "Meetings on hand-picked slots, offered once to a guest.",
            "x-slug": "reunions-ponctuelles"
        },
        {
            "name": "links",
            "description": "Les liens de réservation à usage unique et les liens signés avec contexte (11.8).",
            "x-name-fr": "Liens uniques et liens signés",
            "x-name-en": "Single-use and signed links",
            "x-description-en": "Single-use booking links and signed links carrying a context (11.8).",
            "x-slug": "liens"
        },
        {
            "name": "link_sends",
            "description": "Envoyer le lien d'un type par courriel ou SMS, et le relancer.",
            "x-name-fr": "Envoi du lien",
            "x-name-en": "Link sends",
            "x-description-en": "Send an event type's link by email or SMS, and remind.",
            "x-slug": "envois-de-lien"
        },
        {
            "name": "messages",
            "description": "Les messages envoyés aux invités d'un type (confirmation, rappel…).",
            "x-name-fr": "Messages par type",
            "x-name-en": "Type messages",
            "x-description-en": "The messages sent to an event type's guests (confirmation, reminder…).",
            "x-slug": "messages"
        },
        {
            "name": "polls",
            "description": "Proposer des dates, suivre les votes, confirmer une date.",
            "x-name-fr": "Sondages de dates",
            "x-name-en": "Meeting polls",
            "x-description-en": "Offer dates, follow the votes, confirm a date.",
            "x-slug": "sondages"
        },
        {
            "name": "organization",
            "description": "L'organisation, ses réglages, ses membres, son domaine et sa clé de contexte.",
            "x-name-fr": "Organisation",
            "x-name-en": "Organisation",
            "x-description-en": "The organisation, its settings, members, domain and context key.",
            "x-slug": "organisation"
        },
        {
            "name": "routing",
            "description": "Les formulaires qui orientent un invité vers le bon type ou la bonne personne.",
            "x-name-fr": "Formulaires d'orientation",
            "x-name-en": "Routing forms",
            "x-description-en": "The forms that route a guest to the right event type or person.",
            "x-slug": "orientation"
        },
        {
            "name": "webhooks",
            "description": "Les abonnements aux événements, leurs livraisons et leur test.",
            "x-name-fr": "Webhooks",
            "x-name-en": "Webhooks",
            "x-description-en": "Event subscriptions, their deliveries and their test.",
            "x-slug": "webhooks"
        },
        {
            "name": "privacy",
            "description": "Exporter et effacer les données d'un invité (RGPD).",
            "x-name-fr": "Données personnelles",
            "x-name-en": "Personal data",
            "x-description-en": "Export and erase a guest's data (GDPR).",
            "x-slug": "donnees-personnelles"
        },
        {
            "name": "oauth",
            "description": "Échanger un code, rafraîchir, révoquer et inspecter les jetons d'une application OAuth.",
            "x-name-fr": "Serveur OAuth",
            "x-name-en": "OAuth server",
            "x-description-en": "Exchange a code, refresh, revoke and introspect an OAuth app's tokens.",
            "x-slug": "oauth"
        },
        {
            "name": "mcp",
            "description": "Le point d'entrée MCP pour les assistants et agents IA.",
            "x-name-fr": "Serveur MCP",
            "x-name-en": "MCP server",
            "x-description-en": "The MCP endpoint for AI assistants and agents.",
            "x-slug": "mcp"
        }
    ],
    "paths": {
        "/schedules": {
            "get": {
                "operationId": "api_v1_schedules_list",
                "summary": "Lister les plannings",
                "x-summary-en": "List schedules",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:lire"
                        ]
                    }
                ],
                "description": "Les siens, ou ceux d'un collègue avec `availability.read_others` (superviseur, propriétaire). Jeton : portée `disponibilites:lire`.",
                "parameters": [
                    {
                        "name": "member",
                        "in": "query",
                        "description": "Un collègue (lecture seule)",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Schedule"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_schedules_create",
                "summary": "Créer un planning (vide ou copié)",
                "x-summary-en": "Create a schedule (empty or copied)",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Pour le membre appelant (10 au plus). Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Schedule"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/schedules/{id}": {
            "put": {
                "operationId": "api_v1_schedules_update",
                "summary": "Renommer un planning",
                "x-summary-en": "Rename a schedule",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Toujours ses propres heures (EX-SEC-03) : un planning d'un collègue répond 403, celui d'une autre organisation 404. Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Schedule"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_schedules_delete",
                "summary": "Supprimer un planning",
                "x-summary-en": "Delete a schedule",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Toujours ses propres heures (EX-SEC-03) : un planning d'un collègue répond 403, celui d'une autre organisation 404. Le planning par défaut ne se supprime pas. Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/schedules/{id}/default": {
            "put": {
                "operationId": "api_v1_schedules_default",
                "summary": "Faire d'un planning celui par défaut",
                "x-summary-en": "Make a schedule the default one",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Toujours ses propres heures (EX-SEC-03) : un planning d'un collègue répond 403, celui d'une autre organisation 404. Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/schedules/{id}/weekly-hours": {
            "put": {
                "operationId": "api_v1_schedules_weekly_hours",
                "summary": "Régler la semaine type d'un planning",
                "x-summary-en": "Set a schedule's weekly hours",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Toujours ses propres heures (EX-SEC-03) : un planning d'un collègue répond 403, celui d'une autre organisation 404. Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "description": "`{ranges: [{day: 1-7, start: \"HH:MM\", end: \"HH:MM\"}]}` : la semaine entière, qui remplace la précédente",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "ranges": [
                                    {
                                        "day": 1,
                                        "start": "09:00",
                                        "end": "12:30"
                                    },
                                    {
                                        "day": 1,
                                        "start": "14:00",
                                        "end": "18:00"
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Schedule"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/exceptions": {
            "get": {
                "operationId": "api_v1_exceptions_list",
                "summary": "Lister les exceptions (congés, heures en plus)",
                "x-summary-en": "List exceptions (time off, extra hours)",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:lire"
                        ]
                    }
                ],
                "description": "Absences et ouvertures ponctuelles. Jeton : portée `disponibilites:lire`.",
                "parameters": [
                    {
                        "name": "member",
                        "in": "query",
                        "description": "Un collègue (lecture seule, `availability.read_others`)",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "Date locale AAAA-MM-JJ",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "Date locale AAAA-MM-JJ",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/AvailabilityException"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_exceptions_create",
                "summary": "Ajouter une exception (absence ou heures en plus)",
                "x-summary-en": "Add an exception (time off or extra hours)",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Pour le membre appelant : une absence (journée ou heures) ou une ouverture ponctuelle (`available: true`, heures exigées). Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "date": "2026-12-24",
                                "available": false,
                                "reason": "Congés"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/AvailabilityException"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/exceptions/{id}": {
            "put": {
                "operationId": "api_v1_exceptions_update",
                "summary": "Modifier une exception",
                "x-summary-en": "Update an exception",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Les champs absents gardent leur valeur. Toujours ses propres heures (EX-SEC-03) : une exception d'un collègue répond 403, celle d'une autre organisation 404. Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/AvailabilityException"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_exceptions_delete",
                "summary": "Supprimer une exception",
                "x-summary-en": "Delete an exception",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:ecrire"
                        ]
                    }
                ],
                "description": "Toujours ses propres heures (EX-SEC-03) : une exception d'un collègue répond 403, celle d'une autre organisation 404. Jeton : portée `disponibilites:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/availability/preview": {
            "get": {
                "operationId": "api_v1_availability_preview",
                "summary": "Aperçu des disponibilités d'un membre",
                "x-summary-en": "Preview a member's availability",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "description": "ISO 8601 avec décalage",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "ISO 8601 avec décalage, 62 jours au plus après from",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "duration",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 600,
                            "minimum": 5
                        }
                    },
                    {
                        "name": "schedule",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/busy-times": {
            "get": {
                "operationId": "api_v1_busy_times",
                "summary": "Lire les heures occupées d'un membre (31 jours au plus)",
                "x-summary-en": "Read a member's busy times (31 days at most)",
                "tags": [
                    "availability"
                ],
                "x-scope": "disponibilites:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "disponibilites:lire"
                        ]
                    }
                ],
                "description": "Intervalles occupés, fusionnés par source : `booking` (rendez-vous de l'application, marges comprises) ou `calendar` (agendas connectés qui vérifient les conflits). Jamais le titre d'un événement. Un collègue avec `availability.read_others` seulement. Jeton : portée `disponibilites:lire`.",
                "parameters": [
                    {
                        "name": "member",
                        "in": "query",
                        "description": "`me` (par défaut) ou l'identifiant d'un membre",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "description": "ISO 8601 avec décalage",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "description": "ISO 8601 avec décalage, 31 jours au plus après from (2 h de tolérance pour un changement d'heure)",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types": {
            "get": {
                "operationId": "api_v1_types_list",
                "summary": "Lister les types de rendez-vous",
                "x-summary-en": "List event types",
                "tags": [
                    "types"
                ],
                "x-scope": "types:lire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "description": "Tous ceux de l'organisation, sauf les rendez-vous ponctuels (`/one-off-meetings`). Jeton : portée `types:lire`. Sans `page` ni `limit`, une liste simple ; avec, `{items, pagination}`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "$ref": "#/components/schemas/AppointmentType"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "$ref": "#/components/schemas/AppointmentType"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_types_create",
                "summary": "Créer un type de rendez-vous",
                "x-summary-en": "Create an event type",
                "tags": [
                    "types"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "name": "Premier échange",
                                "slug": "premier-echange",
                                "duration_minutes": 30,
                                "mode": "video",
                                "format": "individual"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/AppointmentType"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/templates": {
            "get": {
                "operationId": "api_v1_types_templates",
                "summary": "Lister les modèles de types proposés à la création",
                "x-summary-en": "List the event type templates offered at creation",
                "tags": [
                    "types"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/slug-check": {
            "get": {
                "operationId": "api_v1_types_slug_check",
                "summary": "Vérifier qu'une adresse de type est libre",
                "x-summary-en": "Check that an event type address is free",
                "tags": [
                    "types"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "except",
                        "in": "query",
                        "description": "Le type en cours de modification",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/slot-preview": {
            "post": {
                "operationId": "api_v1_types_slot_preview",
                "summary": "Prévisualiser les créneaux de réglages non enregistrés",
                "x-summary-en": "Preview the slots of unsaved settings",
                "tags": [
                    "types"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{type: {…champs du type}, from, to}`",
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/SlotResult"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}": {
            "get": {
                "operationId": "api_v1_types_show",
                "summary": "Lire un type de rendez-vous",
                "x-summary-en": "Read an event type",
                "tags": [
                    "types"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/AppointmentType"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "put": {
                "operationId": "api_v1_types_update",
                "summary": "Modifier un type de rendez-vous",
                "x-summary-en": "Update an event type",
                "tags": [
                    "types"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/AppointmentType"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_types_delete",
                "summary": "Supprimer un type de rendez-vous",
                "x-summary-en": "Delete an event type",
                "tags": [
                    "types"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}/slots": {
            "get": {
                "operationId": "api_v1_types_slots",
                "summary": "Trouver les créneaux libres d'un type",
                "x-summary-en": "Find an event type's available slots",
                "tags": [
                    "types"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/SlotResult"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings": {
            "get": {
                "operationId": "api_v1_bookings_list",
                "summary": "Lister les rendez-vous",
                "x-summary-en": "List bookings",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:lire",
                "x-pagination": "always",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "confirmed",
                                "cancelled",
                                "honored",
                                "no_show"
                            ]
                        }
                    },
                    {
                        "name": "label",
                        "in": "query",
                        "description": "10.3 : l'étiquette du type",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "organizer",
                        "in": "query",
                        "description": "10.3 : un organisateur (superviseur)",
                        "schema": {
                            "type": "string",
                            "format": "uuid"
                        }
                    },
                    {
                        "name": "context_source",
                        "in": "query",
                        "description": "11.9 : la source du contexte signé",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "context_id",
                        "in": "query",
                        "description": "11.9 : l'identifiant du contexte signé",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "email",
                        "in": "query",
                        "description": "Le courriel de l'invité",
                        "schema": {
                            "type": "string",
                            "format": "email"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "items": {
                                                            "type": "array",
                                                            "items": {
                                                                "$ref": "#/components/schemas/Booking"
                                                            }
                                                        },
                                                        "pagination": {
                                                            "$ref": "#/components/schemas/Pagination"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_bookings_create",
                "summary": "Réserver un créneau",
                "x-summary-en": "Book a slot",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "type_id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                "start": "2026-12-01T10:00:00+01:00",
                                "name": "Camille Martin",
                                "email": "camille.martin@example.com",
                                "phone": "+33612345678",
                                "timezone": "Europe/Paris",
                                "locale": "fr",
                                "answers": {
                                    "a1": "Présentation de notre projet"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/CreatedBooking"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings/{id}": {
            "get": {
                "operationId": "api_v1_bookings_show",
                "summary": "Lire un rendez-vous",
                "x-summary-en": "Read a booking",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Booking"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings/{id}/sends": {
            "get": {
                "operationId": "api_v1_bookings_sends",
                "summary": "Lister les messages envoyés ou prévus pour un rendez-vous",
                "x-summary-en": "List the messages sent or planned for a booking",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings/{id}/session": {
            "get": {
                "operationId": "api_v1_bookings_session",
                "summary": "Lire la séance d'un rendez-vous de groupe et ses inscrits",
                "x-summary-en": "Read a group booking's session and its registrants",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:lire"
                        ]
                    }
                ],
                "description": "Les inscrits qui partagent l'organisateur et le début de ce rendez-vous (format « groupe »), annulés compris, avec leur statut. Mêmes droits que la fiche du rendez-vous. Jeton : portée `reservations:lire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings/{id}/cancel": {
            "post": {
                "operationId": "api_v1_bookings_cancel",
                "summary": "Annuler un rendez-vous",
                "x-summary-en": "Cancel a booking",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{reason?, channels?: [email|sms]}` — 8.1 : sans `channels`, tous les messages d'annulation actifs",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "reason": "Empêchement de dernière minute",
                                "channels": [
                                    "email"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Booking"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings/{id}/move": {
            "post": {
                "operationId": "api_v1_bookings_move",
                "summary": "Déplacer un rendez-vous",
                "x-summary-en": "Reschedule a booking",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{start}` en ISO 8601 avec décalage",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "start": "2026-12-02T14:30:00+01:00"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Booking"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings/{id}/observe": {
            "post": {
                "operationId": "api_v1_bookings_observe",
                "summary": "Constater un rendez-vous (honoré, absent)",
                "x-summary-en": "Mark a booking (honoured, no-show)",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{status: honored|no_show|confirmed}`",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "status": "honored"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Booking"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/one-off-meetings": {
            "get": {
                "operationId": "api_v1_one_off_meetings",
                "summary": "Lister les réunions ponctuelles",
                "x-summary-en": "List one-off meetings",
                "tags": [
                    "one_off"
                ],
                "x-scope": "types:lire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "description": "Ceux que l'appelant peut modifier (les siens ; tous pour un superviseur ou un propriétaire), du plus récent au plus ancien. Jeton : portée `types:lire`. Sans `page` ni `limit`, une liste simple ; avec, `{items, pagination}`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "object"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_one_off_meetings_create",
                "summary": "Créer une réunion ponctuelle (créneaux choisis, lien à usage unique)",
                "x-summary-en": "Create a one-off meeting (hand-picked slots, single-use link)",
                "tags": [
                    "one_off"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "description": "Un type caché, ouvert par un lien unique, réservable une fois : soit quelques débuts choisis (`slots`, 1 à 20, chacun encore libre), soit les heures de l'organisateur dans une période (`window`). Réservé, il se ferme ; après `expires_at`, le lien répond 410. L'adresse n'est donnée qu'ici. Formule Pro (lien unique). Jeton : portée `types:ecrire`.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "name": "Point projet",
                                "duration_minutes": 45,
                                "mode": "video",
                                "slots": [
                                    "2026-12-01T10:00:00+01:00",
                                    "2026-12-02T15:00:00+01:00"
                                ],
                                "expires_at": "2026-12-15T00:00:00+01:00"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/one-off-meetings/{id}": {
            "get": {
                "operationId": "api_v1_one_off_meetings_show",
                "summary": "Lire une réunion ponctuelle",
                "x-summary-en": "Read a one-off meeting",
                "tags": [
                    "one_off"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "description": "Jeton : portée `types:lire`. L'adresse de réservation n'est plus donnée (seulement à la création).",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_one_off_meetings_delete",
                "summary": "Supprimer une réunion ponctuelle et retirer son lien",
                "x-summary-en": "Delete a one-off meeting and withdraw its link",
                "tags": [
                    "one_off"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "description": "Son lien n'ouvre plus rien ; un rendez-vous déjà pris reste, détaché. Jeton : portée `types:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}/unique-links": {
            "get": {
                "operationId": "api_v1_types_unique_links",
                "summary": "Lister les liens uniques d'un type",
                "x-summary-en": "List an event type's single-use links",
                "tags": [
                    "links"
                ],
                "x-scope": "types:lire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "description": "Avec leur état (usable, consumed, expired). Jeton : portée `types:lire`. Sans `page` ni `limit`, une liste simple ; avec, `{items, pagination}`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "$ref": "#/components/schemas/UniqueLink"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "$ref": "#/components/schemas/UniqueLink"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_types_unique_links_create",
                "summary": "Créer un lien unique",
                "x-summary-en": "Create a single-use link",
                "tags": [
                    "links"
                ],
                "x-scope": "liens:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "liens:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{days?: 1–90 (14), note?}` — l'adresse n'est donnée qu'ici",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "days": 14,
                                "note": "Relance devis 2026-118"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}/unique-links/{linkId}": {
            "delete": {
                "operationId": "api_v1_types_unique_links_delete",
                "summary": "Retirer un lien unique",
                "x-summary-en": "Withdraw a single-use link",
                "tags": [
                    "links"
                ],
                "x-scope": "liens:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "liens:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "name": "linkId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}/signed-links": {
            "post": {
                "operationId": "api_v1_types_signed_links_create",
                "summary": "Créer un lien signé avec contexte",
                "x-summary-en": "Create a signed link with a context",
                "tags": [
                    "links"
                ],
                "x-scope": "liens:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "liens:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "11.6 : `{source, type, id, libelle?, prerempli?: {nom, email, telephone}, organisateur?, days?: 1–90 (14)}` — signé avec la clé de contexte de l'organisation (11.8)",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "source": "mon-crm",
                                "type": "affaire",
                                "id": "AFF-2026-0042",
                                "libelle": "Projet Dupont",
                                "prerempli": {
                                    "nom": "Camille Martin",
                                    "email": "camille.martin@example.com"
                                },
                                "days": 14
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/SignedLink"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/organization/context-key": {
            "get": {
                "operationId": "api_v1_context_key",
                "summary": "Lire la date de la clé de contexte",
                "x-summary-en": "Read the context key's date",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_context_key_create",
                "summary": "Générer une nouvelle clé de contexte",
                "x-summary-en": "Generate a new context key",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/bookings/{id}/crm": {
            "get": {
                "operationId": "api_v1_bookings_crm",
                "summary": "Lire les synchronisations CRM d'un rendez-vous",
                "x-summary-en": "Read a booking's CRM syncs",
                "tags": [
                    "bookings"
                ],
                "x-scope": "reservations:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/users/me": {
            "get": {
                "operationId": "api_v1_users_me",
                "summary": "Lire le compte du jeton (userinfo OAuth)",
                "x-summary-en": "Read the token's account (OAuth userinfo)",
                "tags": [
                    "account"
                ],
                "x-scope": "utilisateur:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "utilisateur:lire"
                        ]
                    }
                ],
                "description": "Le compte au nom duquel l'appel agit, son organisation, son rôle et les portées du jeton. Jeton : portée `utilisateur:lire`. Sert aussi de « userinfo » pour une application OAuth.",
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/webhook-subscriptions": {
            "get": {
                "operationId": "api_v1_webhooks",
                "summary": "Lister les abonnements aux webhooks",
                "x-summary-en": "List webhook subscriptions",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "description": "Propriétaire ; une application OAuth voit les siens seulement. Jeton : portée `webhooks:ecrire`. Toujours `{events, items}` ; avec `page` ou `limit`, `pagination` s'y ajoute.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "object"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_webhooks_create",
                "summary": "S'abonner à des événements",
                "x-summary-en": "Subscribe to events",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{url, events: [...], type_id?}` — le secret de signature n'est donné qu'ici",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "url": "https://example.com/webhooks/artibox",
                                "events": [
                                    "reservation.creee",
                                    "reservation.annulee"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/CreatedWebhookSubscription"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/webhook-subscriptions/{id}": {
            "get": {
                "operationId": "api_v1_webhooks_show",
                "summary": "Lire un abonnement",
                "x-summary-en": "Read a subscription",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "description": "Le secret de signature n'est jamais redonné. Jeton : portée `webhooks:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/WebhookSubscription"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "put": {
                "operationId": "api_v1_webhooks_update",
                "summary": "Modifier un abonnement",
                "x-summary-en": "Update a subscription",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "description": "`{url, events, type_id?, active}` — réactiver remet à zéro le compte des échecs",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "url": "https://example.com/webhooks/artibox",
                                "events": [
                                    "reservation.creee"
                                ],
                                "active": true
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/WebhookSubscription"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_webhooks_delete",
                "summary": "Supprimer un abonnement",
                "x-summary-en": "Delete a subscription",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/webhook-subscriptions/{id}/deliveries": {
            "get": {
                "operationId": "api_v1_webhooks_deliveries",
                "summary": "Lister les livraisons d'un abonnement (30 jours)",
                "x-summary-en": "List a subscription's deliveries (30 days)",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/WebhookDelivery"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/webhook-subscriptions/{id}/test": {
            "post": {
                "operationId": "api_v1_webhooks_test",
                "summary": "Envoyer un événement de test",
                "x-summary-en": "Send a test event",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "description": "Sans `event` : l'événement `test` (`{message: \"Test\"}`). Avec `event` : un exemple réaliste de cet événement, même enveloppe et mêmes champs que les vrais envois, identifiants factices, marqué `\"exemple\": true`. Jeton : portée `webhooks:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/WebhookDelivery"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/webhook-deliveries/{id}/replay": {
            "post": {
                "operationId": "api_v1_webhooks_replay",
                "summary": "Rejouer une livraison",
                "x-summary-en": "Replay a delivery",
                "tags": [
                    "webhooks"
                ],
                "x-scope": "webhooks:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "webhooks:ecrire"
                        ]
                    }
                ],
                "description": "La même charge, envoyée de nouveau. Jeton : portée `webhooks:ecrire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "La livraison",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/WebhookDelivery"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/mcp": {
            "post": {
                "operationId": "api_v1_mcp",
                "summary": "Envoyer un message JSON-RPC au serveur MCP",
                "x-summary-en": "Send a JSON-RPC message to the MCP server",
                "tags": [
                    "mcp"
                ],
                "x-scope": "*",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": []
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "Un message JSON-RPC 2.0 du protocole MCP (initialize, ping, tools/list, tools/call)",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "jsonrpc": "2.0",
                                "id": 1,
                                "method": "tools/list"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "get": {
                "operationId": "api_v1_mcp_stream",
                "summary": "Flux MCP (non proposé : 405)",
                "x-summary-en": "MCP stream (not offered: 405)",
                "tags": [
                    "mcp"
                ],
                "x-scope": "*",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_mcp_stream",
                "summary": "Flux MCP (non proposé : 405)",
                "x-summary-en": "MCP stream (not offered: 405)",
                "tags": [
                    "mcp"
                ],
                "x-scope": "*",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}/link-sends": {
            "get": {
                "operationId": "api_v1_types_link_sends",
                "summary": "Lister les envois du lien d'un type",
                "x-summary-en": "List an event type's link sends",
                "tags": [
                    "link_sends"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/LinkSend"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_types_link_sends_create",
                "summary": "Envoyer le lien d'un type par courriel ou SMS",
                "x-summary-en": "Send an event type's link by email or SMS",
                "tags": [
                    "link_sends"
                ],
                "x-scope": "liens:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "liens:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{channel: email|sms, name, email?, phone?, subject?, text?}` — variables {prenom}, {nom}, {type}, {organisateur}, {lien}",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "channel": "email",
                                "name": "Camille Martin",
                                "email": "camille.martin@example.com"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/LinkSend"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/link-sends/{id}/remind": {
            "post": {
                "operationId": "api_v1_link_sends_remind",
                "summary": "Relancer un envoi du lien",
                "x-summary-en": "Remind a link send",
                "tags": [
                    "link_sends"
                ],
                "x-scope": "liens:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "liens:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/LinkSend"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/notifications": {
            "get": {
                "operationId": "api_v1_notifications",
                "summary": "Lister les notifications du compte",
                "x-summary-en": "List the account's notifications",
                "tags": [
                    "account"
                ],
                "x-scope": "utilisateur:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "utilisateur:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/notifications/read": {
            "post": {
                "operationId": "api_v1_notifications_read",
                "summary": "Marquer ses notifications comme lues",
                "x-summary-en": "Mark one's notifications as read",
                "tags": [
                    "account"
                ],
                "x-scope": "utilisateur:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "utilisateur:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{ids?: [uuid]}` — sans liste, toutes",
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}/messages": {
            "get": {
                "operationId": "api_v1_type_messages",
                "summary": "Lire les messages d'un type",
                "x-summary-en": "Read an event type's messages",
                "tags": [
                    "messages"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "put": {
                "operationId": "api_v1_type_messages_update",
                "summary": "Modifier les messages d'un type",
                "x-summary-en": "Update an event type's messages",
                "tags": [
                    "messages"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/types/{id}/messages/preview": {
            "post": {
                "operationId": "api_v1_type_messages_preview",
                "summary": "Prévisualiser un message",
                "x-summary-en": "Preview a message",
                "tags": [
                    "messages"
                ],
                "x-scope": "types:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{channel, locale, subject?, body}`",
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/organization/domain": {
            "get": {
                "operationId": "api_v1_custom_domain",
                "summary": "Lire le domaine personnalisé",
                "x-summary-en": "Read the custom domain",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_custom_domain_create",
                "summary": "Déclarer un domaine personnalisé",
                "x-summary-en": "Declare a custom domain",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{domain}` — par exemple rdv.client.fr",
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_custom_domain_delete",
                "summary": "Retirer le domaine personnalisé",
                "x-summary-en": "Remove the custom domain",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/organization/domain/verify": {
            "post": {
                "operationId": "api_v1_custom_domain_verify",
                "summary": "Vérifier le domaine personnalisé",
                "x-summary-en": "Verify the custom domain",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/members": {
            "get": {
                "operationId": "api_v1_members_list",
                "summary": "Lister les membres",
                "x-summary-en": "List members",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "description": "Jeton : portée `organisation:lire`. Sans `page` ni `limit`, une liste simple ; avec, la forme paginée `{items, pagination}`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "$ref": "#/components/schemas/Member"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "$ref": "#/components/schemas/Member"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/members/{id}": {
            "get": {
                "operationId": "api_v1_members_show",
                "summary": "Lire un membre",
                "x-summary-en": "Read a member",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "description": "Jeton : portée `organisation:lire`. Un membre d'une autre organisation répond 404.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Identifiant de l'adhésion (membre)",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Member"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "put": {
                "operationId": "api_v1_members_update",
                "summary": "Modifier un membre (rôle, activité)",
                "x-summary-en": "Update a member (role, active)",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Member"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/invitations": {
            "get": {
                "operationId": "api_v1_invitations_list",
                "summary": "Lister les invitations",
                "x-summary-en": "List invitations",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "description": "Propriétaire seulement (5.2). Jeton : portée `organisation:lire`. Sans `page` ni `limit`, une liste simple ; avec, `{items, pagination}`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "object"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_invitations_create",
                "summary": "Inviter une personne dans l'organisation",
                "x-summary-en": "Invite someone to the organisation",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "description": "Propriétaire seulement. Jeton : portée `organisation:administrer`. Une place de la formule est exigée (M1, `members.multiple`) : sinon 403 avec `errors.reason = plan_required`.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "email": "camille.martin@example.com",
                                "role": "member"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/invitations/{id}": {
            "delete": {
                "operationId": "api_v1_invitations_cancel",
                "summary": "Annuler une invitation",
                "x-summary-en": "Cancel an invitation",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "description": "Propriétaire seulement. Jeton : portée `organisation:administrer`. Le lien envoyé n'ouvre plus rien.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/me/context": {
            "get": {
                "operationId": "api_v1_me_context",
                "summary": "Lire le compte, l'organisation courante et ses droits",
                "x-summary-en": "Read the account, the current organisation and its rights",
                "tags": [
                    "account"
                ],
                "x-scope": "utilisateur:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "utilisateur:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/organization": {
            "get": {
                "operationId": "api_v1_organization_show",
                "summary": "Lire l'organisation",
                "x-summary-en": "Read the organisation",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "put": {
                "operationId": "api_v1_organization_update",
                "summary": "Modifier l'organisation",
                "x-summary-en": "Update the organisation",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/organization/logo": {
            "get": {
                "operationId": "api_v1_organization_logo_show",
                "summary": "Lire le logo de l'organisation",
                "x-summary-en": "Read the organisation's logo",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_organization_logo_upload",
                "summary": "Envoyer le logo de l'organisation",
                "x-summary-en": "Upload the organisation's logo",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/settings": {
            "get": {
                "operationId": "api_v1_settings_show",
                "summary": "Lire les délais et limites",
                "x-summary-en": "Read delays and limits",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "put": {
                "operationId": "api_v1_settings_update",
                "summary": "Modifier les délais et limites",
                "x-summary-en": "Update delays and limits",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/settings/history": {
            "get": {
                "operationId": "api_v1_settings_history",
                "summary": "Lire l'historique des réglages",
                "x-summary-en": "Read the settings history",
                "tags": [
                    "organization"
                ],
                "x-scope": "organisation:lire",
                "x-pagination": "always",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "items": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object"
                                                            }
                                                        },
                                                        "pagination": {
                                                            "$ref": "#/components/schemas/Pagination"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/audit": {
            "get": {
                "operationId": "api_v1_audit",
                "summary": "Lire le journal d'audit",
                "x-summary-en": "Read the audit log",
                "tags": [
                    "organization"
                ],
                "x-scope": "journal:lire",
                "x-pagination": "always",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "journal:lire"
                        ]
                    }
                ],
                "description": "Les actions sensibles, de la plus récente à la plus ancienne. Propriétaire seulement. Jeton : portée `journal:lire`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "default": 25,
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "items": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object"
                                                            }
                                                        },
                                                        "pagination": {
                                                            "$ref": "#/components/schemas/Pagination"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/orientation-forms": {
            "get": {
                "operationId": "api_v1_orientation_forms",
                "summary": "Lister les formulaires d'orientation",
                "x-summary-en": "List routing forms",
                "tags": [
                    "routing"
                ],
                "x-scope": "types:lire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "description": "Jeton : portée `types:lire`. Sans `page` ni `limit`, une liste simple ; avec, `{items, pagination}`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "object"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_orientation_forms_create",
                "summary": "Créer un formulaire d'orientation",
                "x-summary-en": "Create a routing form",
                "tags": [
                    "routing"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/orientation-forms/{id}/submissions": {
            "get": {
                "operationId": "api_v1_orientation_forms_submissions",
                "summary": "Lister les réponses à un formulaire d'orientation",
                "x-summary-en": "List a routing form's submissions",
                "tags": [
                    "routing"
                ],
                "x-scope": "types:lire",
                "x-pagination": "always",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "description": "De la plus récente à la plus ancienne. Superviseur ou propriétaire (`orientation.manage`). Jeton : portée `types:lire`. Les adresses s'effacent avec la durée de conservation de l'organisation.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "Le formulaire",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "default": 25,
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "items": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object"
                                                            }
                                                        },
                                                        "pagination": {
                                                            "$ref": "#/components/schemas/Pagination"
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/orientation-submissions/{id}": {
            "get": {
                "operationId": "api_v1_orientation_submissions_show",
                "summary": "Lire une réponse à un formulaire d'orientation",
                "x-summary-en": "Read a routing form submission",
                "tags": [
                    "routing"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "description": "Superviseur ou propriétaire. Jeton : portée `types:lire`.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/orientation-forms/{id}": {
            "get": {
                "operationId": "api_v1_orientation_forms_show",
                "summary": "Lire un formulaire d'orientation",
                "x-summary-en": "Read a routing form",
                "tags": [
                    "routing"
                ],
                "x-scope": "types:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "types:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "put": {
                "operationId": "api_v1_orientation_forms_update",
                "summary": "Modifier un formulaire d'orientation",
                "x-summary-en": "Update a routing form",
                "tags": [
                    "routing"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "delete": {
                "operationId": "api_v1_orientation_forms_delete",
                "summary": "Supprimer un formulaire d'orientation",
                "x-summary-en": "Delete a routing form",
                "tags": [
                    "routing"
                ],
                "x-scope": "organisation:administrer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "organisation:administrer"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "Fait, sans contenu",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/polls": {
            "get": {
                "operationId": "api_v1_polls",
                "summary": "Lister les sondages",
                "x-summary-en": "List polls",
                "tags": [
                    "polls"
                ],
                "x-scope": "reservations:lire",
                "x-pagination": "optional",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:lire"
                        ]
                    }
                ],
                "description": "Les siens, ou tous avec `bookings.all`. Sans `page` ni `limit`, les 100 plus récents en liste simple ; avec, tous, paginés `{items, pagination}`. Jeton : portée `reservations:lire`.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "minimum": 1
                        }
                    },
                    {
                        "$ref": "#/components/parameters/Page"
                    },
                    {
                        "$ref": "#/components/parameters/Limit"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "oneOf": [
                                                        {
                                                            "type": "array",
                                                            "items": {
                                                                "$ref": "#/components/schemas/Poll"
                                                            }
                                                        },
                                                        {
                                                            "type": "object",
                                                            "properties": {
                                                                "items": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "$ref": "#/components/schemas/Poll"
                                                                    }
                                                                },
                                                                "pagination": {
                                                                    "$ref": "#/components/schemas/Pagination"
                                                                }
                                                            }
                                                        }
                                                    ],
                                                    "description": "La liste ; avec `page` ou `limit`, `{items, pagination}`"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            },
            "post": {
                "operationId": "api_v1_polls_create",
                "summary": "Créer un sondage de dates",
                "x-summary-en": "Create a meeting poll",
                "tags": [
                    "polls"
                ],
                "x-scope": "reservations:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{type_id, title?, guest_name, guest_email, guest_phone?, slots: [ISO 8601]}` — l'adresse n'est donnée qu'ici",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "type_id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                "title": "Point d'étape",
                                "guest_name": "Camille Martin",
                                "guest_email": "camille.martin@example.com",
                                "slots": [
                                    "2026-12-01T10:00:00+01:00",
                                    "2026-12-02T15:00:00+01:00"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Poll"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/polls/{id}": {
            "get": {
                "operationId": "api_v1_polls_show",
                "summary": "Lire un sondage et ses votes",
                "x-summary-en": "Read a poll and its votes",
                "tags": [
                    "polls"
                ],
                "x-scope": "reservations:lire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:lire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Poll"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/polls/{id}/confirm": {
            "post": {
                "operationId": "api_v1_polls_confirm",
                "summary": "Confirmer une date du sondage (crée le rendez-vous)",
                "x-summary-en": "Confirm a poll date (creates the booking)",
                "tags": [
                    "polls"
                ],
                "x-scope": "reservations:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "description": "`{start}` — un des créneaux du sondage ; 409 s'il n'est plus libre",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "start": "2026-12-01T10:00:00+01:00"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/polls/{id}/close": {
            "post": {
                "operationId": "api_v1_polls_close",
                "summary": "Clore un sondage",
                "x-summary-en": "Close a poll",
                "tags": [
                    "polls"
                ],
                "x-scope": "reservations:ecrire",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "reservations:ecrire"
                        ]
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}"
                        }
                    },
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "$ref": "#/components/schemas/Poll"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/privacy/guest": {
            "get": {
                "operationId": "api_v1_privacy_guest",
                "summary": "Exporter les données d'un invité (RGPD)",
                "x-summary-en": "Export a guest's data (GDPR)",
                "tags": [
                    "privacy"
                ],
                "x-scope": "donnees:effacer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "donnees:effacer"
                        ]
                    }
                ],
                "description": "Tout ce que l'organisation garde sur une adresse : rendez-vous, sondages, votes, envois du lien, désabonnements, réponses d'orientation. Propriétaire (`privacy.manage`). Jeton : portée `donnees:effacer`.",
                "parameters": [
                    {
                        "name": "email",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "email"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/privacy/guest/erase": {
            "post": {
                "operationId": "api_v1_privacy_erase",
                "summary": "Effacer les données d'un invité",
                "x-summary-en": "Erase a guest's data",
                "tags": [
                    "privacy"
                ],
                "x-scope": "donnees:effacer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "donnees:effacer"
                        ]
                    }
                ],
                "description": "Les rendez-vous restent dans les chiffres, vidés de l'invité ; les votes partent ; le désabonnement reste. Refusé (422) tant qu'un rendez-vous est à venir. Propriétaire. Jeton : portée `donnees:effacer`.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "email": "camille.martin@example.com"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/privacy/bookings/erase": {
            "post": {
                "operationId": "api_v1_privacy_bookings_erase",
                "summary": "Effacer les invités des rendez-vous d'une période",
                "x-summary-en": "Erase the guests of a period's bookings",
                "tags": [
                    "privacy"
                ],
                "x-scope": "donnees:effacer",
                "x-pagination": "none",
                "security": [
                    {
                        "ApiKey": []
                    },
                    {
                        "OAuth2": [
                            "donnees:effacer"
                        ]
                    }
                ],
                "description": "Les rendez-vous commencés dans [from, to[ restent dans les chiffres, vidés de l'invité (comme l'effacement par adresse). `to` doit être passé ; refusé (422) si un rendez-vous de la période est encore à venir. Propriétaire. Jeton : portée `donnees:effacer`.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/IdempotencyKey"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            },
                            "example": {
                                "from": "2024-01-01T00:00:00+01:00",
                                "to": "2025-01-01T00:00:00+01:00"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "Idempotent-Replayed": {
                                "$ref": "#/components/headers/Idempotent-Replayed"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/Envelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "examples": [
                                                        "success"
                                                    ]
                                                },
                                                "data": {
                                                    "type": "object"
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Unauthorized"
                    },
                    "403": {
                        "$ref": "#/components/responses/Forbidden"
                    },
                    "404": {
                        "$ref": "#/components/responses/NotFound"
                    },
                    "409": {
                        "$ref": "#/components/responses/Conflict"
                    },
                    "422": {
                        "$ref": "#/components/responses/Unprocessable"
                    },
                    "429": {
                        "$ref": "#/components/responses/TooManyRequests"
                    }
                }
            }
        },
        "/oauth/token": {
            "servers": [
                {
                    "url": "https://www.artibox-calendar.com/api/webhooks",
                    "description": "Serveur d'autorisation"
                }
            ],
            "post": {
                "operationId": "oauth_token",
                "summary": "Échanger un code ou un jeton de rafraîchissement",
                "x-summary-en": "Exchange a code or a refresh token",
                "description": "`grant_type=authorization_code` (`code` valable 10 minutes, une fois ; `redirect_uri` ; `code_verifier` PKCE S256) ou `grant_type=refresh_token` (le jeton de rafraîchissement est remplacé à chaque usage ; un ancien réutilisé coupe l'accès).",
                "tags": [
                    "oauth"
                ],
                "x-scope": null,
                "security": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "grant_type": {
                                        "type": "string",
                                        "enum": [
                                            "authorization_code",
                                            "refresh_token"
                                        ]
                                    },
                                    "code": {
                                        "type": "string"
                                    },
                                    "redirect_uri": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "code_verifier": {
                                        "type": "string"
                                    },
                                    "refresh_token": {
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "type": "string",
                                        "description": "`rdv_app_…`"
                                    },
                                    "client_secret": {
                                        "type": "string",
                                        "description": "`rdv_cs_…`"
                                    }
                                },
                                "required": [
                                    "grant_type",
                                    "client_id",
                                    "client_secret"
                                ]
                            }
                        },
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "grant_type": {
                                        "type": "string",
                                        "enum": [
                                            "authorization_code",
                                            "refresh_token"
                                        ]
                                    },
                                    "code": {
                                        "type": "string"
                                    },
                                    "redirect_uri": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "code_verifier": {
                                        "type": "string"
                                    },
                                    "refresh_token": {
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "type": "string",
                                        "description": "`rdv_app_…`"
                                    },
                                    "client_secret": {
                                        "type": "string",
                                        "description": "`rdv_cs_…`"
                                    }
                                },
                                "required": [
                                    "grant_type",
                                    "client_id",
                                    "client_secret"
                                ]
                            },
                            "example": {
                                "grant_type": "authorization_code",
                                "code": "rdv_code_…",
                                "redirect_uri": "https://example.com/oauth/retour",
                                "code_verifier": "…",
                                "client_id": "rdv_app_…",
                                "client_secret": "rdv_cs_…"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi (sans enveloppe, `Cache-Control: no-store`)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "access_token": "rdv_oat_…",
                                    "token_type": "Bearer",
                                    "expires_in": 7200,
                                    "refresh_token": "rdv_ort_…",
                                    "scope": "types:lire reservations:lire"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Erreur OAuth 2 : `{\"error\": \"invalid_grant\"}`, `unsupported_grant_type`…"
                    },
                    "404": {
                        "description": "`client_id` ou `client_secret` faux"
                    }
                }
            }
        },
        "/oauth/revoke": {
            "servers": [
                {
                    "url": "https://www.artibox-calendar.com/api/webhooks",
                    "description": "Serveur d'autorisation"
                }
            ],
            "post": {
                "operationId": "oauth_revoke",
                "summary": "Révoquer un jeton (RFC 7009)",
                "x-summary-en": "Revoke a token (RFC 7009)",
                "description": "Un jeton d'accès ou de rafraîchissement de l'application.",
                "tags": [
                    "oauth"
                ],
                "x-scope": null,
                "security": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "type": "string",
                                        "description": "`rdv_app_…`"
                                    },
                                    "client_secret": {
                                        "type": "string",
                                        "description": "`rdv_cs_…`"
                                    }
                                },
                                "required": [
                                    "token",
                                    "client_id",
                                    "client_secret"
                                ]
                            }
                        },
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "type": "string",
                                        "description": "`rdv_app_…`"
                                    },
                                    "client_secret": {
                                        "type": "string",
                                        "description": "`rdv_cs_…`"
                                    }
                                },
                                "required": [
                                    "token",
                                    "client_id",
                                    "client_secret"
                                ]
                            },
                            "example": {
                                "token": "rdv_ort_…",
                                "client_id": "rdv_app_…",
                                "client_secret": "rdv_cs_…"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi (sans enveloppe, `Cache-Control: no-store`)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": []
                            }
                        }
                    },
                    "400": {
                        "description": "Erreur OAuth 2 : `{\"error\": \"invalid_grant\"}`, `unsupported_grant_type`…"
                    },
                    "404": {
                        "description": "`client_id` ou `client_secret` faux"
                    }
                }
            }
        },
        "/oauth/introspect": {
            "servers": [
                {
                    "url": "https://www.artibox-calendar.com/api/webhooks",
                    "description": "Serveur d'autorisation"
                }
            ],
            "post": {
                "operationId": "oauth_introspect",
                "summary": "Inspecter un jeton (RFC 7662)",
                "x-summary-en": "Introspect a token (RFC 7662)",
                "description": "`{\"active\": false}` pour un jeton inconnu, expiré, retiré ou d'une autre application.",
                "tags": [
                    "oauth"
                ],
                "x-scope": null,
                "security": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "token_type_hint": {
                                        "type": "string",
                                        "enum": [
                                            "access_token",
                                            "refresh_token"
                                        ]
                                    },
                                    "client_id": {
                                        "type": "string",
                                        "description": "`rdv_app_…`"
                                    },
                                    "client_secret": {
                                        "type": "string",
                                        "description": "`rdv_cs_…`"
                                    }
                                },
                                "required": [
                                    "token",
                                    "client_id",
                                    "client_secret"
                                ]
                            }
                        },
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "token": {
                                        "type": "string"
                                    },
                                    "token_type_hint": {
                                        "type": "string",
                                        "enum": [
                                            "access_token",
                                            "refresh_token"
                                        ]
                                    },
                                    "client_id": {
                                        "type": "string",
                                        "description": "`rdv_app_…`"
                                    },
                                    "client_secret": {
                                        "type": "string",
                                        "description": "`rdv_cs_…`"
                                    }
                                },
                                "required": [
                                    "token",
                                    "client_id",
                                    "client_secret"
                                ]
                            },
                            "example": {
                                "token": "rdv_oat_…",
                                "client_id": "rdv_app_…",
                                "client_secret": "rdv_cs_…"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Réussi (sans enveloppe, `Cache-Control: no-store`)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                },
                                "example": {
                                    "active": true,
                                    "scope": "types:lire",
                                    "client_id": "rdv_app_…",
                                    "token_type": "access_token",
                                    "exp": 1764583200,
                                    "iat": 1764576000,
                                    "sub": "0192f0c4-0000-7000-8000-000000000001",
                                    "username": "lea.bernard@example.com",
                                    "organization_id": "0192f0a0-0000-7000-8000-0000000000aa"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Erreur OAuth 2 : `{\"error\": \"invalid_grant\"}`, `unsupported_grant_type`…"
                    },
                    "404": {
                        "description": "`client_id` ou `client_secret` faux"
                    }
                }
            }
        }
    },
    "webhooks": {
        "reservation.creee": {
            "post": {
                "operationId": "webhook_reservation_creee",
                "summary": "Un rendez-vous est pris",
                "x-summary-en": "A booking is made",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "reservation.creee"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "reservation": {
                                                        "$ref": "#/components/schemas/WebhookBooking"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "reservation.creee",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "reservation": {
                                        "id": "0192f0d1-1b2c-7d3e-8f40-a1b2c3d4e5f6",
                                        "type": {
                                            "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                            "nom": "Premier échange",
                                            "slug": "premier-echange"
                                        },
                                        "libelle": "Premier échange",
                                        "statut": "confirmed",
                                        "debut": "2026-12-01T10:00:00+01:00",
                                        "fin": "2026-12-01T10:30:00+01:00",
                                        "mode": "video",
                                        "fuseau_invite": "Europe/Paris",
                                        "langue_invite": "fr",
                                        "invite": {
                                            "nom": "Camille Martin",
                                            "email": "camille.martin@example.com",
                                            "telephone": null
                                        },
                                        "reponses": [],
                                        "lien_visio": "https://meet.jit.si/exemple",
                                        "lieu": null,
                                        "organisateur": {
                                            "id": "0192f0c4-0000-7000-8000-000000000001",
                                            "full_name": "Léa Bernard"
                                        },
                                        "co_organisateurs": [],
                                        "contexte": {
                                            "source": "mon-crm",
                                            "type": "affaire",
                                            "id": "AFF-2026-0042"
                                        },
                                        "suivi": {
                                            "utm_source": "newsletter"
                                        },
                                        "origine": "public_page",
                                        "motif_annulation": null,
                                        "liens": {
                                            "gerer": "https://exemple.artibox.io/g/…"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "reservation.deplacee": {
            "post": {
                "operationId": "webhook_reservation_deplacee",
                "summary": "Un rendez-vous est déplacé",
                "x-summary-en": "A booking is rescheduled",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "reservation.deplacee"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "reservation": {
                                                        "$ref": "#/components/schemas/WebhookBooking"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "reservation.deplacee",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "reservation": {
                                        "id": "0192f0d1-1b2c-7d3e-8f40-a1b2c3d4e5f6",
                                        "type": {
                                            "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                            "nom": "Premier échange",
                                            "slug": "premier-echange"
                                        },
                                        "libelle": "Premier échange",
                                        "statut": "confirmed",
                                        "debut": "2026-12-01T10:00:00+01:00",
                                        "fin": "2026-12-01T10:30:00+01:00",
                                        "mode": "video",
                                        "fuseau_invite": "Europe/Paris",
                                        "langue_invite": "fr",
                                        "invite": {
                                            "nom": "Camille Martin",
                                            "email": "camille.martin@example.com",
                                            "telephone": null
                                        },
                                        "reponses": [],
                                        "lien_visio": "https://meet.jit.si/exemple",
                                        "lieu": null,
                                        "organisateur": {
                                            "id": "0192f0c4-0000-7000-8000-000000000001",
                                            "full_name": "Léa Bernard"
                                        },
                                        "co_organisateurs": [],
                                        "contexte": {
                                            "source": "mon-crm",
                                            "type": "affaire",
                                            "id": "AFF-2026-0042"
                                        },
                                        "suivi": {
                                            "utm_source": "newsletter"
                                        },
                                        "origine": "public_page",
                                        "motif_annulation": null,
                                        "liens": {
                                            "gerer": "https://exemple.artibox.io/g/…"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "reservation.annulee": {
            "post": {
                "operationId": "webhook_reservation_annulee",
                "summary": "Un rendez-vous est annulé",
                "x-summary-en": "A booking is cancelled",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "reservation.annulee"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "reservation": {
                                                        "$ref": "#/components/schemas/WebhookBooking"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "reservation.annulee",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "reservation": {
                                        "id": "0192f0d1-1b2c-7d3e-8f40-a1b2c3d4e5f6",
                                        "type": {
                                            "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                            "nom": "Premier échange",
                                            "slug": "premier-echange"
                                        },
                                        "libelle": "Premier échange",
                                        "statut": "confirmed",
                                        "debut": "2026-12-01T10:00:00+01:00",
                                        "fin": "2026-12-01T10:30:00+01:00",
                                        "mode": "video",
                                        "fuseau_invite": "Europe/Paris",
                                        "langue_invite": "fr",
                                        "invite": {
                                            "nom": "Camille Martin",
                                            "email": "camille.martin@example.com",
                                            "telephone": null
                                        },
                                        "reponses": [],
                                        "lien_visio": "https://meet.jit.si/exemple",
                                        "lieu": null,
                                        "organisateur": {
                                            "id": "0192f0c4-0000-7000-8000-000000000001",
                                            "full_name": "Léa Bernard"
                                        },
                                        "co_organisateurs": [],
                                        "contexte": {
                                            "source": "mon-crm",
                                            "type": "affaire",
                                            "id": "AFF-2026-0042"
                                        },
                                        "suivi": {
                                            "utm_source": "newsletter"
                                        },
                                        "origine": "public_page",
                                        "motif_annulation": null,
                                        "liens": {
                                            "gerer": "https://exemple.artibox.io/g/…"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "reservation.constatee": {
            "post": {
                "operationId": "webhook_reservation_constatee",
                "summary": "Un rendez-vous est constaté (honoré, absent)",
                "x-summary-en": "A booking is marked (honoured, no-show)",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "reservation.constatee"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "reservation": {
                                                        "$ref": "#/components/schemas/WebhookBooking"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "reservation.constatee",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "reservation": {
                                        "id": "0192f0d1-1b2c-7d3e-8f40-a1b2c3d4e5f6",
                                        "type": {
                                            "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                            "nom": "Premier échange",
                                            "slug": "premier-echange"
                                        },
                                        "libelle": "Premier échange",
                                        "statut": "confirmed",
                                        "debut": "2026-12-01T10:00:00+01:00",
                                        "fin": "2026-12-01T10:30:00+01:00",
                                        "mode": "video",
                                        "fuseau_invite": "Europe/Paris",
                                        "langue_invite": "fr",
                                        "invite": {
                                            "nom": "Camille Martin",
                                            "email": "camille.martin@example.com",
                                            "telephone": null
                                        },
                                        "reponses": [],
                                        "lien_visio": "https://meet.jit.si/exemple",
                                        "lieu": null,
                                        "organisateur": {
                                            "id": "0192f0c4-0000-7000-8000-000000000001",
                                            "full_name": "Léa Bernard"
                                        },
                                        "co_organisateurs": [],
                                        "contexte": {
                                            "source": "mon-crm",
                                            "type": "affaire",
                                            "id": "AFF-2026-0042"
                                        },
                                        "suivi": {
                                            "utm_source": "newsletter"
                                        },
                                        "origine": "public_page",
                                        "motif_annulation": null,
                                        "liens": {
                                            "gerer": "https://exemple.artibox.io/g/…"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "sondage.vote": {
            "post": {
                "operationId": "webhook_sondage_vote",
                "summary": "Un invité vote à un sondage",
                "x-summary-en": "A guest votes on a poll",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "sondage.vote"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "sondage": {
                                                        "$ref": "#/components/schemas/Poll"
                                                    },
                                                    "vote": {
                                                        "type": "object",
                                                        "properties": {
                                                            "nom": {
                                                                "type": "string"
                                                            },
                                                            "email": {
                                                                "type": "string"
                                                            },
                                                            "choix": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "string",
                                                                    "format": "date-time"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "sondage.vote",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "sondage": {
                                        "id": "0192f0e2-…",
                                        "title": "Point d'étape",
                                        "status": "open"
                                    },
                                    "vote": {
                                        "nom": "Camille Martin",
                                        "email": "camille.martin@example.com",
                                        "choix": [
                                            "2026-12-01T10:00:00+01:00"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "sondage.confirme": {
            "post": {
                "operationId": "webhook_sondage_confirme",
                "summary": "Une date du sondage est confirmée",
                "x-summary-en": "A poll date is confirmed",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "sondage.confirme"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "sondage": {
                                                        "$ref": "#/components/schemas/Poll"
                                                    },
                                                    "reservation": {
                                                        "$ref": "#/components/schemas/WebhookBooking"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "sondage.confirme",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "sondage": {
                                        "id": "0192f0e2-…",
                                        "status": "confirmed"
                                    },
                                    "reservation": {
                                        "id": "0192f0d1-1b2c-7d3e-8f40-a1b2c3d4e5f6",
                                        "type": {
                                            "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                            "nom": "Premier échange",
                                            "slug": "premier-echange"
                                        },
                                        "libelle": "Premier échange",
                                        "statut": "confirmed",
                                        "debut": "2026-12-01T10:00:00+01:00",
                                        "fin": "2026-12-01T10:30:00+01:00",
                                        "mode": "video",
                                        "fuseau_invite": "Europe/Paris",
                                        "langue_invite": "fr",
                                        "invite": {
                                            "nom": "Camille Martin",
                                            "email": "camille.martin@example.com",
                                            "telephone": null
                                        },
                                        "reponses": [],
                                        "lien_visio": "https://meet.jit.si/exemple",
                                        "lieu": null,
                                        "organisateur": {
                                            "id": "0192f0c4-0000-7000-8000-000000000001",
                                            "full_name": "Léa Bernard"
                                        },
                                        "co_organisateurs": [],
                                        "contexte": {
                                            "source": "mon-crm",
                                            "type": "affaire",
                                            "id": "AFF-2026-0042"
                                        },
                                        "suivi": {
                                            "utm_source": "newsletter"
                                        },
                                        "origine": "public_page",
                                        "motif_annulation": null,
                                        "liens": {
                                            "gerer": "https://exemple.artibox.io/g/…"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "envoi_lien.envoye": {
            "post": {
                "operationId": "webhook_envoi_lien_envoye",
                "summary": "Le lien d'un type est envoyé",
                "x-summary-en": "An event type's link is sent",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "envoi_lien.envoye"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "envoi_lien": {
                                                        "$ref": "#/components/schemas/LinkSend"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "envoi_lien.envoye",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "envoi_lien": {
                                        "id": "0192f0e3-…",
                                        "channel": "email",
                                        "recipient": "camille.martin@example.com"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "envoi_lien.reservation_obtenue": {
            "post": {
                "operationId": "webhook_envoi_lien_reservation_obtenue",
                "summary": "Un lien envoyé mène à une réservation",
                "x-summary-en": "A sent link leads to a booking",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "envoi_lien.reservation_obtenue"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "envoi_lien": {
                                                        "$ref": "#/components/schemas/LinkSend"
                                                    },
                                                    "reservation": {
                                                        "$ref": "#/components/schemas/WebhookBooking"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "envoi_lien.reservation_obtenue",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "envoi_lien": {
                                        "id": "0192f0e3-…",
                                        "channel": "email"
                                    },
                                    "reservation": {
                                        "id": "0192f0d1-1b2c-7d3e-8f40-a1b2c3d4e5f6",
                                        "type": {
                                            "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                            "nom": "Premier échange",
                                            "slug": "premier-echange"
                                        },
                                        "libelle": "Premier échange",
                                        "statut": "confirmed",
                                        "debut": "2026-12-01T10:00:00+01:00",
                                        "fin": "2026-12-01T10:30:00+01:00",
                                        "mode": "video",
                                        "fuseau_invite": "Europe/Paris",
                                        "langue_invite": "fr",
                                        "invite": {
                                            "nom": "Camille Martin",
                                            "email": "camille.martin@example.com",
                                            "telephone": null
                                        },
                                        "reponses": [],
                                        "lien_visio": "https://meet.jit.si/exemple",
                                        "lieu": null,
                                        "organisateur": {
                                            "id": "0192f0c4-0000-7000-8000-000000000001",
                                            "full_name": "Léa Bernard"
                                        },
                                        "co_organisateurs": [],
                                        "contexte": {
                                            "source": "mon-crm",
                                            "type": "affaire",
                                            "id": "AFF-2026-0042"
                                        },
                                        "suivi": {
                                            "utm_source": "newsletter"
                                        },
                                        "origine": "public_page",
                                        "motif_annulation": null,
                                        "liens": {
                                            "gerer": "https://exemple.artibox.io/g/…"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "type.cree": {
            "post": {
                "operationId": "webhook_type_cree",
                "summary": "Un type de rendez-vous est créé",
                "x-summary-en": "An event type is created",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "type.cree"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "type": {
                                                        "$ref": "#/components/schemas/AppointmentType"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "type.cree",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "type": {
                                        "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                        "name": "Premier échange",
                                        "slug": "premier-echange"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "type.modifie": {
            "post": {
                "operationId": "webhook_type_modifie",
                "summary": "Un type de rendez-vous est modifié",
                "x-summary-en": "An event type is updated",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "type.modifie"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "type": {
                                                        "$ref": "#/components/schemas/AppointmentType"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "type.modifie",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "type": {
                                        "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                                        "name": "Premier échange",
                                        "slug": "premier-echange"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "connexion_agenda.a_reconnecter": {
            "post": {
                "operationId": "webhook_connexion_agenda_a_reconnecter",
                "summary": "Un agenda connecté doit être reconnecté",
                "x-summary-en": "A connected calendar must be reconnected",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "connexion_agenda.a_reconnecter"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "connexion": {
                                                        "$ref": "#/components/schemas/CalendarConnection"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "connexion_agenda.a_reconnecter",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "connexion": {
                                        "id": "0192f0e4-…",
                                        "provider": "google",
                                        "state": "reconnect"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "routage.soumis": {
            "post": {
                "operationId": "webhook_routage_soumis",
                "summary": "Un formulaire d'orientation est rempli",
                "x-summary-en": "A routing form is submitted",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "routage.soumis"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "formulaire": {
                                                        "type": "string"
                                                    },
                                                    "reponses": {
                                                        "type": "object"
                                                    },
                                                    "resultat": {
                                                        "type": "object",
                                                        "properties": {
                                                            "type": {
                                                                "type": [
                                                                    "object",
                                                                    "null"
                                                                ],
                                                                "properties": {
                                                                    "slug": {
                                                                        "type": "string"
                                                                    },
                                                                    "name": {
                                                                        "type": "string"
                                                                    },
                                                                    "link": {
                                                                        "type": "string",
                                                                        "format": "uri"
                                                                    }
                                                                }
                                                            },
                                                            "message": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "routage.soumis",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "formulaire": "orienter-ma-demande",
                                    "reponses": {
                                        "q1": "Devis"
                                    },
                                    "resultat": {
                                        "type": {
                                            "slug": "premier-echange",
                                            "name": "Premier échange",
                                            "link": "https://exemple.artibox.io/r/demo-conseil/premier-echange"
                                        },
                                        "message": null
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        },
        "test": {
            "post": {
                "operationId": "webhook_test",
                "summary": "Événement de test (« Envoyer un test »)",
                "x-summary-en": "Test event (« Send a test »)",
                "tags": [
                    "webhooks"
                ],
                "parameters": [
                    {
                        "name": "X-Signature",
                        "in": "header",
                        "required": true,
                        "description": "`t=<instant Unix>,v1=<HMAC-SHA256 en hexadécimal de « <t>.<corps brut> » avec le secret whsec_… de l'abonnement>`",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/WebhookEnvelope"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "evenement": {
                                                "const": "test"
                                            },
                                            "donnees": {
                                                "type": "object",
                                                "properties": {
                                                    "message": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    }
                                ]
                            },
                            "example": {
                                "id": "0192f0f5-8a9b-7c0d-9e1f-203142536475",
                                "evenement": "test",
                                "cree_le": "2026-12-01T09:00:00+00:00",
                                "organisation_id": "0192f0a0-0000-7000-8000-0000000000aa",
                                "donnees": {
                                    "message": "Test"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "2XX": {
                        "description": "Reçu. Toute autre réponse, une redirection ou pas de réponse en 10 secondes est réessayée après 1, 5, 30, 120, 720 minutes ; 20 échecs de suite désactivent l'abonnement."
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "ApiKey": {
                "type": "apiKey",
                "in": "header",
                "name": "x-api-key",
                "description": "Un jeton personnel `rdv_pat_…` ou un jeton d'accès OAuth `rdv_oat_…`. L'en-tête `Authorization: Bearer` n'est pas lu."
            },
            "OAuth2": {
                "type": "oauth2",
                "description": "Code d'autorisation avec PKCE (S256 seulement) et `state`. Le jeton d'accès obtenu s'envoie dans `x-api-key`. Le secret de l'application passe dans le corps (`client_secret_post`).",
                "flows": {
                    "authorizationCode": {
                        "authorizationUrl": "https://www.artibox-calendar.com/oauth/autoriser",
                        "tokenUrl": "https://www.artibox-calendar.com/api/webhooks/oauth/token",
                        "refreshUrl": "https://www.artibox-calendar.com/api/webhooks/oauth/token",
                        "scopes": {
                            "utilisateur:lire": "Lire le compte du jeton, son contexte et ses notifications",
                            "organisation:lire": "Lire l'organisation, ses réglages et ses membres",
                            "organisation:administrer": "Modifier l'organisation, ses réglages, ses membres et ses formulaires d'orientation",
                            "types:lire": "Lire les types de rendez-vous, leurs créneaux et leurs messages",
                            "types:ecrire": "Créer, modifier et supprimer les types de rendez-vous",
                            "disponibilites:lire": "Lire les plannings, les exceptions, les heures occupées et l'aperçu des disponibilités",
                            "disponibilites:ecrire": "Créer, modifier et supprimer les plannings et les exceptions",
                            "reservations:lire": "Lire les rendez-vous et les sondages",
                            "reservations:ecrire": "Créer, déplacer, annuler et constater les rendez-vous ; gérer les sondages",
                            "liens:ecrire": "Créer des liens uniques, des liens signés et des envois de lien",
                            "webhooks:ecrire": "Gérer les abonnements aux webhooks et rejouer les livraisons",
                            "journal:lire": "Lire le journal d'audit de l'organisation",
                            "donnees:effacer": "Exporter et effacer les données personnelles d'un invité (RGPD)"
                        }
                    }
                },
                "x-revocation-url": "https://www.artibox-calendar.com/api/webhooks/oauth/revoke",
                "x-introspection-url": "https://www.artibox-calendar.com/api/webhooks/oauth/introspect",
                "x-metadata-url": "https://www.artibox-calendar.com/.well-known/oauth-authorization-server",
                "x-userinfo-url": "https://www.artibox-calendar.com/api/v1/users/me",
                "x-pkce": "S256"
            }
        },
        "headers": {
            "X-RateLimit-Limit": {
                "description": "Appels permis par minute pour ce jeton",
                "schema": {
                    "type": "integer",
                    "examples": [
                        100
                    ]
                }
            },
            "X-RateLimit-Remaining": {
                "description": "Appels restants dans la minute",
                "schema": {
                    "type": "integer"
                }
            },
            "X-RateLimit-Reset": {
                "description": "Instant (Unix) où la limite se renouvelle",
                "schema": {
                    "type": "integer"
                }
            },
            "Retry-After": {
                "description": "Secondes à attendre avant de réessayer",
                "schema": {
                    "type": "integer"
                }
            },
            "Idempotent-Replayed": {
                "description": "`true` : la réponse est celle du premier appel avec la même `Idempotency-Key`",
                "schema": {
                    "type": "string",
                    "enum": [
                        "true"
                    ]
                }
            }
        },
        "parameters": {
            "Page": {
                "name": "page",
                "in": "query",
                "description": "Numéro de page, à partir de 1",
                "schema": {
                    "type": "integer",
                    "minimum": 1,
                    "default": 1
                }
            },
            "Limit": {
                "name": "limit",
                "in": "query",
                "description": "Éléments par page (500 au plus)",
                "schema": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "default": 25
                }
            },
            "IdempotencyKey": {
                "name": "Idempotency-Key",
                "in": "header",
                "description": "Une clé de votre choix (255 caractères au plus) : rejouée dans les 24 heures, la même requête rend la première réponse sans rien recréer ; en cours, 409 ; sur une autre route, 422.",
                "schema": {
                    "type": "string",
                    "maxLength": 255
                }
            }
        },
        "responses": {
            "Unauthorized": {
                "description": "Jeton absent, inconnu, expiré ou retiré",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "Forbidden": {
                "description": "Portée manquante, route fermée aux jetons ou droit refusé au membre du jeton",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "NotFound": {
                "description": "Introuvable, ou d'une autre organisation (jamais 403 dans ce cas)",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "Conflict": {
                "description": "Conflit : créneau pris entre-temps, ou requête de même `Idempotency-Key` en cours",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "Unprocessable": {
                "description": "Données refusées : `errors.validation` donne le message de chaque champ",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            },
            "TooManyRequests": {
                "description": "Plus de 100 appels dans la minute",
                "headers": {
                    "Retry-After": {
                        "$ref": "#/components/headers/Retry-After"
                    }
                },
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "description": "L'enveloppe d'une erreur : `errors.error` le message, `errors.reason` un code stable quand il y en a un, `errors.validation` les messages par champ (422).",
                "required": [
                    "message",
                    "data",
                    "errors"
                ],
                "properties": {
                    "message": {
                        "type": "string",
                        "const": "error"
                    },
                    "data": {
                        "type": "null"
                    },
                    "errors": {
                        "type": "object",
                        "properties": {
                            "error": {
                                "type": "string"
                            },
                            "reason": {
                                "type": "string"
                            },
                            "validation": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "example": {
                    "message": "error",
                    "data": null,
                    "errors": {
                        "error": "Ce créneau n'est plus disponible.",
                        "validation": {
                            "start": [
                                "Ce créneau n'est plus disponible."
                            ]
                        }
                    }
                }
            },
            "Pagination": {
                "type": "object",
                "properties": {
                    "current_page": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "total_pages": {
                        "type": "integer"
                    },
                    "total_items": {
                        "type": "integer"
                    },
                    "items_per_page": {
                        "type": "integer",
                        "maximum": 500
                    }
                },
                "example": {
                    "current_page": 1,
                    "total_pages": 4,
                    "total_items": 87,
                    "items_per_page": 25
                }
            },
            "AppointmentType": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "name": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "color": {
                        "type": "string"
                    },
                    "mode": {
                        "type": "string",
                        "enum": [
                            "phone",
                            "video",
                            "in_person"
                        ]
                    },
                    "format": {
                        "type": "string",
                        "enum": [
                            "individual",
                            "round_robin",
                            "collective",
                            "group"
                        ]
                    },
                    "duration_minutes": {
                        "type": "integer"
                    },
                    "buffer_before_minutes": {
                        "type": "integer"
                    },
                    "buffer_after_minutes": {
                        "type": "integer"
                    },
                    "notice_minutes": {
                        "type": "integer"
                    },
                    "horizon_days": {
                        "type": "integer"
                    },
                    "max_per_day": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "capacity": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "video_provider": {
                        "type": "string",
                        "enum": [
                            "auto",
                            "fixed_link",
                            "zoom"
                        ]
                    },
                    "visibility": {
                        "type": "string",
                        "enum": [
                            "public",
                            "secret",
                            "invitation"
                        ]
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "questions": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "label": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "context_required": {
                        "type": "boolean"
                    },
                    "members": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                },
                "example": {
                    "id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                    "name": "Premier échange",
                    "slug": "premier-echange",
                    "mode": "video",
                    "format": "individual",
                    "duration_minutes": 30,
                    "active": true,
                    "visibility": "public"
                }
            },
            "Slot": {
                "type": "object",
                "properties": {
                    "start": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    },
                    "end": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    },
                    "organizers": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "description": "Les membres libres sur ce créneau"
                    },
                    "places": {
                        "type": "integer",
                        "description": "Format groupe : les places restantes"
                    }
                }
            },
            "SlotResult": {
                "type": "object",
                "properties": {
                    "slots": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Slot"
                        }
                    },
                    "unreadable": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Les agendas illisibles pendant le calcul"
                    },
                    "without_calendar": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Les organisateurs sans agenda connecté"
                    }
                },
                "example": {
                    "slots": [
                        {
                            "start": "2026-12-01T10:00:00+01:00",
                            "end": "2026-12-01T10:30:00+01:00",
                            "organizers": [
                                "0192f0c4-0000-7000-8000-000000000001"
                            ]
                        }
                    ],
                    "unreadable": [],
                    "without_calendar": []
                }
            },
            "Schedule": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "member_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "name": {
                        "type": "string"
                    },
                    "is_default": {
                        "type": "boolean"
                    },
                    "ranges": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "day": {
                                    "type": "integer"
                                },
                                "start": {
                                    "type": "string"
                                },
                                "end": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            },
            "AvailabilityException": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "member_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "schedule_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "date": {
                        "type": "string",
                        "format": "date"
                    },
                    "start": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "end": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "available": {
                        "type": "boolean"
                    },
                    "reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "Booking": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "type_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "label": {
                        "type": "string"
                    },
                    "organizer": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string",
                                "format": "uuid"
                            },
                            "full_name": {
                                "type": "string"
                            }
                        }
                    },
                    "co_organizers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string",
                                    "format": "uuid"
                                },
                                "full_name": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "start": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    },
                    "end": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    },
                    "guest_timezone": {
                        "type": "string"
                    },
                    "guest_locale": {
                        "type": "string"
                    },
                    "mode": {
                        "type": "string",
                        "enum": [
                            "phone",
                            "video",
                            "in_person"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "confirmed",
                            "cancelled",
                            "honored",
                            "no_show"
                        ]
                    },
                    "guest_name": {
                        "type": "string"
                    },
                    "guest_email": {
                        "type": "string",
                        "format": "email"
                    },
                    "guest_phone": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "answers": {
                        "type": "object"
                    },
                    "video_link": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "location": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "reschedules": {
                        "type": "integer"
                    },
                    "cancelled_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "cancelled_by": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cancel_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "external_context": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Le contexte signé (11.8) : source, type, id, libelle"
                    },
                    "tracking": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "utm_*, gclid, fbclid, ref"
                    },
                    "origin": {
                        "type": "string",
                        "enum": [
                            "public_page",
                            "member",
                            "api",
                            "poll"
                        ]
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                },
                "example": {
                    "id": "0192f0d1-1b2c-7d3e-8f40-a1b2c3d4e5f6",
                    "type_id": "0192f0c4-6a51-7c3e-9d0e-5b1f3a2c4d10",
                    "label": "Premier échange",
                    "organizer": {
                        "id": "0192f0c4-0000-7000-8000-000000000001",
                        "full_name": "Léa Bernard"
                    },
                    "start": "2026-12-01T10:00:00+01:00",
                    "end": "2026-12-01T10:30:00+01:00",
                    "status": "confirmed",
                    "mode": "video",
                    "guest_name": "Camille Martin",
                    "guest_email": "camille.martin@example.com",
                    "origin": "api"
                }
            },
            "CreatedBooking": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/Booking"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "management_token": {
                                "type": "string",
                                "description": "Le jeton du lien de gestion de l'invité, donné une seule fois"
                            }
                        }
                    }
                ]
            },
            "UniqueLink": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "state": {
                        "type": "string"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    },
                    "consumed_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "booking_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "note": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                }
            },
            "SignedLink": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "`/r/{espace}/{type}?c=…`"
                    }
                }
            },
            "WebhookSubscription": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/WebhookEventName"
                        }
                    },
                    "type_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "application": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "consecutive_failures": {
                        "type": "integer"
                    },
                    "disabled_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                }
            },
            "CreatedWebhookSubscription": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/WebhookSubscription"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "secret": {
                                "type": "string",
                                "description": "Le secret de signature `whsec_…`, donné une seule fois"
                            }
                        }
                    }
                ]
            },
            "WebhookDelivery": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "event": {
                        "type": "string"
                    },
                    "event_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "status": {
                        "type": "string"
                    },
                    "attempts": {
                        "type": "integer"
                    },
                    "next_attempt_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "response_code": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "delivered_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                }
            },
            "LinkSend": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "channel": {
                        "type": "string"
                    },
                    "channel_used": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "recipient": {
                        "type": "string"
                    },
                    "recipient_name": {
                        "type": "string"
                    },
                    "subject": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "sent_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "remind_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "reminded_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "booking_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                }
            },
            "Member": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "full_name": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "role": {
                        "type": "string"
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "joined_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                }
            },
            "Poll": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "type_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "guest_name": {
                        "type": "string"
                    },
                    "guest_email": {
                        "type": "string"
                    },
                    "slots": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "start": {
                                    "type": "string",
                                    "format": "date-time",
                                    "description": "ISO 8601 avec décalage"
                                },
                                "votes": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "status": {
                        "type": "string"
                    },
                    "booking_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    }
                }
            },
            "CalendarConnection": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "provider": {
                        "type": "string"
                    },
                    "account_email": {
                        "type": "string"
                    },
                    "organization_mailbox": {
                        "type": "boolean"
                    },
                    "member_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "type": "string"
                    },
                    "last_error": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "WebhookEventName": {
                "type": "string",
                "description": "Le nom d'un événement (9.5, 11.4)"
            },
            "WebhookBooking": {
                "type": "object",
                "description": "Le rendez-vous tel que l'envoient les webhooks (11.4), clés en français.",
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "type": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string",
                                "format": "uuid"
                            },
                            "nom": {
                                "type": "string"
                            },
                            "slug": {
                                "type": "string"
                            }
                        }
                    },
                    "libelle": {
                        "type": "string"
                    },
                    "statut": {
                        "type": "string",
                        "enum": [
                            "confirmed",
                            "cancelled",
                            "honored",
                            "no_show"
                        ]
                    },
                    "debut": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    },
                    "fin": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO 8601 avec décalage"
                    },
                    "mode": {
                        "type": "string"
                    },
                    "fuseau_invite": {
                        "type": "string"
                    },
                    "langue_invite": {
                        "type": "string"
                    },
                    "invite": {
                        "type": "object",
                        "properties": {
                            "nom": {
                                "type": "string"
                            },
                            "email": {
                                "type": "string"
                            },
                            "telephone": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    },
                    "reponses": {
                        "type": "object"
                    },
                    "lien_visio": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "lieu": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "organisateur": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "string",
                                "format": "uuid"
                            },
                            "full_name": {
                                "type": "string"
                            }
                        }
                    },
                    "co_organisateurs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string",
                                    "format": "uuid"
                                },
                                "full_name": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "contexte": {
                        "type": [
                            "object",
                            "null"
                        ]
                    },
                    "suivi": {
                        "type": [
                            "object",
                            "null"
                        ]
                    },
                    "origine": {
                        "type": "string"
                    },
                    "motif_annulation": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "liens": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "gerer": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            },
            "Envelope": {
                "type": "object",
                "required": [
                    "message",
                    "data",
                    "errors"
                ],
                "properties": {
                    "message": {
                        "type": "string"
                    },
                    "data": true,
                    "errors": {
                        "type": "null"
                    }
                }
            },
            "WebhookEnvelope": {
                "type": "object",
                "required": [
                    "id",
                    "evenement",
                    "cree_le",
                    "organisation_id",
                    "donnees"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "format": "uuid",
                        "description": "L'identifiant de l'événement, le même pour tous les abonnements et les réessais"
                    },
                    "evenement": {
                        "$ref": "#/components/schemas/WebhookEventName"
                    },
                    "cree_le": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "organisation_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "donnees": {
                        "type": "object"
                    }
                }
            }
        }
    }
}