{
  "openapi": "3.0.0",
  "paths": {
    "/api/public/v1/oauth/token": {
      "post": {
        "description": "OAuth 2.0 token endpoint. `client_credentials` is for app integrations: call it from your server only, never from a browser or mobile app. `authorization_code` with PKCE (S256) and `refresh_token` are used by AI clients connecting to an app over MCP; see the MCP guide. Production and sandbox have separate hosts and credentials. Errors follow RFC 6749 section 5.2.",
        "operationId": "OAuth_token",
        "parameters": [
          {
            "name": "authorization",
            "required": true,
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/TokenRequestDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "RFC 6749 error: invalid_request, unsupported_grant_type, or invalid_scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorDto"
                }
              }
            }
          },
          "401": {
            "description": "RFC 6749 error: invalid_client",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorDto"
                }
              }
            }
          },
          "429": {
            "description": "RFC 6749 error: slow_down, with Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorDto"
                }
              }
            }
          }
        },
        "summary": "Get an access token",
        "tags": [
          "OAuth"
        ]
      }
    },
    "/api/public/v1/.well-known/jwks.json": {
      "get": {
        "operationId": "OAuth_jwks",
        "parameters": [],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "summary": "Public keys that sign access tokens for this environment",
        "tags": [
          "OAuth"
        ]
      }
    },
    "/api/public/v1/catalogues": {
      "get": {
        "description": "Returns published catalogues the app can access, after its catalogue, storefront, and agent restrictions. Scope: `catalogues:read`.",
        "operationId": "Catalogues_list",
        "parameters": [
          {
            "name": "fields",
            "required": false,
            "in": "query",
            "description": "Any of: name, slug, description, is_default, currency, valid_from, valid_until, created_at, updated_at",
            "schema": {
              "example": "id,name,slug"
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "name, created_at, updated_at. Prefix with - for descending.",
            "schema": {
              "example": "-updated_at"
            }
          },
          {
            "name": "filter[q]",
            "required": false,
            "in": "query",
            "description": "Name contains",
            "schema": {}
          },
          {
            "name": "filter[slug]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "per_page",
            "required": false,
            "in": "query",
            "description": "Maximum 100",
            "schema": {
              "example": 20
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "schema": {
              "example": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCatalogueListDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List catalogues",
        "tags": [
          "Catalogues"
        ]
      }
    },
    "/api/public/v1/catalogues/{id}": {
      "get": {
        "description": "Scope: `catalogues:read`. A catalogue outside the app’s access returns 404.",
        "operationId": "Catalogues_findOne",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "example": 12,
              "type": "number"
            }
          },
          {
            "name": "fields",
            "required": false,
            "in": "query",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCatalogueResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get a catalogue",
        "tags": [
          "Catalogues"
        ]
      }
    },
    "/api/public/v1/products": {
      "get": {
        "description": "Published products in the catalogues the app can access. `from_price` needs pricing:read and `main_image` needs media:read. Scope: `products:read`.",
        "operationId": "Products_list",
        "parameters": [
          {
            "name": "fields",
            "required": false,
            "in": "query",
            "description": "title, slug, product_code, product_type, short_description, description, duration_minutes, from_price, rating, review_count, main_image, is_bookable, is_instant_confirmation, is_cancellable, created_at, updated_at",
            "schema": {}
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "title, created_at, updated_at, display_rate, rating",
            "schema": {
              "example": "-rating"
            }
          },
          {
            "name": "filter[country]",
            "required": false,
            "in": "query",
            "description": "Country name contains",
            "schema": {
              "example": "United Arab Emirates"
            }
          },
          {
            "name": "filter[city]",
            "required": false,
            "in": "query",
            "description": "City name contains",
            "schema": {
              "example": "Abu Dhabi"
            }
          },
          {
            "name": "filter[country_id]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[city_id]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[q]",
            "required": false,
            "in": "query",
            "description": "Words, in any order, that each appear in the title, short description or description. Without `sort`, title matches come first.",
            "schema": {}
          },
          {
            "name": "filter[slug]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[product_type]",
            "required": false,
            "in": "query",
            "schema": {
              "example": "tour"
            }
          },
          {
            "name": "filter[category_id]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[catalogue_id]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "per_page",
            "required": false,
            "in": "query",
            "description": "Maximum 100",
            "schema": {}
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicProductDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List products",
        "tags": [
          "Products"
        ]
      }
    },
    "/api/public/v1/products/{id}": {
      "get": {
        "description": "With its itinerary, inclusions and exclusions, pickup, meeting point, cancellation policy, languages and FAQs. A product outside the app’s access returns 404. Scope: `products:read`.",
        "operationId": "Products_findOne",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "example": 4211,
              "type": "number"
            }
          },
          {
            "name": "fields",
            "required": false,
            "in": "query",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProductDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get a product",
        "tags": [
          "Products"
        ]
      }
    },
    "/api/public/v1/products/{id}/pax-types": {
      "get": {
        "description": "Use these IDs in booking and quote requests. Scope: `products:read`.",
        "operationId": "Products_paxTypes",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicPaxTypeDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List pax types you can book",
        "tags": [
          "Products"
        ]
      }
    },
    "/api/public/v1/products/{id}/media": {
      "get": {
        "description": "Scopes: `products:read` and `media:read`.",
        "operationId": "Products_media",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicProductMediaDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List product images and media",
        "tags": [
          "Products"
        ]
      }
    },
    "/api/public/v1/products/{id}/prices": {
      "get": {
        "description": "The merchant’s published display prices. Computed quotes for a party, date, and options arrive with bookings. Scopes: `products:read` and `pricing:read`.",
        "operationId": "Products_prices",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicPriceDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List published prices in effect now",
        "tags": [
          "Products"
        ]
      }
    },
    "/api/public/v1/products/{id}/availability": {
      "get": {
        "description": "Days and timeslots between `from` and `to`, at most 92 days. Scopes: `products:read` and `availability:read`.",
        "operationId": "Products_availabilityByDay",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "to",
            "required": true,
            "in": "query",
            "schema": {
              "example": "2026-12-31"
            }
          },
          {
            "name": "from",
            "required": true,
            "in": "query",
            "schema": {
              "example": "2026-12-01"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicAvailabilityDayDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get availability by day",
        "tags": [
          "Products"
        ]
      }
    },
    "/api/public/v1/products/{id}/reviews": {
      "get": {
        "description": "Approved, published reviews. Reviewer identity is never included. Scopes: `products:read` and `reviews:read`.",
        "operationId": "Products_productReviews",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "example": "-created_at"
            }
          },
          {
            "name": "filter[min_rating]",
            "required": false,
            "in": "query",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicReviewDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List published reviews of a product",
        "tags": [
          "Products"
        ]
      }
    },
    "/api/public/v1/categories": {
      "get": {
        "description": "Scope: `categories:read`. `image` needs media:read.",
        "operationId": "Categories_list",
        "parameters": [
          {
            "name": "fields",
            "required": false,
            "in": "query",
            "description": "name, slug, short_description, description, parent_id, category_type, icon, image, sort_order, updated_at",
            "schema": {}
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "example": "sort_order"
            }
          },
          {
            "name": "filter[q]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[slug]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[category_type]",
            "required": false,
            "in": "query",
            "schema": {
              "example": "tour"
            }
          },
          {
            "name": "filter[parent_id]",
            "required": false,
            "in": "query",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicCategoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List categories",
        "tags": [
          "Categories"
        ]
      }
    },
    "/api/public/v1/categories/{id}": {
      "get": {
        "description": "Scope: `categories:read`.",
        "operationId": "Categories_findOne",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCategoryDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get a category",
        "tags": [
          "Categories"
        ]
      }
    },
    "/api/public/v1/blogs": {
      "get": {
        "description": "Published posts. List items omit `content` unless you ask for it in `fields`. Scope: `blogs:read`.",
        "operationId": "Blogs_list",
        "parameters": [
          {
            "name": "fields",
            "required": false,
            "in": "query",
            "description": "title, slug, summary, content, category_id, is_featured, image, published_on, updated_at",
            "schema": {}
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "example": "-date"
            }
          },
          {
            "name": "filter[q]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[slug]",
            "required": false,
            "in": "query",
            "schema": {}
          },
          {
            "name": "filter[featured]",
            "required": false,
            "in": "query",
            "schema": {
              "example": "true"
            }
          },
          {
            "name": "filter[category_id]",
            "required": false,
            "in": "query",
            "schema": {}
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicBlogPostDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List blog posts",
        "tags": [
          "Blogs"
        ]
      }
    },
    "/api/public/v1/blogs/{id}": {
      "get": {
        "description": "Scope: `blogs:read`.",
        "operationId": "Blogs_findOne",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBlogPostDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get a blog post",
        "tags": [
          "Blogs"
        ]
      }
    },
    "/api/public/v1/blog-categories": {
      "get": {
        "description": "Published categories with their post counts. Scope: `blogs:read`.",
        "operationId": "Blogs_categories",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicBlogCategoryDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List blog categories",
        "tags": [
          "Blogs"
        ]
      }
    },
    "/api/public/v1/quotes": {
      "post": {
        "description": "Prices items exactly as a booking would, including tax, without booking them. Scope: `bookings:create`.",
        "operationId": "Bookings_quote",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Price a basket",
        "tags": [
          "Bookings"
        ]
      }
    },
    "/api/public/v1/bookings": {
      "post": {
        "description": "Books the items for a new lead guest. `pay_later` confirms the booking with payment due to the merchant. `credit` charges the agent credit account and needs `bookings:pay_with_credit`. Scope: `bookings:create`.",
        "operationId": "Bookings_create",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A unique key per operation, 8 to 255 characters. Retries with the same key and body return the first result.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBookingRequestDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBookingDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Create a booking",
        "tags": [
          "Bookings"
        ]
      },
      "get": {
        "description": "Scope: `bookings:read`.",
        "operationId": "Bookings_list",
        "parameters": [
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "example": "-created_at"
            }
          },
          {
            "name": "filter[created_to]",
            "required": false,
            "in": "query",
            "schema": {
              "example": "2026-12-01"
            }
          },
          {
            "name": "filter[created_from]",
            "required": false,
            "in": "query",
            "schema": {
              "example": "2026-11-01"
            }
          },
          {
            "name": "filter[status]",
            "required": false,
            "in": "query",
            "schema": {
              "example": "confirmed"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicBookingDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List bookings",
        "tags": [
          "Bookings"
        ]
      }
    },
    "/api/public/v1/bookings/{id}": {
      "get": {
        "description": "A booking the app may not see returns 404. Scope: `bookings:read`.",
        "operationId": "Bookings_findOne",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBookingDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get a booking",
        "tags": [
          "Bookings"
        ]
      },
      "patch": {
        "description": "Items and prices cannot be changed through the API. Scope: `bookings:update`.",
        "operationId": "Bookings_update",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBookingRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBookingDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Update special requests",
        "tags": [
          "Bookings"
        ]
      }
    },
    "/api/public/v1/bookings/{id}/cancel": {
      "post": {
        "description": "Cancels a booking the app owns and notifies the guest. Refunds are handled by the merchant. Products that cannot be cancelled online return 409. Scope: `bookings:cancel`.",
        "operationId": "Bookings_cancel",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A unique key per operation, 8 to 255 characters. Retries with the same key and body return the first result.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBookingDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Cancel a booking",
        "tags": [
          "Bookings"
        ]
      }
    },
    "/api/public/v1/bookings/{id}/travellers": {
      "get": {
        "description": "Scope: `travellers:read`.",
        "operationId": "Bookings_travellers",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicItemTravellersDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List travellers by booking item",
        "tags": [
          "Bookings"
        ]
      }
    },
    "/api/public/v1/bookings/{id}/items/{itemId}/travellers": {
      "put": {
        "description": "Replaces every traveller on the item. Scope: `travellers:write`.",
        "operationId": "Bookings_saveTravellers",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "itemId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveTravellersRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicItemTravellersDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Replace the travellers of a booking item",
        "tags": [
          "Bookings"
        ]
      }
    },
    "/api/public/v1/ai/conversations": {
      "post": {
        "description": "Starts a conversation with the AI chatbot. With `message`, the reply is returned in `messages`. `external_user_id` tags it with your own id for the person chatting. Scope: `ai_chat:write`.",
        "operationId": "AiChat_create",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A unique key per message, 8 to 255 characters. A retry with the same key and body returns the first reply instead of asking the AI again.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAiConversationRequestDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAiConversationWithMessagesDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Start a conversation",
        "tags": [
          "AI Chat"
        ]
      },
      "get": {
        "description": "The app's conversations, most recent first. Scope: `ai_chat:read`.",
        "operationId": "AiChat_list",
        "parameters": [
          {
            "name": "filter[status]",
            "required": false,
            "in": "query",
            "schema": {
              "enum": [
                "active",
                "archived"
              ],
              "type": "string"
            }
          },
          {
            "name": "filter[external_user_id]",
            "required": false,
            "in": "query",
            "schema": {
              "example": "customer-8841"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicAiConversationDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "List conversations",
        "tags": [
          "AI Chat"
        ]
      }
    },
    "/api/public/v1/ai/conversations/{id}": {
      "get": {
        "description": "A conversation of another app returns 404. Scope: `ai_chat:read`.",
        "operationId": "AiChat_findOne",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAiConversationDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get a conversation",
        "tags": [
          "AI Chat"
        ]
      }
    },
    "/api/public/v1/ai/conversations/{id}/messages": {
      "get": {
        "description": "The messages of a conversation, oldest first, paginated. Scope: `ai_chat:read`.",
        "operationId": "AiChat_messages",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicAiMessageDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Get conversation history",
        "tags": [
          "AI Chat"
        ]
      },
      "post": {
        "description": "Sends the person's message and returns the chatbot's reply. To answer a specific reply, set `reply_to_response_id`. A reply that could not be answered has status `failed` and a message safe to show. Scope: `ai_chat:write`.",
        "operationId": "AiChat_send",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A unique key per message, 8 to 255 characters. A retry with the same key and body returns the first reply instead of asking the AI again.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendAiMessageRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAiTurnDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Send a message",
        "tags": [
          "AI Chat"
        ]
      }
    },
    "/api/public/v1/ai/responses/{responseId}/replies": {
      "post": {
        "description": "Answers one of the chatbot's replies by its `response_id`, for example when the person picks one of its `options`. The message goes to that reply's conversation, and the next reply is returned. Scope: `ai_chat:write`.",
        "operationId": "AiChat_reply",
        "parameters": [
          {
            "name": "responseId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A unique key per message, 8 to 255 characters. A retry with the same key and body returns the first reply instead of asking the AI again.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplyToAiResponseRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAiTurnDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid, or expired token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "403": {
            "description": "Missing scope or IP not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "public-api-oauth": []
          }
        ],
        "summary": "Reply to a response",
        "tags": [
          "AI Chat"
        ]
      }
    }
  },
  "info": {
    "title": "Agantia Public API",
    "description": "REST API for websites, apps, and integrations built on Agantia.\n\n- Authenticate with OAuth 2.0 client credentials at `/api/public/v1/oauth/token`.\n- Production: `https://api.staging.agantia.com/api/public/v1`. Sandbox: `https://sandbox-api.agantia.com/api/public/v1`.\n- Errors use RFC 9457 problem details (`application/problem+json`).\n- Lists use `page`, `per_page` (max 100), `filter[field]`, `sort`, and `fields`.",
    "version": "1.0.0",
    "contact": {}
  },
  "tags": [],
  "servers": [
    {
      "url": "https://api.staging.agantia.com",
      "description": "Production"
    }
  ],
  "components": {
    "securitySchemes": {
      "public-api-oauth": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/public/v1/oauth/token",
            "scopes": {
              "catalogues:read": "Read catalogues the app can access",
              "categories:read": "Read product categories",
              "products:read": "Read products and product details",
              "availability:read": "Read product availability",
              "pricing:read": "Read published prices",
              "blogs:read": "Read blog posts and categories",
              "media:read": "Read product images and media",
              "reviews:read": "Read published reviews",
              "bookings:create": "Create bookings and price quotes",
              "bookings:read": "Read bookings the app owns",
              "bookings:update": "Update bookings the app owns",
              "bookings:cancel": "Cancel bookings the app owns",
              "bookings:pay_with_credit": "Pay for bookings from the agent credit account",
              "travellers:read": "Read travellers on bookings the app owns",
              "travellers:write": "Add and update travellers on bookings the app owns",
              "ai_chat:read": "Read the app's AI chatbot conversations and their messages",
              "ai_chat:write": "Start AI chatbot conversations and send messages. Uses the merchant's AI credits"
            }
          }
        }
      }
    },
    "schemas": {
      "TokenRequestDto": {
        "type": "object",
        "properties": {
          "grant_type": {
            "type": "string",
            "example": "client_credentials",
            "enum": [
              "client_credentials",
              "authorization_code",
              "refresh_token"
            ],
            "description": "`client_credentials` for app integrations. `authorization_code` (with PKCE) and `refresh_token` are for AI clients connecting to an app over MCP."
          },
          "client_id": {
            "type": "string",
            "example": "live_3kX9...",
            "description": "Or send it with HTTP Basic authentication."
          },
          "client_secret": {
            "type": "string",
            "example": "sk_live_...",
            "description": "Or send it with HTTP Basic authentication."
          },
          "scope": {
            "type": "string",
            "example": "catalogues:read products:read",
            "description": "Space-separated subset of granted scopes. Defaults to all granted scopes."
          },
          "code": {
            "type": "string",
            "description": "authorization_code: the code from the authorization response."
          },
          "redirect_uri": {
            "type": "string",
            "description": "authorization_code: the redirect URI used in the authorization request."
          },
          "code_verifier": {
            "type": "string",
            "description": "authorization_code: the PKCE code verifier."
          },
          "refresh_token": {
            "type": "string",
            "description": "refresh_token: the refresh token. Each one works once."
          },
          "resource": {
            "type": "string",
            "example": "https://mcp.agantia.com/mcp/app_3kX9",
            "description": "RFC 8707 resource: the app's MCP URL. Must match the authorization request."
          }
        },
        "required": [
          "grant_type"
        ]
      },
      "TokenResponseDto": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string"
          },
          "token_type": {
            "type": "string",
            "example": "Bearer"
          },
          "expires_in": {
            "type": "number",
            "example": 600
          },
          "scope": {
            "type": "string",
            "example": "catalogues:read"
          },
          "refresh_token": {
            "type": "string",
            "description": "authorization_code and refresh_token only. Rotates on every use."
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "scope"
        ]
      },
      "OAuthErrorDto": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "example": "invalid_client"
          },
          "error_description": {
            "type": "string",
            "example": "Client authentication failed."
          }
        },
        "required": [
          "error",
          "error_description"
        ]
      },
      "ProblemFieldErrorDto": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "example": "per_page"
          },
          "message": {
            "type": "string",
            "example": "per_page must not be greater than 100"
          }
        },
        "required": [
          "field",
          "message"
        ]
      },
      "ProblemDetailsDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "https://developers.agantia.com/errors/insufficient-scope"
          },
          "title": {
            "type": "string",
            "example": "Insufficient scope"
          },
          "status": {
            "type": "number",
            "example": 403
          },
          "detail": {
            "type": "string",
            "example": "This request needs the scope(s): catalogues:read."
          },
          "instance": {
            "type": "string",
            "example": "/api/public/v1/catalogues"
          },
          "request_id": {
            "type": "string",
            "example": "b6f1c2d0-6a3e-4f43-9a51-1c7f0d0b2f9e"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProblemFieldErrorDto"
            }
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "instance",
          "request_id"
        ]
      },
      "PublicCatalogueDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "example": 12
          },
          "name": {
            "type": "string",
            "example": "Summer 2026"
          },
          "slug": {
            "type": "string",
            "example": "summer-2026"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "example": "Tours and activities for the summer season"
          },
          "is_default": {
            "type": "boolean",
            "example": false
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "example": "AED",
            "description": "ISO 4217 code"
          },
          "valid_from": {
            "type": "string",
            "nullable": true,
            "example": "2026-06-01",
            "format": "date"
          },
          "valid_until": {
            "type": "string",
            "nullable": true,
            "example": "2026-09-30",
            "format": "date"
          },
          "created_at": {
            "type": "string",
            "example": "2026-05-02T08:15:00.000Z",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "example": "2026-05-20T11:40:00.000Z",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "is_default",
          "created_at",
          "updated_at"
        ]
      },
      "ListMetaDto": {
        "type": "object",
        "properties": {
          "page": {
            "type": "number",
            "example": 1
          },
          "per_page": {
            "type": "number",
            "example": 20
          },
          "total": {
            "type": "number",
            "example": 3
          },
          "total_pages": {
            "type": "number",
            "example": 1
          }
        },
        "required": [
          "page",
          "per_page",
          "total",
          "total_pages"
        ]
      },
      "ListLinksDto": {
        "type": "object",
        "properties": {
          "self": {
            "type": "string",
            "example": "/api/public/v1/catalogues?page=1&per_page=20"
          },
          "next": {
            "type": "string"
          },
          "prev": {
            "type": "string"
          }
        },
        "required": [
          "self"
        ]
      },
      "PublicCatalogueListDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicCatalogueDto"
            }
          },
          "meta": {
            "$ref": "#/components/schemas/ListMetaDto"
          },
          "links": {
            "$ref": "#/components/schemas/ListLinksDto"
          }
        },
        "required": [
          "data",
          "meta",
          "links"
        ]
      },
      "PublicCatalogueResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PublicCatalogueDto"
          }
        },
        "required": [
          "data"
        ]
      },
      "PublicMoneyDto": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "string",
            "example": "149.00",
            "description": "Decimal string, never a float"
          },
          "currency": {
            "type": "string",
            "example": "AED",
            "nullable": true,
            "description": "ISO 4217. Null when the merchant has no default currency."
          }
        },
        "required": [
          "amount"
        ]
      },
      "PublicImageDto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "example": "https://api.staging.agantia.com/uploads/products/abc.webp"
          },
          "thumbnail_url": {
            "type": "string",
            "nullable": true
          },
          "alt_text": {
            "type": "string",
            "nullable": true
          },
          "width": {
            "type": "number",
            "nullable": true,
            "example": 1200
          },
          "height": {
            "type": "number",
            "nullable": true,
            "example": 800
          }
        },
        "required": [
          "url"
        ]
      },
      "PublicProductDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "example": 4211
          },
          "title": {
            "type": "string",
            "example": "Desert Safari with BBQ Dinner"
          },
          "slug": {
            "type": "string",
            "example": "desert-safari-bbq"
          },
          "product_code": {
            "type": "string",
            "example": "TR-0042"
          },
          "product_type": {
            "type": "string",
            "example": "tour",
            "enum": [
              "tour",
              "ticket",
              "visa",
              "transportation",
              "hotel",
              "addon",
              "rental",
              "activity",
              "flight",
              "restaurant"
            ]
          },
          "short_description": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "duration_minutes": {
            "type": "number",
            "nullable": true,
            "example": 360
          },
          "from_price": {
            "nullable": true,
            "description": "Needs pricing:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicMoneyDto"
              }
            ]
          },
          "rating": {
            "type": "number",
            "nullable": true,
            "example": 4.6
          },
          "review_count": {
            "type": "number",
            "example": 128
          },
          "main_image": {
            "nullable": true,
            "description": "Needs media:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicImageDto"
              }
            ]
          },
          "is_bookable": {
            "type": "boolean",
            "description": "Online booking is enabled and not closed"
          },
          "is_instant_confirmation": {
            "type": "boolean"
          },
          "is_cancellable": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "title",
          "slug",
          "product_code",
          "product_type",
          "review_count",
          "is_bookable",
          "is_instant_confirmation",
          "is_cancellable",
          "created_at",
          "updated_at"
        ]
      },
      "PublicCategoryRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "slug"
        ]
      },
      "PublicRefDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "PublicItineraryStepDto": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "nullable": true,
            "example": "15:30",
            "description": "HH:MM"
          },
          "title": {
            "type": "string",
            "example": "Hotel pickup"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Plain text"
          },
          "location": {
            "type": "string",
            "nullable": true,
            "example": "Al Khatim Desert"
          }
        },
        "required": [
          "title"
        ]
      },
      "PublicPickupTimeDto": {
        "type": "object",
        "properties": {
          "pickup_time": {
            "type": "string",
            "example": "15:00",
            "description": "HH:MM"
          },
          "tour_start_time": {
            "type": "string",
            "nullable": true,
            "example": "16:00",
            "description": "HH:MM"
          }
        },
        "required": [
          "pickup_time"
        ]
      },
      "PublicPickupLocationDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "Marina Mall"
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true,
            "example": "Hotel"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "example": "Abu Dhabi"
          }
        },
        "required": [
          "title"
        ]
      },
      "PublicPickupDto": {
        "type": "object",
        "properties": {
          "is_available": {
            "type": "boolean",
            "description": "Guests are picked up from their place"
          },
          "is_drop_off_available": {
            "type": "boolean"
          },
          "pickup_times": {
            "description": "Empty when there is no pickup or no fixed time",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPickupTimeDto"
            }
          },
          "tour_start_time": {
            "type": "string",
            "nullable": true,
            "example": "16:00",
            "description": "Daily start, HH:MM"
          },
          "locations": {
            "description": "The merchant's places in the product's cities where guests can be picked up ( at most 50 ). Empty without pickup",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPickupLocationDto"
            }
          }
        },
        "required": [
          "is_available",
          "is_drop_off_available",
          "pickup_times",
          "locations"
        ]
      },
      "PublicMeetingPointDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "Hotel lobby, Marina Mall"
          },
          "address": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "title"
        ]
      },
      "PublicFaqDto": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "nullable": true,
            "example": "Before you go"
          },
          "question": {
            "type": "string",
            "description": "Plain text"
          },
          "answer": {
            "type": "string",
            "description": "Plain text"
          }
        },
        "required": [
          "question",
          "answer"
        ]
      },
      "PublicAddonDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "example": 37
          },
          "name": {
            "type": "string",
            "example": "Quad bike ( 30 minutes )"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Plain text"
          },
          "price": {
            "nullable": true,
            "description": "Price per unit. Needs pricing:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicMoneyDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "PublicProductDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "example": 4211
          },
          "title": {
            "type": "string",
            "example": "Desert Safari with BBQ Dinner"
          },
          "slug": {
            "type": "string",
            "example": "desert-safari-bbq"
          },
          "product_code": {
            "type": "string",
            "example": "TR-0042"
          },
          "product_type": {
            "type": "string",
            "example": "tour",
            "enum": [
              "tour",
              "ticket",
              "visa",
              "transportation",
              "hotel",
              "addon",
              "rental",
              "activity",
              "flight",
              "restaurant"
            ]
          },
          "short_description": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "duration_minutes": {
            "type": "number",
            "nullable": true,
            "example": 360
          },
          "from_price": {
            "nullable": true,
            "description": "Needs pricing:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicMoneyDto"
              }
            ]
          },
          "rating": {
            "type": "number",
            "nullable": true,
            "example": 4.6
          },
          "review_count": {
            "type": "number",
            "example": 128
          },
          "main_image": {
            "nullable": true,
            "description": "Needs media:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicImageDto"
              }
            ]
          },
          "is_bookable": {
            "type": "boolean",
            "description": "Online booking is enabled and not closed"
          },
          "is_instant_confirmation": {
            "type": "boolean"
          },
          "is_cancellable": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicCategoryRefDto"
            }
          },
          "catalogue_ids": {
            "description": "Catalogues the app can access that contain this product",
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "city": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicRefDto"
              }
            ]
          },
          "country": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicRefDto"
              }
            ]
          },
          "itinerary": {
            "description": "The day plan, in order. Empty when there is none",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicItineraryStepDto"
            }
          },
          "inclusions": {
            "description": "What the price includes, plain text",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "exclusions": {
            "description": "What it does not include, plain text",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pickup": {
            "nullable": true,
            "description": "Null for products without pickup settings, such as activities and tickets",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicPickupDto"
              }
            ]
          },
          "meeting_point": {
            "nullable": true,
            "description": "Where guests meet when their own place has no pickup",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicMeetingPointDto"
              }
            ]
          },
          "cancellation_policy": {
            "type": "string",
            "nullable": true,
            "description": "Plain text"
          },
          "languages": {
            "example": [
              "English",
              "Arabic"
            ],
            "description": "Languages the tour is guided in",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "faqs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicFaqDto"
            }
          },
          "addons": {
            "description": "Optional extras that can be added to a booking of this product, in the catalogues the app can access",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicAddonDto"
            }
          }
        },
        "required": [
          "id",
          "title",
          "slug",
          "product_code",
          "product_type",
          "review_count",
          "is_bookable",
          "is_instant_confirmation",
          "is_cancellable",
          "created_at",
          "updated_at",
          "categories",
          "catalogue_ids",
          "itinerary",
          "inclusions",
          "exclusions",
          "languages",
          "faqs",
          "addons"
        ]
      },
      "PublicPaxTypeDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "example": 5
          },
          "name": {
            "type": "string",
            "example": "Adult"
          },
          "code": {
            "type": "string",
            "nullable": true,
            "example": "ADT"
          },
          "min_age": {
            "type": "number",
            "nullable": true,
            "example": 12
          },
          "max_age": {
            "type": "number",
            "nullable": true,
            "example": 59
          },
          "min_quantity": {
            "type": "number",
            "nullable": true
          },
          "max_quantity": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "PublicProductMediaDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "role": {
            "type": "string",
            "example": "gallery"
          },
          "media_type": {
            "type": "string",
            "example": "image"
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "file": {
            "$ref": "#/components/schemas/PublicImageDto"
          },
          "sort_order": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "role",
          "media_type",
          "file",
          "sort_order"
        ]
      },
      "PublicPriceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "price": {
            "$ref": "#/components/schemas/PublicMoneyDto"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time"
          },
          "valid_until": {
            "type": "object",
            "format": "date-time",
            "nullable": true
          }
        },
        "required": [
          "id",
          "price",
          "valid_from"
        ]
      },
      "PublicAvailabilitySlotDto": {
        "type": "object",
        "properties": {
          "start_time": {
            "type": "string",
            "example": "09:00:00"
          },
          "end_time": {
            "type": "string",
            "example": "12:00:00"
          },
          "is_available": {
            "type": "boolean"
          }
        },
        "required": [
          "start_time",
          "end_time",
          "is_available"
        ]
      },
      "PublicAvailabilityDayDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "example": "2026-12-01",
            "format": "date"
          },
          "is_available": {
            "type": "boolean"
          },
          "timeslots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicAvailabilitySlotDto"
            }
          }
        },
        "required": [
          "date",
          "is_available",
          "timeslots"
        ]
      },
      "PublicReviewRatingDto": {
        "type": "object",
        "properties": {
          "parameter": {
            "type": "string",
            "example": "Guide"
          },
          "rating": {
            "type": "number",
            "example": 5
          }
        },
        "required": [
          "parameter",
          "rating"
        ]
      },
      "PublicReviewDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "product_id": {
            "type": "number"
          },
          "rating": {
            "type": "number",
            "example": 5
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "ratings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicReviewRatingDto"
            }
          },
          "image": {
            "nullable": true,
            "description": "Needs media:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicImageDto"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "product_id",
          "rating",
          "ratings",
          "created_at"
        ]
      },
      "PublicCategoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string",
            "example": "Desert adventures"
          },
          "slug": {
            "type": "string",
            "example": "desert-adventures"
          },
          "short_description": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "parent_id": {
            "type": "number",
            "nullable": true
          },
          "category_type": {
            "type": "string",
            "example": "tour"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "image": {
            "nullable": true,
            "description": "Needs media:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicImageDto"
              }
            ]
          },
          "sort_order": {
            "type": "number"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "category_type",
          "sort_order",
          "updated_at"
        ]
      },
      "PublicBlogPostDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true,
            "description": "HTML"
          },
          "category_id": {
            "type": "number",
            "nullable": true
          },
          "is_featured": {
            "type": "boolean"
          },
          "image": {
            "nullable": true,
            "description": "Needs media:read. Otherwise null.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicImageDto"
              }
            ]
          },
          "published_on": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "title",
          "is_featured",
          "updated_at"
        ]
      },
      "PublicBlogCategoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "page_title": {
            "type": "string",
            "nullable": true
          },
          "page_description": {
            "type": "string",
            "nullable": true
          },
          "post_count": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "post_count"
        ]
      },
      "PaxCountDto": {
        "type": "object",
        "properties": {
          "pax_type_id": {
            "type": "number",
            "example": 5,
            "description": "From GET /products/{id}/pax-types"
          },
          "quantity": {
            "type": "number",
            "example": 2
          }
        },
        "required": [
          "pax_type_id",
          "quantity"
        ]
      },
      "PickupDto": {
        "type": "object",
        "properties": {
          "hotel_name": {
            "type": "string",
            "example": "Atlantis The Palm"
          },
          "location_link": {
            "type": "string",
            "example": "https://maps.app.goo.gl/..."
          },
          "room_number": {
            "type": "string",
            "example": "1204"
          }
        },
        "required": [
          "hotel_name"
        ]
      },
      "BookingItemRequestDto": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "number",
            "example": 156
          },
          "date": {
            "type": "string",
            "example": "2026-12-20",
            "format": "date"
          },
          "start_time": {
            "type": "string",
            "example": "09:00"
          },
          "timeslot_id": {
            "type": "number",
            "description": "Timeslot ID from the availability response, when the product uses timeslots"
          },
          "service_mode": {
            "type": "string",
            "enum": [
              "sharing",
              "private"
            ],
            "default": "sharing"
          },
          "pax": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaxCountDto"
            }
          },
          "unit_quantity": {
            "type": "number",
            "description": "Units for rentals and rooms. Default 1."
          },
          "pickup": {
            "$ref": "#/components/schemas/PickupDto"
          },
          "special_requests": {
            "type": "string"
          }
        },
        "required": [
          "product_id",
          "date",
          "pax"
        ]
      },
      "QuoteRequestDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingItemRequestDto"
            }
          }
        },
        "required": [
          "items"
        ]
      },
      "PublicQuoteLineDto": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "number"
          },
          "total": {
            "$ref": "#/components/schemas/PublicMoneyDto"
          }
        },
        "required": [
          "product_id",
          "total"
        ]
      },
      "PublicQuoteDto": {
        "type": "object",
        "properties": {
          "subtotal": {
            "$ref": "#/components/schemas/PublicMoneyDto"
          },
          "discount": {
            "$ref": "#/components/schemas/PublicMoneyDto"
          },
          "tax": {
            "$ref": "#/components/schemas/PublicMoneyDto"
          },
          "tax_name": {
            "type": "string",
            "nullable": true,
            "example": "VAT"
          },
          "total": {
            "$ref": "#/components/schemas/PublicMoneyDto"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicQuoteLineDto"
            }
          }
        },
        "required": [
          "subtotal",
          "discount",
          "tax",
          "total",
          "lines"
        ]
      },
      "PhoneDto": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": "string",
            "example": "+971"
          },
          "number": {
            "type": "string",
            "example": "501234567"
          }
        },
        "required": [
          "number"
        ]
      },
      "LeadGuestDto": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "example": "Aisha"
          },
          "last_name": {
            "type": "string",
            "example": "Khan"
          },
          "email": {
            "type": "string",
            "example": "aisha@example.com"
          },
          "phone": {
            "$ref": "#/components/schemas/PhoneDto"
          }
        },
        "required": [
          "first_name",
          "last_name"
        ]
      },
      "CreateBookingRequestDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookingItemRequestDto"
            }
          },
          "lead_guest": {
            "$ref": "#/components/schemas/LeadGuestDto"
          },
          "payment_method": {
            "type": "string",
            "enum": [
              "pay_later",
              "credit"
            ],
            "default": "pay_later",
            "description": "pay_later: confirmed with payment due to the merchant. credit: agent apps with bookings:pay_with_credit."
          }
        },
        "required": [
          "items",
          "lead_guest"
        ]
      },
      "PublicBookingPaxDto": {
        "type": "object",
        "properties": {
          "pax_type_id": {
            "type": "number"
          },
          "name": {
            "type": "string",
            "example": "Adult"
          },
          "quantity": {
            "type": "number"
          }
        },
        "required": [
          "pax_type_id",
          "name",
          "quantity"
        ]
      },
      "PublicBookingItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "product_id": {
            "type": "number"
          },
          "product_title": {
            "type": "string"
          },
          "date": {
            "type": "object",
            "format": "date"
          },
          "start_time": {
            "type": "string",
            "nullable": true
          },
          "service_mode": {
            "type": "string",
            "nullable": true
          },
          "total": {
            "$ref": "#/components/schemas/PublicMoneyDto"
          },
          "pax": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicBookingPaxDto"
            }
          }
        },
        "required": [
          "id",
          "product_id",
          "product_title",
          "date",
          "total",
          "pax"
        ]
      },
      "PublicBookingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "reference": {
            "type": "string",
            "example": "BK-104233"
          },
          "status": {
            "type": "string",
            "example": "confirmed"
          },
          "total": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicMoneyDto"
              }
            ]
          },
          "total_pax": {
            "type": "number"
          },
          "special_requests": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "items": {
            "description": "Included on a single booking",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicBookingItemDto"
            }
          }
        },
        "required": [
          "id",
          "reference",
          "status",
          "total_pax",
          "created_at"
        ]
      },
      "UpdateBookingRequestDto": {
        "type": "object",
        "properties": {
          "special_requests": {
            "type": "object",
            "nullable": true
          }
        }
      },
      "PublicTravellerDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "is_lead": {
            "type": "boolean"
          },
          "pax_type_id": {
            "type": "number",
            "nullable": true
          },
          "first_name": {
            "type": "string",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "nullable": true
          },
          "age": {
            "type": "number",
            "nullable": true
          },
          "date_of_birth": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "gender": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "nationality_id": {
            "type": "number",
            "nullable": true
          },
          "passport_number": {
            "type": "string",
            "nullable": true
          },
          "passport_expiry_date": {
            "type": "string",
            "nullable": true,
            "format": "date"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "is_lead"
        ]
      },
      "PublicItemTravellersDto": {
        "type": "object",
        "properties": {
          "item_id": {
            "type": "number"
          },
          "product_id": {
            "type": "number"
          },
          "travellers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicTravellerDto"
            }
          }
        },
        "required": [
          "item_id",
          "product_id",
          "travellers"
        ]
      },
      "TravellerRequestDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Your own stable key for this traveller, used to update it later"
          },
          "is_lead": {
            "type": "boolean"
          },
          "pax_type_id": {
            "type": "number",
            "example": 5
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "age": {
            "type": "number"
          },
          "date_of_birth": {
            "type": "string",
            "format": "date"
          },
          "gender": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "nationality_id": {
            "type": "number"
          },
          "passport_number": {
            "type": "string"
          },
          "passport_expiry_date": {
            "type": "string",
            "format": "date"
          },
          "notes": {
            "type": "string"
          },
          "relationship_type_id": {
            "type": "number",
            "description": "Relationship to the lead traveller. Left pending for the merchant when omitted."
          }
        },
        "required": [
          "is_lead",
          "pax_type_id",
          "first_name",
          "last_name"
        ]
      },
      "SaveTravellersRequestDto": {
        "type": "object",
        "properties": {
          "pickup": {
            "description": "Pickup for this item, when it includes transport",
            "allOf": [
              {
                "$ref": "#/components/schemas/PickupDto"
              }
            ]
          },
          "travellers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravellerRequestDto"
            }
          }
        },
        "required": [
          "travellers"
        ]
      },
      "CreateAiConversationRequestDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "Desert safari for 4",
            "maxLength": 200,
            "description": "Taken from the first message when left out."
          },
          "external_user_id": {
            "type": "string",
            "example": "customer-8841",
            "description": "Your own id for the person chatting, such as your customer or user id. Lets you list that person's conversations. Never an Agantia user."
          },
          "message": {
            "type": "string",
            "example": "Which desert safaris are available tomorrow for 4 adults?",
            "maxLength": 4000,
            "description": "A first message. When sent, the reply is returned with the conversation."
          }
        }
      },
      "AiUsageDto": {
        "type": "object",
        "properties": {
          "input_tokens": {
            "type": "number",
            "example": 1840
          },
          "output_tokens": {
            "type": "number",
            "example": 212
          }
        },
        "required": [
          "input_tokens",
          "output_tokens"
        ]
      },
      "PublicAiMessageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "msg_r4Tq0aLm2ZpX9wEe"
          },
          "role": {
            "type": "string",
            "enum": [
              "user",
              "assistant"
            ]
          },
          "content": {
            "type": "string",
            "description": "Markdown text."
          },
          "options": {
            "description": "Short answers the assistant suggests. Show them as buttons; the person may also type another answer.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "response_id": {
            "type": "object",
            "example": "resp_Xb2kQ9mPz1Lw4tRe",
            "nullable": true,
            "description": "Set on assistant replies. Send it as reply_to_response_id, or use POST /ai/responses/{response_id}/replies."
          },
          "reply_to_response_id": {
            "type": "object",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "failed"
            ],
            "description": "A failed reply carries a message that is safe to show."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "role",
          "content",
          "options",
          "response_id",
          "reply_to_response_id",
          "status",
          "created_at"
        ]
      },
      "PublicAiConversationWithMessagesDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "conv_8Jd2kQ9mPz1Lw4tR"
          },
          "title": {
            "type": "object",
            "example": "Desert safari for 4",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "external_user_id": {
            "type": "object",
            "example": "customer-8841",
            "nullable": true
          },
          "usage": {
            "$ref": "#/components/schemas/AiUsageDto"
          },
          "last_message_at": {
            "type": "object",
            "format": "date-time",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicAiMessageDto"
            }
          }
        },
        "required": [
          "id",
          "title",
          "status",
          "external_user_id",
          "usage",
          "last_message_at",
          "created_at",
          "messages"
        ]
      },
      "PublicAiConversationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "conv_8Jd2kQ9mPz1Lw4tR"
          },
          "title": {
            "type": "object",
            "example": "Desert safari for 4",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "external_user_id": {
            "type": "object",
            "example": "customer-8841",
            "nullable": true
          },
          "usage": {
            "$ref": "#/components/schemas/AiUsageDto"
          },
          "last_message_at": {
            "type": "object",
            "format": "date-time",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "title",
          "status",
          "external_user_id",
          "usage",
          "last_message_at",
          "created_at"
        ]
      },
      "SendAiMessageRequestDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "What is the price for 2 adults and 1 child?",
            "maxLength": 4000
          },
          "reply_to_response_id": {
            "type": "string",
            "example": "resp_Xb2kQ9mPz1Lw4tRe",
            "description": "The assistant reply this message answers. Must belong to the same conversation."
          }
        },
        "required": [
          "message"
        ]
      },
      "PublicAiTurnDto": {
        "type": "object",
        "properties": {
          "conversation": {
            "$ref": "#/components/schemas/PublicAiConversationDto"
          },
          "message": {
            "description": "The message you sent, as stored.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAiMessageDto"
              }
            ]
          },
          "reply": {
            "description": "The assistant's reply.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicAiMessageDto"
              }
            ]
          }
        },
        "required": [
          "conversation",
          "message",
          "reply"
        ]
      },
      "ReplyToAiResponseRequestDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "The second option, please.",
            "maxLength": 4000
          }
        },
        "required": [
          "message"
        ]
      }
    }
  }
}
