{"openapi":"3.0.0","paths":{"/is-connected":{"get":{"description":"200 when the API key or OAuth token points at a workspace. The CLI and integrations check the sign-in with it. The answer: `connected`, `workspace.name`, `plan` (name, state, daysLeft, paused, agents, readOnly) and `approvalMode` (APPROVAL, AUTO_APPROVE, SKIP).","operationId":"isConnected","parameters":[],"responses":{"200":{"description":"The key points at a workspace.","content":{"application/json":{"schema":{"type":"object","properties":{"connected":{"type":"boolean","enum":[true]}},"required":["connected"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]}],"summary":"Checks that the key points at a valid workspace.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/properties":{"get":{"description":"The properties of the workspace with id, status, city, currency and number of listings.","operationId":"listProperties","parameters":[{"name":"includeArchived","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"The properties of the workspace.","content":{"application/json":{"schema":{"type":"object","properties":{"properties":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","example":"clxyzproperty1"},"name":{"type":"string"},"status":{"type":"string","example":"ACTIVE"},"city":{"type":"string"},"currency":{"type":"string","example":"EUR"},"timezone":{"type":"string","example":"Europe/Berlin"},"unitCount":{"type":"integer","example":2},"cancellationPolicy":{"type":"string","enum":["FLEXIBLE","MODERATE","FIRM","STRICT","NON_REFUNDABLE"],"example":"FLEXIBLE"}},"required":["id","name"]}}},"required":["properties"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The properties in the workspace, with id, status and currency.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"post":{"description":"Name is required. Timezone, currency and country default by brand. Check-in/out clocks, house-rule flags, `minStayType` (arrival | through | both), `cutOffTime` (HH:mm) and `cutOffDays` are accepted here too. Units are created next with POST /properties/:id/units. Idempotency-Key header recommended.","operationId":"createProperty","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePropertyDto"}}}},"responses":{"200":{"description":"The new property.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["DRAFT","ACTIVE","ARCHIVED"]},"timezone":{"type":"string"},"currency":{"type":"string"},"checkInFrom":{"type":"string","example":"15:00"},"checkOutUntil":{"type":"string","example":"10:00"},"minStayType":{"type":"string","nullable":true},"cutOffTime":{"type":"string","nullable":true},"cutOffDays":{"type":"integer","nullable":true}},"required":["id","name","status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Create a property"}},"/properties/{id}/units":{"get":{"description":"The bookable units (listings) of the given property, with their rate plans.","operationId":"listPropertyUnits","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"The bookable units of one property.","content":{"application/json":{"schema":{"type":"object","properties":{"units":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"propertyId":{"type":"string"},"propertyName":{"type":"string"},"countOfRooms":{"type":"integer","example":1},"ratePlans":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"title":{"type":"string","example":"Alap"},"isDefault":{"type":"boolean"}}}},"listingSettings":{"type":"object","additionalProperties":true,"properties":{"weekendRateMinor":{"type":"integer","nullable":true},"minPriceMinor":{"type":"integer","nullable":true},"guestsIncluded":{"type":"integer"},"extraGuestFeeMinor":{"type":"integer","nullable":true},"cleaningFeeMinor":{"type":"integer","nullable":true},"weeklyDiscountBps":{"type":"integer","nullable":true},"monthlyDiscountBps":{"type":"integer","nullable":true},"leadTimeHours":{"type":"integer"},"maxDaysNotice":{"type":"integer"},"turnoverDays":{"type":"integer"}}}},"required":["id","name"]}}},"required":["units"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The bookable units of one property and their rate plans.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"post":{"description":"A bookable unit with its default rate plan and availability. `baseRateMinor` in minor units. `facilityIds` from GET /amenities. A plan unit limit answers 403 PLAN_UNIT_LIMIT. Idempotency-Key header recommended.","operationId":"createUnit","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUnitDto"}}}},"responses":{"200":{"description":"The new unit.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"countOfRooms":{"type":"integer"},"occAdults":{"type":"integer"},"defaultOccupancy":{"type":"integer"},"facilityIds":{"type":"array","items":{"type":"string"}}},"required":["id","propertyId","name"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Create a unit"}},"/properties/{id}":{"get":{"description":"Address, check-in and check-out, house rules, units and rate plans, and contentChannels: whether each platform takes the content edited here. 404 when the property is not in this workspace.","operationId":"getProperty","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"One property with its units and rate plans.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","example":"clxyzproperty1"},"name":{"type":"string"},"status":{"type":"string","example":"ACTIVE"},"city":{"type":"string"},"currency":{"type":"string","example":"EUR"},"timezone":{"type":"string","example":"Europe/Berlin"},"unitCount":{"type":"integer","example":2},"cancellationPolicy":{"type":"string","enum":["FLEXIBLE","MODERATE","FIRM","STRICT","NON_REFUNDABLE"],"example":"FLEXIBLE"}},"required":["id","name"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One property: address, units, rate plans.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"put":{"description":"Absent fields are left alone. Name, description, address, contact, clocks, `minStayType`, `cutOffTime`, `cutOffDays`, IFA and more. Content changes are pushed to channels that take content. Archiving is refused (403): the host archives in the app. Idempotency-Key header recommended.","operationId":"updateProperty","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePropertyDto"}}}},"responses":{"200":{"description":"The property after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["DRAFT","ACTIVE","ARCHIVED"]},"timezone":{"type":"string"},"currency":{"type":"string"},"checkInFrom":{"type":"string","example":"15:00"},"checkOutUntil":{"type":"string","example":"10:00"},"minStayType":{"type":"string","nullable":true},"cutOffTime":{"type":"string","nullable":true},"cutOffDays":{"type":"integer","nullable":true}},"required":["id","name","status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Update a property"}},"/properties/{id}/cancellation-policy":{"get":{"description":"The property's one policy with its generated text, all five policies to choose from (options) and the state on each platform.","operationId":"getCancellationPolicy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"The property's cancellation policy (kind, generated text, booking website override) and its state on each platform.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"kind":{"type":"string","enum":["FLEXIBLE","MODERATE","FIRM","STRICT","NON_REFUNDABLE"],"example":"MODERATE"},"text":{"type":"string","description":"Hungarian description generated from kind."},"override":{"type":"string","description":"Website free-text override. Empty means guests see `text`."},"channels":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelCode":{"type":"string","example":"AIRBNB"},"channelName":{"type":"string","example":"Airbnb"},"status":{"type":"string","enum":["synced","pending","error","manual","unsupported"]},"syncedAt":{"type":"string","format":"date-time","nullable":true},"error":{"type":"string","nullable":true},"externalSettingsUrl":{"type":"string","nullable":true,"example":"https://admin.booking.com/"}},"required":["connectionId","channelCode","status"]}}},"required":["kind","text","channels"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Cancellation policy, generated text, state on each platform.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"put":{"description":"One policy for the property: the booking website, the guest e-mails and every platform that can take it (Airbnb). On Booking.com it is set in the Booking.com extranet. Idempotency-Key header recommended.","operationId":"setCancellationPolicy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCancellationPolicyDto"}}}},"responses":{"200":{"description":"The property's cancellation policy and its state on each platform (synced / pending / error / manual / unsupported).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"kind":{"type":"string","enum":["FLEXIBLE","MODERATE","FIRM","STRICT","NON_REFUNDABLE"],"example":"MODERATE"},"text":{"type":"string","description":"Hungarian description generated from kind."},"override":{"type":"string","description":"Website free-text override. Empty means guests see `text`."},"channels":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelCode":{"type":"string","example":"AIRBNB"},"channelName":{"type":"string","example":"Airbnb"},"status":{"type":"string","enum":["synced","pending","error","manual","unsupported"]},"syncedAt":{"type":"string","format":"date-time","nullable":true},"error":{"type":"string","nullable":true},"externalSettingsUrl":{"type":"string","nullable":true,"example":"https://admin.booking.com/"}},"required":["connectionId","channelCode","status"]}}},"required":["kind","text","channels"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Sets the cancellation policy. Pushed to Airbnb.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/properties/{id}/content-status":{"get":{"description":"Whether each platform takes the title, description, photos and amenities edited here. mode: push, verify, manual or n/a. An Airbnb listing's content is edited on Airbnb.","operationId":"getContentStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"Per platform: whether it takes the property's content (title, description, photos, amenities) and where it is set by hand.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelCode":{"type":"string","example":"AIRBNB"},"channelName":{"type":"string","example":"Airbnb"},"status":{"type":"string","enum":["synced","pending","error","manual","unsupported"]},"syncedAt":{"type":"string","nullable":true,"format":"date-time"},"error":{"type":"string","nullable":true},"externalSettingsUrl":{"type":"string","nullable":true},"mode":{"type":"string","enum":["push","read","manual","verify","n/a"]}},"required":["connectionId","channelCode","channelName","status"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Whether each platform takes the title, description and photos edited here.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/properties/{id}/booking-settings":{"get":{"description":"Instant booking, check-in window, check-out. State on each platform: synced, pending, error, manual, unsupported.","operationId":"getBookingSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"Booking rules: instant booking, check-in and check-out window, house rules, state on each platform.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"propertyId":{"type":"string"},"instantBook":{"type":"boolean"},"checkInFrom":{"type":"string","nullable":true,"example":"15:00"},"checkInUntil":{"type":"string","nullable":true,"example":"20:00"},"checkOutUntil":{"type":"string","nullable":true,"example":"10:00"},"allowsChildren":{"type":"boolean"},"allowsInfants":{"type":"boolean"},"allowsPets":{"type":"boolean"},"allowsSmoking":{"type":"boolean"},"allowsEvents":{"type":"boolean"},"quietHoursFrom":{"type":"string","nullable":true,"example":"22:00"},"quietHoursUntil":{"type":"string","nullable":true,"example":"07:00"},"maxGuests":{"type":"integer","nullable":true},"houseRulesText":{"type":"string","description":"Hungarian house-rules sentence shown to guests."},"channels":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelCode":{"type":"string","example":"AIRBNB"},"channelName":{"type":"string","example":"Airbnb"},"status":{"type":"string","enum":["synced","pending","error","manual","unsupported"]},"syncedAt":{"type":"string","nullable":true,"format":"date-time"},"error":{"type":"string","nullable":true},"externalSettingsUrl":{"type":"string","nullable":true}},"required":["connectionId","channelCode","channelName","status"]}}},"required":["propertyId","instantBook","channels"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Instant booking, check-in window, house rules.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"put":{"operationId":"setBookingSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBookingSettingsDto"}}}},"responses":{"200":{"description":"Booking rules after saving, with the state on each platform (synced / pending / error / manual / unsupported).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"propertyId":{"type":"string"},"instantBook":{"type":"boolean"},"checkInFrom":{"type":"string","nullable":true,"example":"15:00"},"checkInUntil":{"type":"string","nullable":true,"example":"20:00"},"checkOutUntil":{"type":"string","nullable":true,"example":"10:00"},"allowsChildren":{"type":"boolean"},"allowsInfants":{"type":"boolean"},"allowsPets":{"type":"boolean"},"allowsSmoking":{"type":"boolean"},"allowsEvents":{"type":"boolean"},"quietHoursFrom":{"type":"string","nullable":true,"example":"22:00"},"quietHoursUntil":{"type":"string","nullable":true,"example":"07:00"},"maxGuests":{"type":"integer","nullable":true},"houseRulesText":{"type":"string","description":"Hungarian house-rules sentence shown to guests."},"channels":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelCode":{"type":"string","example":"AIRBNB"},"channelName":{"type":"string","example":"Airbnb"},"status":{"type":"string","enum":["synced","pending","error","manual","unsupported"]},"syncedAt":{"type":"string","nullable":true,"format":"date-time"},"error":{"type":"string","nullable":true},"externalSettingsUrl":{"type":"string","nullable":true}},"required":["connectionId","channelCode","channelName","status"]}}},"required":["propertyId","instantBook","channels"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Booking rules. Pushed to Airbnb.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/units":{"get":{"description":"Every unit (listing) in the workspace, or those of one property by `propertyId`. Every row carries its propertyId and rate plans.","operationId":"listUnits","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Bookable units with propertyId and rate plans.","content":{"application/json":{"schema":{"type":"object","properties":{"units":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"propertyId":{"type":"string"},"propertyName":{"type":"string"},"countOfRooms":{"type":"integer","example":1},"ratePlans":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"title":{"type":"string","example":"Alap"},"isDefault":{"type":"boolean"}}}},"listingSettings":{"type":"object","additionalProperties":true,"properties":{"weekendRateMinor":{"type":"integer","nullable":true},"minPriceMinor":{"type":"integer","nullable":true},"guestsIncluded":{"type":"integer"},"extraGuestFeeMinor":{"type":"integer","nullable":true},"cleaningFeeMinor":{"type":"integer","nullable":true},"weeklyDiscountBps":{"type":"integer","nullable":true},"monthlyDiscountBps":{"type":"integer","nullable":true},"leadTimeHours":{"type":"integer"},"maxDaysNotice":{"type":"integer"},"turnoverDays":{"type":"integer"}}}},"required":["id","name"]}}},"required":["units"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Bookable units, optionally filtered to one property.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/units/{id}/listing-settings":{"get":{"description":"Weekend price, extra guests, cleaning fee, long-stay discounts, advance notice, how far ahead guests can book, turnover days, check-in and check-out days. State on each platform: synced, pending, error, manual, unsupported.","operationId":"getListingSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"The unit's canonical listing settings and their state on each platform.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"weekendRateMinor":{"type":"integer","nullable":true,"example":4500000},"minPriceMinor":{"type":"integer","nullable":true,"example":7000,"description":"The lowest nightly price the host accepts. Bounds price suggestions only."},"guestsIncluded":{"type":"integer","example":2},"extraGuestFeeMinor":{"type":"integer","nullable":true,"example":500000},"cleaningFeeMinor":{"type":"integer","nullable":true,"example":1500000},"weeklyDiscountBps":{"type":"integer","nullable":true,"example":1000},"monthlyDiscountBps":{"type":"integer","nullable":true},"leadTimeHours":{"type":"integer","example":24},"bookingLeadDays":{"type":"integer","example":1},"maxDaysNotice":{"type":"integer","example":365},"turnoverDays":{"type":"integer","example":1},"defaultMinNights":{"type":"integer","nullable":true,"example":2},"defaultMaxNights":{"type":"integer","nullable":true},"checkInWeekdays":{"type":"array","items":{"type":"boolean"},"example":[false,true,true,true,true,true,true]},"checkOutWeekdays":{"type":"array","items":{"type":"boolean"}},"channels":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelCode":{"type":"string","example":"AIRBNB"},"channelName":{"type":"string","example":"Airbnb"},"status":{"type":"string","enum":["synced","pending","error","manual","unsupported"]},"syncedAt":{"type":"string","format":"date-time","nullable":true},"error":{"type":"string","nullable":true},"externalSettingsUrl":{"type":"string","nullable":true,"example":"https://admin.booking.com/"}},"required":["connectionId","channelCode","status"]}}},"required":["unitId","guestsIncluded","leadTimeHours","channels"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Weekend price, extra guests, cleaning, discounts, advance booking.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"put":{"operationId":"setListingSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateListingSettingsDto"}}}},"responses":{"200":{"description":"The unit's canonical listing settings and their state on each platform (synced / pending / error / manual / unsupported).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"weekendRateMinor":{"type":"integer","nullable":true,"example":4500000},"minPriceMinor":{"type":"integer","nullable":true,"example":7000,"description":"The lowest nightly price the host accepts. Bounds price suggestions only."},"guestsIncluded":{"type":"integer","example":2},"extraGuestFeeMinor":{"type":"integer","nullable":true,"example":500000},"cleaningFeeMinor":{"type":"integer","nullable":true,"example":1500000},"weeklyDiscountBps":{"type":"integer","nullable":true,"example":1000},"monthlyDiscountBps":{"type":"integer","nullable":true},"leadTimeHours":{"type":"integer","example":24},"bookingLeadDays":{"type":"integer","example":1},"maxDaysNotice":{"type":"integer","example":365},"turnoverDays":{"type":"integer","example":1},"defaultMinNights":{"type":"integer","nullable":true,"example":2},"defaultMaxNights":{"type":"integer","nullable":true},"checkInWeekdays":{"type":"array","items":{"type":"boolean"},"example":[false,true,true,true,true,true,true]},"checkOutWeekdays":{"type":"array","items":{"type":"boolean"}},"channels":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelCode":{"type":"string","example":"AIRBNB"},"channelName":{"type":"string","example":"Airbnb"},"status":{"type":"string","enum":["synced","pending","error","manual","unsupported"]},"syncedAt":{"type":"string","format":"date-time","nullable":true},"error":{"type":"string","nullable":true},"externalSettingsUrl":{"type":"string","nullable":true,"example":"https://admin.booking.com/"}},"required":["connectionId","channelCode","status"]}}},"required":["unitId","guestsIncluded","leadTimeHours","channels"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Listing settings. Pushed to Airbnb.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/calendar":{"get":{"description":"`from` and `to` inclusive, YYYY-MM-DD. Optional `propertyId` and `unitId`. Each unit's `nights` array carries sellable, reserved, ownerBlocked and maintenanceBlocked.","operationId":"getCalendar","parameters":[{"name":"from","required":true,"in":"query","description":"Inclusive, YYYY-MM-DD.","schema":{"example":"2026-09-12","type":"string"}},{"name":"to","required":true,"in":"query","description":"Inclusive, YYYY-MM-DD.","schema":{"example":"2026-09-15","type":"string"}},{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"unitId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Calendar: nights per unit (sellable, reserved, ownerBlocked, maintenanceBlocked), plus reservations and blocks.","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","example":"2026-09-01"},"to":{"type":"string","example":"2026-09-14"},"units":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"nights":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"date":{"type":"string","example":"2026-09-12"},"physical":{"type":"integer"},"reserved":{"type":"integer"},"ownerBlocked":{"type":"integer"},"maintenanceBlocked":{"type":"integer"},"sellable":{"type":"integer"}}}}}}},"reservations":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}},"blocks":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Calendar by from/to: sellable, booked and blocked nights per unit.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations":{"get":{"description":"Filters: from, to (overlap, not only arrival), status, source, propertyId, unitId, search. Each row includes the guest, the unit and the property.","operationId":"listReservations","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["INQUIRY","PROVISIONAL","CONFIRMED","CANCELLED","CHECKED_IN","CHECKED_OUT","NO_SHOW"]}},{"name":"source","required":false,"in":"query","schema":{"type":"string","enum":["DIRECT","MANUAL","BOOKING_COM","AIRBNB","SZALLAS_HU","EXPEDIA","AGODA","VRBO","TRIP_COM","GOOGLE_VACATION_RENTALS","HOSTELWORLD","DESPEGAR","HOPPER","HOPPER_HOMES","OTHER"]}},{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"unitId","required":false,"in":"query","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","schema":{"example":"2026-09-01","type":"string"}},{"name":"to","required":false,"in":"query","schema":{"example":"2026-09-30","type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"take","required":false,"in":"query","schema":{"minimum":1,"maximum":200,"type":"number"}},{"name":"isOverbooking","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"hideCancelled","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Bookings overlapping the period. Each row includes the guest, unit and property.","content":{"application/json":{"schema":{"type":"object","properties":{"reservations":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"required":["reservations"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Bookings by period, status, unit or guest name.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"post":{"description":"Source MANUAL or DIRECT only. Bookings from a connected platform never need typing in. Idempotency-Key header recommended.","operationId":"createReservation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReservationDto"}}}},"responses":{"201":{"description":"The manual or direct booking that was created.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Records a manual or direct booking. Bookings from your booking site never need typing in.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}":{"get":{"description":"Dates, guest, guest count, amounts, payment state, platform commission (otaCommissionMinor), net payout, guarantee (guaranteeKind, masked virtual card), guest check-in progress (completed/total). 404 when the booking is not in this workspace.","operationId":"getReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"The details of one booking.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One booking: dates, guest, amounts, payment.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"put":{"description":"adults, children, infants, rooms, unitId, ratePlanId, guestComment, internalNotes. Dates change through the `/dates` route; amounts and payment cannot change here. Idempotency-Key header recommended.","operationId":"updateReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateReservationDto"}}}},"responses":{"200":{"description":"The booking after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Changes a booking: guests, listing, rate plan, notes.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/payments":{"get":{"description":"Direct / Stripe Connect payments on the booking: status, amount in the currency's minor unit, currency. Not platform commission.","operationId":"listReservationPayments","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"Direct / Stripe payments on a booking. Amounts in minor units.","content":{"application/json":{"schema":{"type":"object","properties":{"reservationId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"paymentStatus":{"type":"string"},"paidAmountMinor":{"type":"integer"},"payments":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"SUCCEEDED"},"amountMinor":{"type":"integer"},"currency":{"type":"string","example":"EUR"},"refundedAmountMinor":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","status","amountMinor","currency"]}}},"required":["reservationId","payments"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Card payments on a booking (direct, Stripe): status, amount, currency. Not platform commission.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"post":{"description":"Money the host received: amountMinor (in the booking currency's minor unit, > 0), method (KESZPENZ cash by default, BANKKARTYA card, SZEP_KARTYA, ATUTALAS transfer …), paidAt (YYYY-MM-DD), note. 409 for a booking the platform collects. Idempotency-Key header strongly recommended: two identical calls record two payments.","operationId":"recordReservationPayment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPaymentDto"}}}},"responses":{"201":{"description":"The booking with the payment recorded (paidAmountMinor, paymentStatus).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Records a payment the host took themselves (cash, transfer).","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/refund-suggestion":{"get":{"description":"How much the guest would get back if the booking were cancelled now, by the property’s cancellation policy, out of what they paid online by card. A suggestion only: nothing is refunded. To propose a refund, call POST /reservations/:id/refund (APPROVAL_REQUIRED). 404 when the booking is not in this workspace.","operationId":"getReservationRefundSuggestion","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"The refund the cancellation policy suggests if the booking were cancelled now. Amounts in minor units; nothing is refunded.","content":{"application/json":{"schema":{"type":"object","properties":{"reservationId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"policy":{"type":"string","enum":["FLEXIBLE","MODERATE","FIRM","STRICT","NON_REFUNDABLE"]},"policyLabel":{"type":"string","example":"Moderate"},"paidOnlineMinor":{"type":"integer","description":"Paid online (by card), less what was already refunded."},"refundMinor":{"type":"integer","description":"Suggested refund."},"keepMinor":{"type":"integer","description":"What the host keeps."},"rule":{"type":"string","enum":["full","half","none","nights_kept","nothing_paid"]},"reason":{"type":"string","description":"The policy in one English sentence."},"automatic":{"type":"boolean","enum":[false]},"note":{"type":"string"}},"required":["reservationId","currency","policy","paidOnlineMinor","refundMinor","keepMinor","rule"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The refund the cancellation policy suggests if the booking were cancelled now.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/cancel":{"post":{"description":"The API never cancels a booking: APPROVAL_REQUIRED, a preview (guest, unit, dates, nights that go back on sale) and approvalUrl, where the host cancels it on the booking. Optional `reason`.","operationId":"cancelReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelReservationDto"}}}},"responses":{"200":{"description":"Always APPROVAL_REQUIRED: the API never cancels a booking; the host cancels it at approvalUrl.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["RESERVATION_CANCEL","PAYMENT_REFUND","CONNECTION_PAUSE","CONNECTION_ACTIVATE","CONNECTION_GO_LIVE","CONNECTION_REMAP"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalPath":{"type":"string","example":"/app/bookings/res_123"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/bookings/res_123"},"instruction":{"type":"string"}},"required":["status","applied","action","summary","preview","approvalPath","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Cancels a booking; the nights go back on sale.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/dates":{"put":{"description":"`arrivalDate` and `departureDate` (departure exclusive). Optional `unitId` and `rooms`. 409 CHANNEL_MANAGED for a booking from a connected platform. Idempotency-Key header recommended.","operationId":"moveReservationDates","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveReservationDto"}}}},"responses":{"200":{"description":"The booking with its new dates.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Moves the dates (and optionally the unit) of a booking.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/confirm":{"post":{"description":"PROVISIONAL → CONFIRMED. Does nothing for a booking that is already confirmed.","operationId":"confirmReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"The confirmed booking.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Confirms a booking that was on hold.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/hold":{"post":{"description":"INQUIRY → PROVISIONAL until `holdExpiresAt` (ISO 8601); the nights cannot be sold until then. Extends an existing hold.","operationId":"holdReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoldReservationDto"}}}},"responses":{"200":{"description":"The booking on hold (PROVISIONAL), with its expiry.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Puts an inquiry on hold: the nights are kept for it.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/check-in":{"post":{"description":"Optional `occurredAt` (ISO 8601, not in the future, not before arrival). Statutory guest reporting uses this time.","operationId":"checkInReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInDto"}}}},"responses":{"200":{"description":"The booking, checked in.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Marks the guest as arrived.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/check-out":{"post":{"description":"Optional `occurredAt` (ISO 8601), as for check-in.","operationId":"checkOutReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckOutDto"}}}},"responses":{"200":{"description":"The booking, checked out.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Marks the guest as departed.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/no-show":{"post":{"description":"Puts the nights back on sale. Where the platform accepts it, the no-show report is queued; `channelCancel` says what happens on the platform. `waiveFees` (Booking.com): true = the no-show fee is waived, false = it is kept, missing = the platform setting (`GET /connections/:id/platform-wide`).","operationId":"noShowReservation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoShowReportDto"}}}},"responses":{"200":{"description":"The booking as a no-show, and channelCancel: what happens on the platform.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"CONFIRMED"},"source":{"type":"string","example":"MANUAL"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"bookedOn":{"type":"string","nullable":true,"example":"2026-08-20","description":"The day the guest booked, as a calendar date in the property's time zone: the platform's own time for a platform booking, the moment it was made for a website booking or one the host added. null when it is not known (an older platform booking imported with the connection)."},"unitId":{"type":"string"},"propertyId":{"type":"string"},"totalAmountMinor":{"type":"integer","example":12600000},"currency":{"type":"string","example":"EUR"},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"example":"anna@example.com"}}},"unit":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"property":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"channelCancel":{"type":"object","nullable":true,"additionalProperties":true}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Marks a booking as a no-show; the nights go back on sale.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/refund":{"post":{"description":"The API never pays money back: APPROVAL_REQUIRED, a preview (refundable amount) and approvalUrl for the booking. Optional amountMinor (default: everything refundable) and note.","operationId":"proposeReservationRefund","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicRefundDto"}}}},"responses":{"200":{"description":"Always APPROVAL_REQUIRED: only the host starts a refund, on the booking.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["RESERVATION_CANCEL","PAYMENT_REFUND","CONNECTION_PAUSE","CONNECTION_ACTIVATE","CONNECTION_GO_LIVE","CONNECTION_REMAP"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalPath":{"type":"string","example":"/app/bookings/res_123"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/bookings/res_123"},"instruction":{"type":"string"}},"required":["status","applied","action","summary","preview","approvalPath","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Proposes a refund. The host approves it in the app; nothing is paid back before that.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/guests":{"get":{"description":"`search` (last name, first name or e-mail), paging. Personal data: fetch only what you need.","operationId":"listGuests","parameters":[],"responses":{"200":{"description":"Guests, with cursor paging.","content":{"application/json":{"schema":{"type":"object","properties":{"guests":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"countryCode":{"type":"string","nullable":true,"example":"HU"},"languageCode":{"type":"string","nullable":true,"example":"hu"}},"required":["id"]}},"cursor":{"type":"string","nullable":true}},"required":["guests"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Searches guests by name, e-mail or phone.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/guests/{id}":{"get":{"description":"Contact details, language, country, bookings. 404 when the guest is not in this workspace.","operationId":"getGuest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"One guest.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"countryCode":{"type":"string","nullable":true,"example":"HU"},"languageCode":{"type":"string","nullable":true,"example":"hu"}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One guest with their bookings.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"put":{"description":"firstName, lastName, email, phone, countryCode (e.g. HU), languageCode (e.g. hu), address, notes (for the team only), marketingConsent. Idempotency-Key header recommended.","operationId":"updateGuest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGuestDto"}}}},"responses":{"200":{"description":"The guest after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"firstName":{"type":"string","nullable":true,"example":"Anna"},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"countryCode":{"type":"string","nullable":true,"example":"HU"},"languageCode":{"type":"string","nullable":true,"example":"hu"}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Changes a guest’s contact details and notes.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/audit":{"get":{"description":"`entityType` (e.g. Reservation, Unit, ChannelConnection) and `entityId` required, `take` at most 200. Who, when, from which surface (WEB, API, MCP …), before and after.","operationId":"getAuditHistory","parameters":[],"responses":{"200":{"description":"The object's history, newest first.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"action":{"type":"string","example":"RESERVATION_CANCEL"},"entityType":{"type":"string","example":"Reservation"},"entityId":{"type":"string"},"originInterface":{"type":"string","nullable":true,"example":"API"},"userId":{"type":"string","nullable":true},"occurredAt":{"type":"string","format":"date-time"},"previousValue":{"nullable":true},"newValue":{"nullable":true}},"required":["id","action","entityType","entityId","occurredAt"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The history of one object: who changed what, and when (`entityType`, `entityId`).","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/rates":{"get":{"description":"`from` and `to` inclusive. Optional propertyId, unitId, ratePlanId. Per rate plan the nightly rateMinor and the stay rules.","operationId":"getRates","parameters":[{"name":"from","required":true,"in":"query","description":"Inclusive, YYYY-MM-DD.","schema":{"example":"2026-09-12","type":"string"}},{"name":"to","required":true,"in":"query","description":"Inclusive, YYYY-MM-DD.","schema":{"example":"2026-09-15","type":"string"}},{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"unitId","required":false,"in":"query","schema":{"type":"string"}},{"name":"ratePlanId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Nightly prices and stay rules per rate plan.","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"ratePlans":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"ratePlanId":{"type":"string"},"title":{"type":"string","example":"Alap"},"unitId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"nights":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"date":{"type":"string","example":"2026-09-12"},"rateMinor":{"type":"integer","example":4200000},"minStay":{"type":"integer","nullable":true}}}}}}}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Nightly prices and stay rules per rate plan.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"put":{"description":"Flat body: ratePlanId or unitId, from, to (inclusive), priceMinor or rateMinor, optional minStay and other stay rules. `null` clears a rule. Idempotency-Key header recommended.","operationId":"setRates","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkRatesDto"}}}},"responses":{"200":{"description":"The number of nights written and the rate plan.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Sets the price and stay rules for a period, with a flat body.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/blocks":{"post":{"description":"`unitId`, `firstNight`, `lastNight` (inclusive), `kind` OWNER or MAINTENANCE, optional reason. Idempotency-Key header recommended.","operationId":"createBlock","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBlockDto"}}}},"responses":{"201":{"description":"The block that was created.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"unitId":{"type":"string"},"kind":{"type":"string","example":"OWNER"},"firstNight":{"type":"string","example":"2026-09-12"},"lastNight":{"type":"string","example":"2026-09-14"}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Takes nights off sale (owner use or maintenance).","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}},"delete":{"description":"`unitId`, `from`, `to` (inclusive). A block inside the period is removed, one overlapping an edge is trimmed, one spanning the period is split in two. Idempotency-Key header recommended.","operationId":"deleteBlocks","parameters":[{"name":"unitId","required":true,"in":"query","schema":{"type":"string"}},{"name":"from","required":true,"in":"query","description":"Inclusive, YYYY-MM-DD.","schema":{"example":"2026-09-12","type":"string"}},{"name":"to","required":true,"in":"query","description":"Inclusive, YYYY-MM-DD.","schema":{"example":"2026-09-14","type":"string"}}],"responses":{"200":{"description":"The released blocks. action: removed, shrunk or split.","content":{"application/json":{"schema":{"type":"object","properties":{"unitId":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"released":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Releases a block by unitId, from and to.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/connections":{"get":{"description":"Platform connections with status, last sync and last error. Optional propertyId. The platform name is a generic field.","operationId":"listConnections","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Platform connections: state, last sync, last error.","content":{"application/json":{"schema":{"type":"object","properties":{"connections":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"channel":{"type":"string","example":"BOOKING_COM"},"title":{"type":"string","example":"Booking.com"},"status":{"type":"string","example":"CONNECTED"},"propertyId":{"type":"string"},"propertyName":{"type":"string"},"lastSyncedAt":{"type":"string","format":"date-time","nullable":true},"lastError":{"type":"string","nullable":true}},"required":["id","channel","status"]}}},"required":["connections"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Platform connection health, last sync and last error.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reports/summary":{"get":{"description":"`from` and `to` inclusive, optional propertyId. revenueMinor, occupancyPct, adrMinor, byChannel (revenue, commission, net, commissionSource). Amounts in the currency's minor unit (HUF: 1 Ft = 100, JPY: 1 yen = 1, KWD: 1 dinar = 1000).","operationId":"getReportsSummary","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}}],"responses":{"200":{"description":"Revenue, occupancy, ADR. Amounts in minor units. byChannel per source.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"currency":{"type":"string","example":"EUR"},"from":{"type":"string","example":"2026-08-01"},"to":{"type":"string","example":"2026-08-31"},"scope":{"type":"object","additionalProperties":true,"description":"What the figures cover: one listing (`unitId` was passed), one property (`propertyId`), or every property of the workspace in `currency`.","properties":{"kind":{"type":"string","enum":["listing","property","workspace"]},"unitId":{"type":"string"},"propertyId":{"type":"string"}}},"revenueMinor":{"type":"integer","example":85000000,"description":"Includes cleaning and other fees and extras; `feesMinor` is that part."},"feesMinor":{"type":"integer","example":6000000,"description":"The part of `revenueMinor` that is not the nightly price: cleaning and other fees inside booking totals, and extras charged on top."},"avgNightlyPriceMinor":{"type":"integer","description":"(revenue − fees) ÷ booked nights: what a sold night cost, comparable with calendar prices."},"occupancyPct":{"type":"number","example":72.5},"adrMinor":{"type":"integer","description":"Revenue ÷ booked nights, fees included."},"byChannel":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"source":{"type":"string","example":"DIRECT"},"revenueMinor":{"type":"integer"}}}},"byNationality":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Every guest's nationality from online check-in; bookings without check-in count under the booker's country. Rows like `byCountry`."},"received":{"type":"object","additionalProperties":true,"description":"Money received in the period by the date it arrived (cash basis): `totalMinor`, `count`, `byMonth`, `byKind` (STRIPE, PLATFORM, MANUAL, GUEST_PAYMENT = cash or transfer recorded on a booking), `money` per currency."},"ifa":{"type":"object","additionalProperties":true,"description":"Tourist tax: `rateMinor` (per guest night) or `percentBps` (of the room price), `guestNights` (taxable), `exemptGuestNights` and `exempt` by reason (`age`, `nightCap`, `im1`..`im10`), `baseMinor`, `amountMinor`, `checkIn` (bookings counted from online check-in), `byMonth`."}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Revenue, occupancy and ADR for a period, per platform.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reports/export.csv":{"get":{"description":"The same as the app's export: CSV text (BOM, semicolons) and a file name, in JSON. Needs the Complete plan (403 PLAN_REQUIRED).","operationId":"exportReportsCsv","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}}],"responses":{"200":{"description":"The revenue report as CSV (BOM, semicolons) and the file name.","content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","description":"CSV with a UTF-8 BOM."},"filename":{"type":"string","example":"jelentes-2026-08-01-2026-08-31.csv"}},"required":["csv","filename"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The revenue report as a CSV file. Part of the Complete plan.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/messages":{"get":{"description":"Optional reservationId (or bookingId), propertyId. Every thread carries the guest, the booking id and the time of the last message.","operationId":"listMessageThreads","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"reservationId","required":false,"in":"query","schema":{"type":"string"}},{"name":"bookingId","required":false,"in":"query","description":"Alias of reservationId.","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"take","required":false,"in":"query","schema":{"minimum":1,"maximum":200,"type":"number"}}],"responses":{"200":{"description":"Guest message threads.","content":{"application/json":{"schema":{"type":"object","properties":{"threads":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"OPEN"},"reservationId":{"type":"string","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","example":"Anna"},"lastName":{"type":"string"}}}},"required":["id"]}},"cursor":{"type":"string","nullable":true}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Guest message threads, optionally filtered to one booking.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/messages/{id}":{"get":{"description":"The thread and its messages in time order. 404 when the thread is not in this workspace.","operationId":"getMessageThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"responses":{"200":{"description":"One thread with its messages.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"OPEN"},"reservationId":{"type":"string","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","example":"Anna"},"lastName":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The messages of one conversation, in order.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/reservations/{id}/messages":{"post":{"description":"Opens (or finds) the conversation and sends the text. Idempotency-Key header recommended.","operationId":"sendReservationMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Object id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSendMessageDto"}}}},"responses":{"201":{"description":"The conversation with the message sent.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"OPEN"},"reservationId":{"type":"string","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","example":"Anna"},"lastName":{"type":"string"}}}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Sends a message to the booking's guest, opening the conversation if needed.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/onboarding/import-link":{"post":{"operationId":"importOnboardingLink","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportLinkDto"}}}},"responses":{"200":{"description":"The imported listing's fields, or { source, blocked: true } when the platform refused.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"source":{"type":"string","enum":["airbnb","booking","szallas","website"]},"blocked":{"type":"boolean"},"name":{"type":"string"},"description":{"type":"string"},"photos":{"type":"array","items":{"type":"string"}},"city":{"type":"string"},"address":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"amenities":{"type":"array","items":{"type":"string"}},"canonicalUrl":{"type":"string"}},"required":["source"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true},"summary":"Imports a listing from Airbnb, Booking.com, Szállás.hu or your own site. Allowlisted, limited to 5 per 10 minutes."}},"/onboarding/apply-import":{"post":{"description":"Writes the chosen fields to the propertyId. Fields already filled stay unless overwrite=true. Photos go through the hashed photo pipeline. Idempotency-Key header recommended.","operationId":"applyOnboardingImport","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyImportDto"}}}},"responses":{"200":{"description":"The property with the imported fields and the uploaded photos.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","example":"clxyzproperty1"},"name":{"type":"string"},"status":{"type":"string","example":"ACTIVE"},"city":{"type":"string"},"currency":{"type":"string","example":"EUR"},"timezone":{"type":"string","example":"Europe/Berlin"},"unitCount":{"type":"integer","example":2},"cancellationPolicy":{"type":"string","enum":["FLEXIBLE","MODERATE","FIRM","STRICT","NON_REFUNDABLE"],"example":"FLEXIBLE"}},"required":["id","name"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Saves an imported listing to the property.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","writes":"60 requests per hour","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true}}},"/properties/{id}/nights":{"get":{"description":"`from`, `to` (inclusive), optional `scopes` (`default,direct,c:<connectionId>`) and `units`. Every value carries its layer.","operationId":"getPricingNights","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"from","required":true,"in":"query","description":"First night, YYYY-MM-DD.","schema":{"type":"string"}},{"name":"to","required":true,"in":"query","description":"Last night, INCLUSIVE, YYYY-MM-DD.","schema":{"type":"string"}},{"name":"scopes","required":false,"in":"query","description":"Comma-separated scopes (`default,direct,c:<connectionId>`). Default: every scope.","schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Alias of `scopes` with one value.","schema":{"type":"string"}},{"name":"units","required":false,"in":"query","description":"Comma-separated unit ids. Default: every unit.","schema":{"type":"string"}},{"name":"ratePlans","required":false,"in":"query","description":"Comma-separated rate plan ids: each unit shows the nights of the named plan instead of its standard one (e.g. a breakfast price). Default: the standard plan.","schema":{"type":"string"}}],"responses":{"200":{"description":"Resolved prices and stay rules per scope (default, direct, c:<connectionId>); every value with its layer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"propertyId":{"type":"string"},"currency":{"type":"string","nullable":true,"example":"EUR"},"from":{"type":"string","example":"2026-09-01"},"to":{"type":"string","example":"2026-09-14"},"asOf":{"type":"string","format":"date-time"},"today":{"type":"string","nullable":true},"scopes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"scope":{"type":"string","example":"default"},"kind":{"type":"string"},"channel":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channel":{"type":"string","example":"BOOKING_COM"},"title":{"type":"string"}},"required":["connectionId","channel"],"nullable":true},"adjustBps":{"type":"integer","nullable":true},"adjustMinor":{"type":"integer","nullable":true},"overriddenNights":{"type":"integer"}}}},"seasons":{"type":"array","items":{"type":"object","additionalProperties":true}},"units":{"type":"object","additionalProperties":{"type":"object","additionalProperties":true,"properties":{"ratePlanId":{"type":"string"},"name":{"type":"string"},"nights":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"required":["propertyId","from","to","scopes","units"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Resolved prices and rules per scope (V2)"}},"/units/{id}/nights/{date}/explain":{"get":{"description":"`date` is a night (YYYY-MM-DD); optional `ratePlanId` and `scope`. Each row has `chain` (the steps in words, for people) and `breakdown`, the same in fields: `currency`, `amountMinor` (the price as that scope sells it), `baseCurrency`, `baseCurrencyAmountMinor` (the same price in the listing currency), `rate` (1 `currency` = `rate` `baseCurrency`, the workspace rate; null in the listing currency), `markupPercent` / `markupMinor` (the platform adjustment, or null) and `source` (`base`: the base price as it is; `derived`: from it by a conversion, an adjustment or a discount; `own`: a price set on that scope). Read only.","operationId":"explainPricingNight","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"date","required":true,"in":"path","schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","description":"Scope whose chain `lines` describe. Default `default`.","schema":{"type":"string"}},{"name":"ratePlanId","required":false,"in":"query","description":"A rate option of the unit. Default: the standard plan.","schema":{"type":"string"}},{"name":"guests","required":false,"in":"query","description":"Guests for the website guest total. Default: guests included.","schema":{"type":"number"}}],"responses":{"200":{"description":"One night's price per scope: the chain, the layer, why it is closed and what Reset goes back to.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"unitName":{"type":"string"},"ratePlanId":{"type":"string"},"date":{"type":"string","example":"2026-09-12"},"currency":{"type":"string","example":"EUR"},"asOf":{"type":"string","format":"date-time"},"rows":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"scope":{"type":"string"},"label":{"type":"string"},"priceMinor":{"type":"integer","nullable":true},"chain":{"type":"string"},"layer":{"type":"string"},"closed":{"type":"boolean"},"reset":{"type":"object","additionalProperties":true}}}}},"required":["unitId","date","rows"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Why this price: every scope, the chain and Reset targets"}},"/units/{id}/quote":{"get":{"description":"`arrivalDate`, `departureDate` (exclusive), optional `adults`, `children`, `ratePlanId`. The same rules the booking page uses, so it is the total of a booking the host adds by hand. Read only; holds nothing.","operationId":"quoteStay","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"arrivalDate","required":true,"in":"query","description":"Arrival night, YYYY-MM-DD.","schema":{"type":"string"}},{"name":"departureDate","required":true,"in":"query","description":"Departure day (exclusive), YYYY-MM-DD.","schema":{"type":"string"}},{"name":"adults","required":false,"in":"query","description":"Adults. Default 2.","schema":{"type":"number"}},{"name":"children","required":false,"in":"query","description":"Children (counted as guests).","schema":{"type":"number"}},{"name":"ratePlanId","required":false,"in":"query","description":"A rate option of the unit. Default: the standard plan.","schema":{"type":"string"}},{"name":"currency","required":false,"in":"query","description":"Another currency the listing sells in (preview website.currencies): the stay converted by its rate.","schema":{"type":"string"}}],"responses":{"200":{"description":"The price of a stay on the website: nights, discounts, fees, taxes and the total, in minor units. With available: false, reason says why it cannot be booked.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"ratePlanId":{"type":"string"},"arrivalDate":{"type":"string","example":"2026-07-10"},"departureDate":{"type":"string","example":"2026-07-13"},"currency":{"type":"string","example":"EUR"},"available":{"type":"boolean"},"reason":{"type":"string","nullable":true},"nights":{"type":"integer"},"nightly":{"type":"array","items":{"type":"object","additionalProperties":true}},"nightsMinor":{"type":"integer"},"discountsMinor":{"type":"integer"},"feesMinor":{"type":"integer"},"taxesMinor":{"type":"integer"},"totalMinor":{"type":"integer"},"deposits":{"type":"array","items":{"type":"object","additionalProperties":true}},"lines":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"code":{"type":"string"},"label":{"type":"string"},"amountMinor":{"type":"integer"}},"required":["code","amountMinor"]}}},"required":["unitId","arrivalDate","departureDate","currency","available","nights","totalMinor","lines"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Website price of one stay: nights, discounts, fees, taxes, total"}},"/properties/{id}/rounding":{"put":{"description":"`mode`: WHOLE, END_9 or NONE. Applies to every listing of the property on every platform; prices that changed are sent again. A price typed for a night is kept as typed.","operationId":"setPriceRounding","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRoundingModeDto"}}}},"responses":{"200":{"description":"The rounding of the property now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceRoundingResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"How computed prices are rounded"}},"/units/{id}/rules":{"get":{"description":"Standing values of the unit (base and weekend price, min/max nights, check-in/out days), its discounts and fees, and per channel the settings and what that channel can carry. Read only.","operationId":"getUnitRules","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Prices & stay rules: defaults, discounts, fees, per-platform settings and what each platform supports.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"propertyId":{"type":"string"},"ratePlanId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"standing":{"type":"object","additionalProperties":true,"properties":{"basePriceMinor":{"type":"integer"},"weekendPriceMinor":{"type":"integer","nullable":true},"minNights":{"type":"integer"},"maxNights":{"type":"integer"}}},"discounts":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"lengthOfStay":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"minNights":{"type":"integer"},"pct":{"type":"number"}}}},"earlyBird":{"type":"object","additionalProperties":true,"properties":{"days":{"type":"integer"},"pct":{"type":"number"}},"nullable":true},"lastMinute":{"type":"object","additionalProperties":true,"properties":{"days":{"type":"integer"},"pct":{"type":"number"}},"nullable":true}}},"fees":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"feeKey":{"type":"string"},"kind":{"type":"string","example":"CLEANING"},"label":{"type":"string","nullable":true},"amountMinor":{"type":"integer","nullable":true},"percentBps":{"type":"integer","nullable":true},"per":{"type":"string","enum":["STAY","NIGHT","GUEST","GUEST_NIGHT"]},"optional":{"type":"boolean"}}}},"channels":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"channel":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channel":{"type":"string","example":"BOOKING_COM"},"title":{"type":"string"}},"required":["connectionId","channel"]},"settings":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"connectionId":{"type":"string"},"adjustBps":{"type":"integer","example":1500},"adjustMinor":{"type":"integer"},"minNights":{"type":"integer","nullable":true},"maxNights":{"type":"integer","nullable":true},"advanceNoticeHours":{"type":"integer","nullable":true},"maxAdvanceDays":{"type":"integer","nullable":true},"preparationNights":{"type":"integer","nullable":true},"paused":{"type":"boolean"}},"required":["unitId","connectionId","adjustBps","adjustMinor"]},"capabilities":{"type":"object","additionalProperties":true}}}}},"required":["unitId","ratePlanId","standing","channels"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Rules panel: standing values, discounts, fees, per-channel settings and capabilities"}},"/properties/{id}/currencies":{"get":{"description":"Per platform: `currency` (what its prices are in: the rule currency, else the listing currency), `rule` (`currency`, `rate` = 1 unit of it in the listing currency: the workspace's rate from `GET /exchange-rates`, `rateDate`, `roundingMode`, `mode` FIXED) or null, `platformCurrency` (what the platform reports it sells in), `convertedByPlatform` (the platform converts the prices itself today), `switching` (the platform is moving to the new currency; it is closed meanwhile), `ownAmounts` (own prices in its currency) and `ecb` (today's ECB reference rate to prefill). Preview feature `pricing.currencies`: 404 for other workspaces. Change a rule with `PUT /connections/:id/currency`.","operationId":"getPlatformCurrencies","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Per platform: the currency it sells in and the rule its price comes from (preview feature: pricing.currencies).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"listingCurrency":{"type":"string","example":"EUR"},"platforms":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"title":{"type":"string"},"channel":{"type":"string","example":"BOOKING_COM"},"platformCurrency":{"type":"string","nullable":true,"example":"EUR"},"currency":{"type":"string","example":"EUR"},"rule":{"nullable":true,"type":"object","additionalProperties":true,"properties":{"currency":{"type":"string","example":"EUR"},"rate":{"type":"number","example":395},"rateDate":{"type":"string","nullable":true},"roundingMode":{"type":"string"},"mode":{"type":"string","example":"FIXED"}},"required":["currency","rate"]},"convertedByPlatform":{"type":"boolean"},"switching":{"type":"boolean"},"ownAmounts":{"type":"integer"}},"required":["connectionId","channel","currency","convertedByPlatform","switching"]}}},"required":["listingCurrency","platforms"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The currency each platform of a listing sells in, and the rule its prices come from"}},"/connections/{id}/currency":{"put":{"description":"Body: `currency` (ISO 4217; null or the listing currency = back to your own prices), optional `rate` (1 unit of `currency` in the listing currency, e.g. 395 for 1 EUR = 395 HUF; at most 8 decimals; omitted = the workspace's rate from `GET /exchange-rates`, 400 `RATE_MISSING` when there is none; given, it becomes the workspace's rate for every listing and platform in that currency), optional `rateDate` (YYYY-MM-DD of the published rate), `roundingMode` (WHOLE, END_9, NONE; default the listing rounding), `clearOwnPrices` (true to clear the platform's own prices when its currency changes; else 400 `CURRENCY_LOCKED`). The preview names the nights that change and three sample nights. A live platform whose prices change currency closes for a few minutes and opens again in the new currency. A platform that takes prices exactly in the currency you say (Trip.com, Hostelworld, Despegar: `platformCurrencyFixed` on the connection) switches its own currency with them in the same change; there the preview key is not needed. Always asks the host before it applies when an agent proposes it. Apply with `POST /commands/:id/apply`. Preview feature `pricing.currencies` (403 `FEATURE_NOT_AVAILABLE` otherwise).","operationId":"setPlatformCurrency","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Preview of the platform's currency rule (CURRENCY_RULE): commandId, revision, diff and sample nights. Nothing is written before apply.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview the currency a platform sells in (its own prices from yours at a fixed rate)"}},"/exchange-rates":{"get":{"description":"`baseCurrency` (the workspace's currency) and per currency in use: `currency`, `baseCurrency`, `rate` (1 `currency` = `rate` of `baseCurrency`, exact decimal text; null = in use but not set, its prices stay closed), `rateDate` and `source` (ECB when taken from the ECB reference rate, else MANUAL), `updatedAt`, `usedBy` (`[{kind: PLATFORM|WEBSITE, name, listings, pending?}]`; `pending`: the platform sells in it but still converts your prices itself) and `ecb` (today's ECB reference rate, to propose; never applied by itself). Every listing, platform and website that sells in a currency converts by this one rate. Preview `pricing.currencies` or `website.currencies`, or a workspace with a platform that takes prices in the currency you declare (Trip.com, Hostelworld, Despegar) offered or connected: 404 for other workspaces.","operationId":"getExchangeRates","parameters":[],"responses":{"200":{"description":"The workspace's exchange rates: one fixed rate per currency (1 currency = rate baseCurrency, an exact decimal as text; null: in use but not set), where it comes from (ECB or MANUAL), where it is used (usedBy) and today's ECB reference rate as a suggestion (ecb).","content":{"application/json":{"schema":{"type":"object","properties":{"baseCurrency":{"type":"string","example":"EUR"},"rates":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","example":"EUR"},"baseCurrency":{"type":"string","example":"EUR"},"rate":{"type":"string","nullable":true,"example":"392.15","description":"1 `currency` = `rate` of `baseCurrency`, exact decimal text; null: in use but not set (its prices stay closed)."},"rateDate":{"type":"string","nullable":true,"example":"2026-11-16"},"source":{"type":"string","enum":["ECB","MANUAL",null],"nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"usedBy":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["PLATFORM","WEBSITE"]},"name":{"type":"string"},"listings":{"type":"integer"},"pending":{"type":"boolean","enum":[true],"description":"Present only when the platform sells in this currency but still converts the prices itself."}},"required":["kind","name","listings"]}},"ecb":{"type":"object","properties":{"rate":{"type":"string","example":"392.15"},"date":{"type":"string","example":"2026-11-16"}},"required":["rate","date"],"nullable":true,"description":"Today's ECB reference rate of the pair, to propose; never applied by itself."}},"required":["currency","baseCurrency","rate","rateDate","source","updatedAt","usedBy","ecb"]}},"ecbDate":{"type":"string","nullable":true,"example":"2026-11-16","description":"null: the ECB did not answer."}},"required":["baseCurrency","rates","ecbDate"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The workspace's exchange rates: one fixed rate per currency, where each is used, today's ECB rate"}},"/exchange-rates/{currency}":{"put":{"description":"Body: `rate` (1 `:currency` in the workspace's currency, at most 8 decimals: \"392.15\" for EUR 1 = HUF 392.15) or `useEcb: true` (today's ECB reference rate), optional `rateDate` (YYYY-MM-DD of the ECB rate it came from) and `baseCurrency` (default the workspace's). Platform prices in that currency are sent again where they changed; website quotes use it from the next one; holds and bookings keep the rate they were made at. RISKY for agents: it waits for the host's approval in the app (202 with `approvalUrl`) unless the workspace skips approvals. Preview `pricing.currencies` or `website.currencies`, or a platform that takes prices in the currency you declare (Trip.com, Hostelworld, Despegar) offered or connected (404 otherwise).","operationId":"setExchangeRate","parameters":[{"name":"currency","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetExchangeRateDto"}}}},"responses":{"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set one workspace exchange rate (every listing, platform and website in that currency uses it)"}},"/units/{id}/pricing-signals":{"get":{"description":"The numbers a price review needs, computed from this workspace's own bookings only. Optional `from`, `to` (inclusive; default today and 89 nights after; at most 184 nights) and `detail` (`weeks`, or `nights` for 31 nights or fewer). Per period: nights `forSale`, `sold`, `free`, `blocked`; `soldLast7` and `soldLast28` (by the day each booking was made); `cancelledLast28`; the price range and usual minimum stay of the free nights; the average price of the sold nights; and `lastYear` (the same weekdays 52 weeks earlier): `sold` is how those nights ended, `soldByNow` what was already booked at the same distance from the stay (null when a booking has no known booked-on time). Also `bookingCurve` (share of the sold nights of the last 12 months already booked N days before the night), `weekdays`, `stays`, `platforms`, `gaps` (one to three free nights between bookings), `priceChanges` (the last applied changes with what sold in the 14 days before and after), `property` (the same counts pooled over the property's listings of the same kind) and `setup` with the host's own lowest price (`minPriceMinor`). Numbers only, no verdicts: `confidence` is `unclear` when fewer than 3 bookings stand behind a figure and `low` under 10. Prices are per night in minor units, without cleaning fees, other fees and taxes. Read only.","operationId":"getPricingSignals","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"First night, YYYY-MM-DD. Default: today in the property time zone.","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"Last night, INCLUSIVE, YYYY-MM-DD. Default: 89 nights after `from`. At most 184 nights.","schema":{"type":"string"}},{"name":"detail","required":false,"in":"query","description":"`weeks` (default): one row per week. `nights`: one row per night, for 31 nights or fewer.","schema":{"type":"string","enum":["weeks","nights"]}}],"responses":{"200":{"description":"Pricing signals of one listing from this workspace's own bookings: nights for sale, sold and free, pickup in the last 7 and 28 days, the same weeks last year at the same point, the booking curve, gaps and the host's price limits.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"propertyId":{"type":"string"},"currency":{"type":"string"},"today":{"type":"string"},"nights":{"type":"integer"},"from":{"type":"string","example":"2026-12-01"},"to":{"type":"string","example":"2026-12-31"},"setup":{"type":"object","additionalProperties":true},"totals":{"type":"object","additionalProperties":true},"periods":{"type":"array","items":{"type":"object","additionalProperties":true}},"bookingCurve":{"type":"object","additionalProperties":true,"nullable":true},"property":{"type":"object","additionalProperties":true,"nullable":true}},"required":["from","to"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Pricing signals of one listing: sold and free nights, pickup, last year at the same point, booking curve"}},"/pricing-signals":{"get":{"description":"For a workspace with several listings, before asking for the signals of one. Optional `from`, `to` (inclusive; default today and 89 nights after; at most 184 nights). Only the properties the credential may see. Read only.","operationId":"getPricingSignalsOverview","parameters":[{"name":"from","required":false,"in":"query","description":"First night, YYYY-MM-DD. Default: today in the property time zone.","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"Last night, INCLUSIVE, YYYY-MM-DD. Default: 89 nights after `from`. At most 184 nights.","schema":{"type":"string"}},{"name":"detail","required":false,"in":"query","description":"`weeks` (default): one row per week. `nights`: one row per night, for 31 nights or fewer.","schema":{"type":"string","enum":["weeks","nights"]}}],"responses":{"200":{"description":"Every listing in one line: nights for sale, sold, free, and sold in the last 7 days.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"from":{"type":"string","example":"2026-12-01"},"to":{"type":"string","example":"2026-12-31"},"listings":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["from","to"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Every listing in one line: nights for sale, sold, free, and sold in the last 7 days"}},"/units/{id}/compare":{"get":{"description":"One column per scope (Default, Website, each channel), one row per rule, every cell with its value and whether it is overridden. Optional `connectionId`. Read only.","operationId":"compareUnitChannels","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":false,"in":"query","schema":{"type":"string"}},{"name":"connectionId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"A unit's platforms side by side: one column per scope, one row per rule.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"ratePlanId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"columns":{"type":"array","items":{"type":"object","additionalProperties":true}},"rows":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"key":{"type":"string","example":"price"},"cells":{"type":"object","additionalProperties":true}}}}},"required":["unitId","columns","rows"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Compare channels for one unit"}},"/connections/{id}/compare":{"get":{"description":"`unitId` is required. The connection side by side with Default and Website. Read only.","operationId":"compareConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":false,"in":"query","schema":{"type":"string"}},{"name":"connectionId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"One connection next to Default and Website.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"ratePlanId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"columns":{"type":"array","items":{"type":"object","additionalProperties":true}},"rows":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"key":{"type":"string","example":"price"},"cells":{"type":"object","additionalProperties":true}}}}},"required":["unitId","columns","rows"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Compare one connection with Default and Website (?unitId=)"}},"/units/{id}/discounts":{"get":{"description":"Percentages are plain numbers (10 = 10 %). `perChannel` holds a channel's own discounts. Read only.","operationId":"getDiscounts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Length-of-stay, early-booking and last-minute discounts.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"lengthOfStay":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"minNights":{"type":"integer"},"pct":{"type":"number"}}}},"earlyBird":{"type":"object","additionalProperties":true,"properties":{"days":{"type":"integer"},"pct":{"type":"number"}},"nullable":true},"lastMinute":{"type":"object","additionalProperties":true,"properties":{"days":{"type":"integer"},"pct":{"type":"number"}},"nullable":true}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Length-of-stay, early bird and last minute discounts (default + per channel)"},"put":{"description":"Body: lengthOfStay, earlyBird, lastMinute and optional perChannel (`off` or own values per channel key). Returns a preview; apply it with `POST /commands/:id/apply`.","operationId":"setDiscounts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Preview of replacing the discounts (DISCOUNTS_SET).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview replacing the discounts of a unit"}},"/units/{id}/fees":{"get":{"description":"Amounts in minor units; `per` is STAY, NIGHT, GUEST or GUEST_NIGHT. Read only.","operationId":"getFees","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The unit's fees.","content":{"application/json":{"schema":{"type":"object","properties":{"fees":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"feeKey":{"type":"string"},"kind":{"type":"string","example":"CLEANING"},"label":{"type":"string","nullable":true},"amountMinor":{"type":"integer","nullable":true},"percentBps":{"type":"integer","nullable":true},"per":{"type":"string","enum":["STAY","NIGHT","GUEST","GUEST_NIGHT"]},"optional":{"type":"boolean"}}}}},"required":["fees"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Unit fees (default + per channel)"},"put":{"description":"Body: `fees`, the full list (kind, exactly one of amountMinor / percentBps, per, optional perChannel). Returns a preview; apply it with `POST /commands/:id/apply`.","operationId":"setFees","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Preview of replacing the fees (FEES_SET).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview replacing the fees of a unit"}},"/units/{id}/channels/{connectionId}/settings":{"get":{"description":"`adjustBps` in basis points (1500 = +15 %), `adjustMinor` in minor units; null means the unit default applies. Read only.","operationId":"getChannelSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"connectionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"A unit's standing settings on one platform.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"connectionId":{"type":"string"},"adjustBps":{"type":"integer","example":1500},"adjustMinor":{"type":"integer"},"minNights":{"type":"integer","nullable":true},"maxNights":{"type":"integer","nullable":true},"advanceNoticeHours":{"type":"integer","nullable":true},"maxAdvanceDays":{"type":"integer","nullable":true},"preparationNights":{"type":"integer","nullable":true},"paused":{"type":"boolean"}},"required":["unitId","connectionId","adjustBps","adjustMinor"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Standing settings of one unit on one channel"},"put":{"description":"Body: any of adjustBps, adjustMinor, minNights, maxNights, advanceNoticeHours, maxAdvanceDays, preparationNights, paused. Returns a preview; apply it with `POST /commands/:id/apply`.","operationId":"setChannelSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"connectionId","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Preview of the platform settings change (CHANNEL_SETTINGS).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview a channel settings change (adjustBps, minNights, …, paused)"}},"/properties/{id}/seasons":{"get":{"description":"Seasons of the property with their ranges (inclusive), weekdays (in answers 0 = Sunday … 6 = Saturday; send 1 = Monday … 7 = Sunday), units and scope. Read only.","operationId":"listSeasons","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Seasons, highest priority first.","content":{"application/json":{"schema":{"type":"object","properties":{"seasons":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"name":{"type":"string","example":"Summer"},"color":{"type":"string","nullable":true},"ranges":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"from":{"type":"string","example":"2026-06-15"},"to":{"type":"string","example":"2026-08-31"}}}},"yearly":{"type":"boolean"},"weekdays":{"type":"array","items":{"type":"integer"},"nullable":true},"unitIds":{"type":"array","items":{"type":"string"},"nullable":true},"scope":{"type":"string","example":"default"},"priority":{"type":"integer"}},"required":["id","propertyId","name","ranges"]}}},"required":["seasons"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Seasons, highest priority first"},"post":{"description":"Body: name, ranges (inclusive), optional weekdays (1 = Monday … 7 = Sunday; 0 is still read as Sunday), unitIds, scope and values. Returns a preview; apply it with `POST /commands/:id/apply`.","operationId":"createSeason","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"201":{"description":"Preview of a new season (SEASON_UPSERT).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview a new season"}},"/properties/{id}/taxes":{"get":{"description":"VAT, city tax and other tax rules; `pct` as a plain number, `amountMinor` in minor units. Read only.","operationId":"getTaxes","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The property's tax rules.","content":{"application/json":{"schema":{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"kind":{"type":"string","enum":["VAT","CITY_TAX","OTHER"]},"label":{"type":"string","nullable":true},"pct":{"type":"number","nullable":true},"amountMinor":{"type":"integer","nullable":true},"per":{"type":"string","nullable":true},"logic":{"type":"string"},"includedInPrice":{"type":"boolean"},"exemptUnderAge":{"type":"integer","nullable":true},"maxNights":{"type":"integer","nullable":true}},"required":["id","propertyId","kind"]}}},"required":["taxes"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Tax rules of a property"},"put":{"description":"Body: `rules`, the full list. Returns a preview with `needsApproval` and an approval link; the host approves it in the app.","operationId":"setTaxes","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Preview of replacing the tax rules (TAXES_SET); from an agent it always asks the host's approval.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview replacing the tax rules (always needs the host’s approval from an agent)"}},"/pricing/commands":{"post":{"description":"`{kind, input}` → `commandId`, `revision`, diff. Nothing is written until `POST /commands/:id/apply`.","operationId":"previewPricingCommand","parameters":[{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingCommandPreviewDto"}}}},"responses":{"201":{"description":"Preview: commandId, revision, diff. Nothing is written before apply.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview a pricing command"}},"/pricing/bulk":{"post":{"description":"Body = PRICING_BULK input: unitIds, ranges (inclusive), weekdays (1 = Monday … 7 = Sunday, as everywhere in the API; 0 is still read as Sunday), scope, price {set | adjustPct/adjustMinor}, minNights, maxNights, arrivalsAllowed, departuresAllowed, availability, reset.","operationId":"previewPricingBulk","parameters":[{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"201":{"description":"Preview of the bulk edit (PRICING_BULK command).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview a bulk price / restriction / availability edit"}},"/commands/{id}":{"get":{"description":"Works for any command id of this workspace, applied or not. `/commands/:id` and `/pricing/commands/:id` are the same route.","operationId":"getCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"A command's state, summary and diff.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"A command: status, summary and diff"},"delete":{"description":"Only a PREVIEW or APPROVAL_REQUIRED command can be discarded; an applied one answers 409 `NOT_DISCARDABLE`.","operationId":"discardCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The unapplied preview, discarded.","content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string"},"discarded":{"type":"boolean","enum":[true]}},"required":["commandId","discarded"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Drop an unapplied preview"}},"/pricing/commands/{id}":{"get":{"description":"Works for any command id of this workspace, applied or not. `/commands/:id` and `/pricing/commands/:id` are the same route.","operationId":"getCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"A command's state, summary and diff.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"A command: status, summary and diff"},"delete":{"description":"Only a PREVIEW or APPROVAL_REQUIRED command can be discarded; an applied one answers 409 `NOT_DISCARDABLE`.","operationId":"discardCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The unapplied preview, discarded.","content":{"application/json":{"schema":{"type":"object","properties":{"commandId":{"type":"string"},"discarded":{"type":"boolean","enum":[true]}},"required":["commandId","discarded"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Drop an unapplied preview"}},"/commands/{id}/apply":{"post":{"description":"`{revision, idempotencyKey}` (or the Idempotency-Key header). Returns `applied`, `stale` (a fresh preview) or `needsApproval`.","operationId":"applyCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingCommandApplyDto"}}}},"responses":{"201":{"description":"applied, stale (with a fresh preview) or needsApproval.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["applied","stale","needsApproval"]},"commandId":{"type":"string","description":"When applied."},"revision":{"type":"integer","description":"When applied."},"summary":{"type":"string","description":"When applied."},"result":{"type":"object","additionalProperties":true},"preview":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"],"description":"When stale (a fresh preview to apply instead) or needsApproval."}},"required":["status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Apply one revision of a command"}},"/pricing/commands/{id}/apply":{"post":{"description":"`{revision, idempotencyKey}` (or the Idempotency-Key header). Returns `applied`, `stale` (a fresh preview) or `needsApproval`.","operationId":"applyCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingCommandApplyDto"}}}},"responses":{"201":{"description":"applied, stale (with a fresh preview) or needsApproval.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["applied","stale","needsApproval"]},"commandId":{"type":"string","description":"When applied."},"revision":{"type":"integer","description":"When applied."},"summary":{"type":"string","description":"When applied."},"result":{"type":"object","additionalProperties":true},"preview":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"],"description":"When stale (a fresh preview to apply instead) or needsApproval."}},"required":["status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Apply one revision of a command"}},"/properties/{id}/seasons/reorder":{"post":{"description":"Body: `seasonIds`, highest priority first. Returns a preview; apply it with `POST /commands/:id/apply`.","operationId":"reorderSeasons","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"201":{"description":"Preview of a new season order (SEASON_REORDER).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview a new season order (`seasonIds`, highest first)"}},"/properties/{id}/seasons/{seasonId}":{"put":{"description":"Body: the fields to change. Returns a preview; apply it with `POST /commands/:id/apply`.","operationId":"updateSeason","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"seasonId","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Preview of a season change (SEASON_UPSERT).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview a season update"},"delete":{"description":"Returns a preview; apply it with `POST /commands/:id/apply`.","operationId":"deleteSeason","parameters":[{"name":"seasonId","required":true,"in":"path","schema":{"type":"string"}},{"name":"dryRun","required":false,"in":"query","description":"true: only show what would change. No approval is created and no approval link is returned; `wouldNeedApproval` says whether applying it would ask the host.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Preview of deleting a season (SEASON_DELETE).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"commandId":{"type":"string"},"revision":{"type":"integer","example":1},"kind":{"type":"string","example":"PRICING_BULK"},"status":{"type":"string","example":"PREVIEW"},"needsApproval":{"type":"boolean"},"summary":{"type":"string"},"diff":{"type":"array","items":{"type":"object","additionalProperties":true}},"warnings":{"type":"array","items":{"type":"string"}},"detail":{"type":"object","additionalProperties":true},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"appliedAt":{"type":"string","format":"date-time","nullable":true},"approvalPath":{"type":"string","description":"Only when needsApproval: the app path where the host approves this revision."},"result":{"type":"object","additionalProperties":true}},"required":["commandId","revision","kind","status","needsApproval","summary","diff"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Preview deleting a season"}},"/units/{id}/base-price":{"put":{"description":"`baseRateMinor` in minor units. Applies to every night without a weekend price, season or night override, on the website and every channel; pushed right away. A change of more than 25 % is refused with 409 `HOST_APPROVAL_REQUIRED` (the host makes it in the app). Idempotency-Key header recommended.","operationId":"setUnitBasePrice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Unit id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetUnitBasePriceDto"}}}},"responses":{"200":{"description":"The unit's new base price and the previous value, in minor units.","content":{"application/json":{"schema":{"type":"object","properties":{"unitId":{"type":"string"},"ratePlanId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"beforeMinor":{"type":"integer","example":3500000},"baseRateMinor":{"type":"integer","example":3800000}},"required":["unitId","ratePlanId","currency","beforeMinor","baseRateMinor"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set the base nightly price of a unit"}},"/units/{id}/non-refundable":{"put":{"description":"`percent` 1-50: guests who choose it pay that much less, in full at booking, with no refund; it follows the standard price. `null` stops offering it. Setting a percent always waits for the host's approval (also with auto-approve). Preview feature `pricing.discounts`.","operationId":"setNonRefundable","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Unit id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetNonRefundableDto"}}}},"responses":{"200":{"description":"The unit's non-refundable price after saving: percent (1-50, or null when no longer offered), the previous value (before) and the rate plan (ratePlanId; null when removed).","content":{"application/json":{"schema":{"type":"object","properties":{"unitId":{"type":"string"},"ratePlanId":{"type":"string","nullable":true},"before":{"type":"number","nullable":true,"description":"The percent before this change; null when it was not offered."},"percent":{"type":"number","nullable":true,"example":10}},"required":["unitId","ratePlanId","before","percent"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Offer, change or stop the non-refundable price of a unit"}},"/reservation-requests":{"get":{"description":"`status=open` (default): everything that waits for the host’s answer, the list the app shows under \"Needs you\": from a platform (`origin: platform`), from the host’s website (`website`), or an inquiry the host added by hand (`hostemi`, id `res:<reservationId>`). `all` or one status reads the request table. Nearest deadline first. `answer.accept` / `answer.decline` is the call of this API that proposes that answer (`null` when it is not possible now).","operationId":"listReservationRequests","parameters":[],"responses":{"200":{"description":"Booking requests and inquiries, nearest deadline first. An array.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REQUEST_TO_BOOK","INQUIRY"]},"status":{"type":"string","example":"PENDING"},"propertyId":{"type":"string"},"connectionId":{"type":"string"},"channel":{"type":"string"},"reservationId":{"type":"string","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","nullable":true}}},"unitId":{"type":"string"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"nights":{"type":"integer"},"currency":{"type":"string","example":"EUR"},"totalAmountMinor":{"type":"integer","nullable":true},"payoutMinor":{"type":"integer","nullable":true},"receivedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time","nullable":true},"decision":{"type":"string","nullable":true},"proposal":{"type":"object","additionalProperties":true,"nullable":true},"actions":{"type":"object","additionalProperties":{"type":"boolean"}},"origin":{"type":"string","enum":["platform","website","hostemi"],"description":"Where it came from: a platform, the host website, or added by the host (then `id` is `res:<reservationId>`: a booking on hold)."},"answer":{"type":"object","description":"The call of this API that proposes each answer, or null when that answer is not possible now: POST /reservation-requests/{id}/resolve with `body.decision`, or for `origin: hostemi` POST /reservations/{id}/confirm and /cancel.","properties":{"accept":{"type":"object","additionalProperties":true,"properties":{"method":{"type":"string","enum":["POST"]},"path":{"type":"string"},"body":{"type":"object","additionalProperties":true}},"required":["method","path"],"nullable":true},"decline":{"type":"object","additionalProperties":true,"properties":{"method":{"type":"string","enum":["POST"]},"path":{"type":"string"},"body":{"type":"object","additionalProperties":true}},"required":["method","path"],"nullable":true}}}},"required":["id","kind","status","propertyId"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Requests to book and inquiries waiting for an answer"}},"/reservation-requests/{id}":{"get":{"description":"`actions` says which answers are possible now; `expiresAt` is the channel deadline. Read only.","operationId":"getReservationRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"One request or inquiry with its deadline and the answers allowed.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REQUEST_TO_BOOK","INQUIRY"]},"status":{"type":"string","example":"PENDING"},"propertyId":{"type":"string"},"connectionId":{"type":"string"},"channel":{"type":"string"},"reservationId":{"type":"string","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","nullable":true}}},"unitId":{"type":"string"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"nights":{"type":"integer"},"currency":{"type":"string","example":"EUR"},"totalAmountMinor":{"type":"integer","nullable":true},"payoutMinor":{"type":"integer","nullable":true},"receivedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time","nullable":true},"decision":{"type":"string","nullable":true},"proposal":{"type":"object","additionalProperties":true,"nullable":true},"actions":{"type":"object","additionalProperties":{"type":"boolean"}},"origin":{"type":"string","enum":["platform","website","hostemi"],"description":"Where it came from: a platform, the host website, or added by the host (then `id` is `res:<reservationId>`: a booking on hold)."},"answer":{"type":"object","description":"The call of this API that proposes each answer, or null when that answer is not possible now: POST /reservation-requests/{id}/resolve with `body.decision`, or for `origin: hostemi` POST /reservations/{id}/confirm and /cancel.","properties":{"accept":{"type":"object","additionalProperties":true,"properties":{"method":{"type":"string","enum":["POST"]},"path":{"type":"string"},"body":{"type":"object","additionalProperties":true}},"required":["method","path"],"nullable":true},"decline":{"type":"object","additionalProperties":true,"properties":{"method":{"type":"string","enum":["POST"]},"path":{"type":"string"},"body":{"type":"object","additionalProperties":true}},"required":["method","path"],"nullable":true}}}},"required":["id","kind","status","propertyId"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One request or inquiry, with its deadline and the answers it allows"}},"/reservation-requests/{id}/resolve":{"post":{"description":"Never executed from the API: returns APPROVAL_REQUIRED and `approvalPath`, where the host confirms it in the app.","operationId":"resolveReservationRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveRequestDto"}}}},"responses":{"201":{"description":"Always APPROVAL_REQUIRED from the API: the answer is stored as a proposal and the host approves it at approvalPath.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED","QUEUED","DONE"]},"request":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REQUEST_TO_BOOK","INQUIRY"]},"status":{"type":"string","example":"PENDING"},"propertyId":{"type":"string"},"connectionId":{"type":"string"},"channel":{"type":"string"},"reservationId":{"type":"string","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","nullable":true}}},"unitId":{"type":"string"},"arrivalDate":{"type":"string","example":"2026-09-12"},"departureDate":{"type":"string","example":"2026-09-15"},"nights":{"type":"integer"},"currency":{"type":"string","example":"EUR"},"totalAmountMinor":{"type":"integer","nullable":true},"payoutMinor":{"type":"integer","nullable":true},"receivedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time","nullable":true},"decision":{"type":"string","nullable":true},"proposal":{"type":"object","additionalProperties":true,"nullable":true},"actions":{"type":"object","additionalProperties":{"type":"boolean"}},"origin":{"type":"string","enum":["platform","website","hostemi"],"description":"Where it came from: a platform, the host website, or added by the host (then `id` is `res:<reservationId>`: a booking on hold)."},"answer":{"type":"object","description":"The call of this API that proposes each answer, or null when that answer is not possible now: POST /reservation-requests/{id}/resolve with `body.decision`, or for `origin: hostemi` POST /reservations/{id}/confirm and /cancel.","properties":{"accept":{"type":"object","additionalProperties":true,"properties":{"method":{"type":"string","enum":["POST"]},"path":{"type":"string"},"body":{"type":"object","additionalProperties":true}},"required":["method","path"],"nullable":true},"decline":{"type":"object","additionalProperties":true,"properties":{"method":{"type":"string","enum":["POST"]},"path":{"type":"string"},"body":{"type":"object","additionalProperties":true}},"required":["method","path"],"nullable":true}}}},"required":["id","kind","status","propertyId"]},"approvalPath":{"type":"string"},"summary":{"type":"string"}},"required":["status","request"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose an answer (ACCEPT, DECLINE, PREAPPROVE, SPECIAL_OFFER, DECLINE_INQUIRY)"}},"/reservations/{id}/pending-changes":{"get":{"description":"`{ pending: false }` when nothing is waiting; otherwise the before / after of the parked channel revision. Read only.","operationId":"getPendingChanges","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The platform change waiting on the booking, as a diff, or { pending: false }.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"pending":{"type":"boolean","description":"false: nothing is waiting, no other field."}},"required":["pending"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"A channel change waiting on this booking, as a diff"}},"/reservations/{id}/pending-changes/resolve":{"post":{"description":"Never executed from the API: returns APPROVAL_REQUIRED and `approvalPath` to the booking in the app. `decision`: accept, decline, or withdraw (a change request that started on the host's side; the booking stays as it is).","operationId":"resolvePendingChange","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvePendingChangeDto"}}}},"responses":{"201":{"description":"APPROVAL_REQUIRED from the API (or NOTHING_PENDING); approvalPath points at the booking.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED","NOTHING_PENDING"]},"decision":{"type":"string","enum":["accept","decline"]},"approvalPath":{"type":"string","example":"/app/bookings/res_123"},"pending":{"type":"object","additionalProperties":true,"properties":{"pending":{"type":"boolean","description":"false: nothing is waiting, no other field."}},"required":["pending"]}},"required":["status","decision","approvalPath","pending"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose accepting, declining or withdrawing a channel change"}},"/threads":{"get":{"description":"Filters: propertyId, reservationId, status (OPEN | CLOSED), unread, search; cursor + take. Each thread carries `channel` and `capabilities`.","operationId":"listThreads","parameters":[],"responses":{"200":{"description":"Guest conversations, latest first, with the platform and what can be done.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"threads":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"OPEN"},"reservationId":{"type":"string","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","example":"Anna"},"lastName":{"type":"string"}}},"channel":{"type":"string","example":"BOOKING_COM"},"unreadCount":{"type":"integer"},"closedAt":{"type":"string","format":"date-time","nullable":true},"capabilities":{"type":"object","additionalProperties":true,"properties":{"send":{"type":"boolean"},"attachments":{"type":"boolean"},"closeOnChannel":{"type":"boolean"},"noReplyNeeded":{"type":"boolean"}}}},"required":["id"]}}},"required":["threads"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Guest conversations, newest activity first"}},"/threads/{id}":{"get":{"description":"Messages oldest first, with `deliveryStatus` (PENDING | SENT | FAILED), `deliveryError` and `attachments` (name, type, size). Read only: does not mark it read.","operationId":"getThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"One conversation with its messages and delivery state.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"OPEN"},"reservationId":{"type":"string","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","example":"Anna"},"lastName":{"type":"string"}}},"channel":{"type":"string","example":"BOOKING_COM"},"unreadCount":{"type":"integer"},"closedAt":{"type":"string","format":"date-time","nullable":true},"capabilities":{"type":"object","additionalProperties":true,"properties":{"send":{"type":"boolean"},"attachments":{"type":"boolean"},"closeOnChannel":{"type":"boolean"},"noReplyNeeded":{"type":"boolean"}}},"messages":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"body":{"type":"string"},"deliveryStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"deliveryError":{"type":"string","nullable":true},"attachments":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"index":{"type":"integer"},"name":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"delivered":{"type":"boolean"}}}}},"required":["id","deliveryStatus"]}}},"required":["id","messages"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One conversation with its messages"}},"/threads/{id}/messages":{"post":{"description":"`body` and/or `attachmentIds` (from POST /attachments). Channel threads answer with the message PENDING; it settles SENT or FAILED within seconds. Send an Idempotency-Key header.","operationId":"sendThreadMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageDto"}}}},"responses":{"201":{"description":"The message sent. On a platform PENDING, then SENT or FAILED.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"body":{"type":"string"},"deliveryStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"deliveryError":{"type":"string","nullable":true},"attachments":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"index":{"type":"integer"},"name":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"delivered":{"type":"boolean"}}}}},"required":["id","deliveryStatus"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Reply in a conversation (any channel)"}},"/threads/{id}/close":{"post":{"description":"Inbox state, at once. Where the channel has a close (`capabilities.closeOnChannel`) it is told too. A new guest message reopens it.","operationId":"closeThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetThreadClosedDto"}}}},"responses":{"201":{"description":"The conversation after closing (or reopening).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"OPEN"},"reservationId":{"type":"string","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","example":"Anna"},"lastName":{"type":"string"}}},"channel":{"type":"string","example":"BOOKING_COM"},"unreadCount":{"type":"integer"},"closedAt":{"type":"string","format":"date-time","nullable":true},"capabilities":{"type":"object","additionalProperties":true,"properties":{"send":{"type":"boolean"},"attachments":{"type":"boolean"},"closeOnChannel":{"type":"boolean"},"noReplyNeeded":{"type":"boolean"}}},"messages":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"body":{"type":"string"},"deliveryStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"deliveryError":{"type":"string","nullable":true},"attachments":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"index":{"type":"integer"},"name":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"delivered":{"type":"boolean"}}}}},"required":["id","deliveryStatus"]}}},"required":["id","messages"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Close (or reopen with {closed: false}) a conversation"}},"/threads/{id}/no-reply-needed":{"post":{"description":"Only where `capabilities.noReplyNeeded` is true (Booking.com). 422 NO_REPLY_NEEDED_NOT_SUPPORTED otherwise.","operationId":"markThreadNoReplyNeeded","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"The conversation after marking.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"status":{"type":"string","example":"OPEN"},"reservationId":{"type":"string","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true},"guest":{"type":"object","additionalProperties":true,"properties":{"firstName":{"type":"string","example":"Anna"},"lastName":{"type":"string"}}},"channel":{"type":"string","example":"BOOKING_COM"},"unreadCount":{"type":"integer"},"closedAt":{"type":"string","format":"date-time","nullable":true},"capabilities":{"type":"object","additionalProperties":true,"properties":{"send":{"type":"boolean"},"attachments":{"type":"boolean"},"closeOnChannel":{"type":"boolean"},"noReplyNeeded":{"type":"boolean"}}},"messages":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"body":{"type":"string"},"deliveryStatus":{"type":"string","enum":["PENDING","SENT","FAILED"]},"deliveryError":{"type":"string","nullable":true},"attachments":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"index":{"type":"integer"},"name":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"},"delivered":{"type":"boolean"}}}}},"required":["id","deliveryStatus"]}}},"required":["id","messages"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Mark \"no reply needed\" (channels that have it)"}},"/threads/{id}/draft":{"post":{"description":"Stores (replaces) the unsent draft on the conversation; the host sends it from the inbox.","operationId":"saveThreadDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadDraftDto"}}}},"responses":{"201":{"description":"The saved (unsent) draft.","content":{"application/json":{"schema":{"type":"object","properties":{"draft":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"body":{"type":"string"}},"required":["id","body"]}},"required":["draft"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Leave a draft reply for the host (nothing is sent)"}},"/attachments":{"post":{"description":"Image (JPG, PNG, WebP, GIF) or PDF, 10 MB. Answers `{id, name, mimeType, sizeBytes}`; pass `id` in `attachmentIds` within 24 hours.","operationId":"uploadAttachment","parameters":[],"responses":{"201":{"description":"The uploaded file; its id can be used in attachmentIds for 24 hours.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","description":"Pass in `attachmentIds` within 24 hours."},"name":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"}},"required":["id","name","mimeType","sizeBytes"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Upload a file for a reply (multipart `file`)"}},"/attachments/from-url":{"post":{"description":"Same limits and answer as POST /attachments.","operationId":"uploadAttachmentFromUrl","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAttachmentFromUrlDto"}}}},"responses":{"201":{"description":"The downloaded file; its id can be used in attachmentIds for 24 hours.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","description":"Pass in `attachmentIds` within 24 hours."},"name":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"integer"}},"required":["id","name","mimeType","sizeBytes"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Fetch a file from a public HTTPS URL for a reply"}},"/reviews":{"get":{"description":"Filters: propertyId, connectionId, channel, needsReply, minScore / maxScore (0..10), replyState. Keyset paging with `cursor`. `text` is null while a double-blind channel hides the review (`hiddenUntilYouReview`).","operationId":"listReviews","parameters":[],"responses":{"200":{"description":"Reviews, newest first, with cursor paging.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"channel":{"type":"string","example":"AIRBNB"},"guestName":{"type":"string","nullable":true},"score":{"type":"number","description":"0..10"},"rawScore":{"type":"string","example":"4.80/5"},"text":{"type":"string","nullable":true,"description":"Null while the channel hides it."},"submittedAt":{"type":"string","format":"date-time"},"replyState":{"type":"string","enum":["NONE","PENDING","SENT","FAILED"]},"replyDraft":{"type":"string","nullable":true},"hiddenUntilYouReview":{"type":"boolean"},"canReply":{"type":"boolean"},"canReviewGuest":{"type":"boolean"},"guestReviewDeadline":{"type":"string","format":"date-time","nullable":true}},"required":["id","propertyId","channel","score","replyState"]}},"cursor":{"type":"string","nullable":true},"total":{"type":"integer"}},"required":["items","cursor","total"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Channel reviews, newest first"}},"/reviews/scores":{"get":{"description":"Scores are on a 0..10 scale; `rawScore` is what the channel shows.","operationId":"getReviewScores","parameters":[],"responses":{"200":{"description":"Average, per platform, per category and monthly trend, on a 0..10 scale.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"propertyId":{"type":"string","nullable":true},"overall":{"type":"number"},"count":{"type":"integer"},"byChannel":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"channel":{"type":"string"},"score":{"type":"number"},"rawScore":{"type":"string"},"count":{"type":"integer"}}}},"categories":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"key":{"type":"string"},"score":{"type":"number"}}}},"trend":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"month":{"type":"string"},"score":{"type":"number"},"count":{"type":"integer"}}}}},"required":["overall","count","byChannel","categories","trend"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Average score, per channel, per category and the monthly trend"}},"/reviews/{id}":{"get":{"description":"Same shape as one `listReviews` item. `text` is null while a double-blind channel hides the review.","operationId":"getReview","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"One review with the state of the reply and of the guest review.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"channel":{"type":"string","example":"AIRBNB"},"guestName":{"type":"string","nullable":true},"score":{"type":"number","description":"0..10"},"rawScore":{"type":"string","example":"4.80/5"},"text":{"type":"string","nullable":true,"description":"Null while the channel hides it."},"submittedAt":{"type":"string","format":"date-time"},"replyState":{"type":"string","enum":["NONE","PENDING","SENT","FAILED"]},"replyDraft":{"type":"string","nullable":true},"hiddenUntilYouReview":{"type":"boolean"},"canReply":{"type":"boolean"},"canReviewGuest":{"type":"boolean"},"guestReviewDeadline":{"type":"string","format":"date-time","nullable":true}},"required":["id","propertyId","channel","score","replyState"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One review with its reply and guest-review state"}},"/reviews/{id}/reply":{"post":{"description":"Never sent from the API: stored as a draft, returns APPROVAL_REQUIRED and `approvalPath`.","operationId":"replyToReview","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewReplyBodyDto"}}}},"responses":{"201":{"description":"Always APPROVAL_REQUIRED from the API: the text becomes a draft.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["QUEUED","APPROVAL_REQUIRED"]},"review":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"channel":{"type":"string","example":"AIRBNB"},"guestName":{"type":"string","nullable":true},"score":{"type":"number","description":"0..10"},"rawScore":{"type":"string","example":"4.80/5"},"text":{"type":"string","nullable":true,"description":"Null while the channel hides it."},"submittedAt":{"type":"string","format":"date-time"},"replyState":{"type":"string","enum":["NONE","PENDING","SENT","FAILED"]},"replyDraft":{"type":"string","nullable":true},"hiddenUntilYouReview":{"type":"boolean"},"canReply":{"type":"boolean"},"canReviewGuest":{"type":"boolean"},"guestReviewDeadline":{"type":"string","format":"date-time","nullable":true}},"required":["id","propertyId","channel","score","replyState"]},"approvalPath":{"type":"string"},"summary":{"type":"string"}},"required":["status","review"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose a public reply"}},"/reviews/{id}/guest-review":{"post":{"description":"Never sent from the API: stored as a draft, returns APPROVAL_REQUIRED and `approvalPath`.","operationId":"reviewGuest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestReviewBodyDto"}}}},"responses":{"201":{"description":"Always APPROVAL_REQUIRED from the API: the guest review becomes a draft.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["QUEUED","APPROVAL_REQUIRED"]},"review":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"channel":{"type":"string","example":"AIRBNB"},"guestName":{"type":"string","nullable":true},"score":{"type":"number","description":"0..10"},"rawScore":{"type":"string","example":"4.80/5"},"text":{"type":"string","nullable":true,"description":"Null while the channel hides it."},"submittedAt":{"type":"string","format":"date-time"},"replyState":{"type":"string","enum":["NONE","PENDING","SENT","FAILED"]},"replyDraft":{"type":"string","nullable":true},"hiddenUntilYouReview":{"type":"boolean"},"canReply":{"type":"boolean"},"canReviewGuest":{"type":"boolean"},"guestReviewDeadline":{"type":"string","format":"date-time","nullable":true}},"required":["id","propertyId","channel","score","replyState"]},"approvalPath":{"type":"string"},"summary":{"type":"string"}},"required":["status","review"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose a review of the guest (double-blind channels)"}},"/units/{id}":{"put":{"description":"Name, description, kind, rooms, occupancy, size, beds, position and `facilityIds`. Prices and stay rules are not here: use PUT /units/:id/base-price and PUT /units/:id/listing-settings. Idempotency-Key header recommended.","operationId":"updateUnit","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Unit id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUnitDto"}}}},"responses":{"200":{"description":"The unit after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"countOfRooms":{"type":"integer"},"occAdults":{"type":"integer"},"defaultOccupancy":{"type":"integer"},"facilityIds":{"type":"array","items":{"type":"string"}}},"required":["id","propertyId","name"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Update a unit"},"delete":{"description":"Soft delete: the unit and its rate plans leave the calendar and the bill; the host can restore it in the app. Existing bookings stay.","operationId":"deleteUnit","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Unit id in this workspace."}],"responses":{"200":{"description":"The deleted unit (it can be restored in the app).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"propertyId":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"countOfRooms":{"type":"integer"},"occAdults":{"type":"integer"},"defaultOccupancy":{"type":"integer"},"facilityIds":{"type":"array","items":{"type":"string"}}},"required":["id","propertyId","name"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Delete a unit"}},"/amenities":{"get":{"description":"The amenity labels a unit `facilityIds` (and the website amenity list) may hold, grouped. Mapped onto each channel’s facility list at push time.","operationId":"listAmenities","parameters":[],"responses":{"200":{"description":"The amenities, grouped.","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"key":{"type":"string"},"label":{"type":"string"},"amenities":{"type":"array","items":{"type":"string"}}}}},"ids":{"type":"array","items":{"type":"string"}}},"required":["groups","ids"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Amenities catalogue"}},"/properties/{id}/photos":{"get":{"description":"The property gallery in display order, cover first.","operationId":"getPropertyPhotos","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"responses":{"200":{"description":"The property's gallery, in display order.","content":{"application/json":{"schema":{"type":"object","properties":{"photos":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","nullable":true},"url":{"type":"string"},"variants":{"type":"object","additionalProperties":true},"alt":{"type":"string","nullable":true},"isCover":{"type":"boolean"}},"required":["url","isCover"]}}},"required":["photos"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Property photos"},"put":{"description":"Replaces the gallery with this ordered list. Items are media ids from POST /media/from-url (or photos already in the list). `isCover` marks the cover, else the first. Pushed to channels that take content. Idempotency-Key header recommended.","operationId":"setPropertyPhotos","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutPhotosDto"}}}},"responses":{"200":{"description":"The property's gallery after saving.","content":{"application/json":{"schema":{"type":"object","properties":{"photos":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","nullable":true},"url":{"type":"string"},"variants":{"type":"object","additionalProperties":true},"alt":{"type":"string","nullable":true},"isCover":{"type":"boolean"}},"required":["url","isCover"]}}},"required":["photos"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set or reorder property photos"}},"/properties/{id}/units/{unitId}/photos":{"get":{"description":"One unit’s own gallery in display order.","operationId":"getUnitPhotos","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"},"description":"Unit id under that property."}],"responses":{"200":{"description":"The unit's gallery, in display order.","content":{"application/json":{"schema":{"type":"object","properties":{"photos":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","nullable":true},"url":{"type":"string"},"variants":{"type":"object","additionalProperties":true},"alt":{"type":"string","nullable":true},"isCover":{"type":"boolean"}},"required":["url","isCover"]}}},"required":["photos"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Unit photos"},"put":{"description":"Replaces one unit’s gallery with this ordered list (same items as the property list). Idempotency-Key header recommended.","operationId":"setUnitPhotos","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"},"description":"Unit id under that property."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutUnitPhotosDto"}}}},"responses":{"200":{"description":"The unit's gallery after saving.","content":{"application/json":{"schema":{"type":"object","properties":{"photos":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","nullable":true},"url":{"type":"string"},"variants":{"type":"object","additionalProperties":true},"alt":{"type":"string","nullable":true},"isCover":{"type":"boolean"}},"required":["url","isCover"]}}},"required":["photos"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set or reorder unit photos"}},"/media/from-url":{"post":{"description":"Downloads one public HTTPS image (JPG, PNG, WebP or HEIC, at most 2 MB) into the media library and returns its id and URLs. It attaches nothing: put the id into PUT /properties/:id/photos. Private and internal addresses are refused.","operationId":"uploadMediaFromUrl","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaFromUrlDto"}}}},"responses":{"200":{"description":"The image saved to the media library.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"url":{"type":"string"},"variants":{"type":"object","additionalProperties":true},"width":{"type":"integer"},"height":{"type":"integer"},"bytes":{"type":"integer"}},"required":["id","url"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Upload a photo from a URL"}},"/properties/{id}/house-rules":{"get":{"description":"The flags (children, infants, pets, smoking, events, quiet hours, max guests), the host’s own text, the website text, the text guests read and its `source` (property, website or generated), and per-channel status.","operationId":"getHouseRules","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"responses":{"200":{"description":"House rules: switches, the host's own text, the text the guest sees and where it comes from.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"propertyId":{"type":"string"},"allowsChildren":{"type":"boolean"},"allowsInfants":{"type":"boolean"},"allowsPets":{"type":"boolean"},"allowsSmoking":{"type":"boolean"},"allowsEvents":{"type":"boolean"},"quietHoursFrom":{"type":"string","nullable":true},"quietHoursUntil":{"type":"string","nullable":true},"maxGuests":{"type":"integer","nullable":true},"customText":{"type":"string","nullable":true},"websiteText":{"type":"string"},"text":{"type":"string"},"source":{"type":"string","enum":["property","website","generated"]},"channels":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["propertyId","text","source"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"House rules"},"put":{"description":"Any of the flags and/or `houseRulesText` (the host’s own words; wins over the website copy and the generated sentence; \"\" or null clears it). Flag changes are pushed to channels that take guest controls (Airbnb); others are manual. Idempotency-Key header recommended.","operationId":"setHouseRules","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHouseRulesDto"}}}},"responses":{"200":{"description":"House rules after saving.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"propertyId":{"type":"string"},"allowsChildren":{"type":"boolean"},"allowsInfants":{"type":"boolean"},"allowsPets":{"type":"boolean"},"allowsSmoking":{"type":"boolean"},"allowsEvents":{"type":"boolean"},"quietHoursFrom":{"type":"string","nullable":true},"quietHoursUntil":{"type":"string","nullable":true},"maxGuests":{"type":"integer","nullable":true},"customText":{"type":"string","nullable":true},"websiteText":{"type":"string"},"text":{"type":"string"},"source":{"type":"string","enum":["property","website","generated"]},"channels":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["propertyId","text","source"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set house rules"}},"/properties/{id}/website":{"get":{"description":"The direct-booking website of the property: status, URL, languages, and per language the title, tagline, description, house rules, arrival info, contact and SEO text. `website: null` when the property has none (creating one happens in the app). Never creates anything.","operationId":"getWebsiteInfo","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"responses":{"200":{"description":"The website's state and its texts per language. Creates no site.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"property":{"type":"object","additionalProperties":true},"website":{"type":"object","additionalProperties":true,"nullable":true},"info":{"type":"object","additionalProperties":true,"nullable":true},"propertyHouseRules":{"type":"string"}},"required":["property","website"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Website info"},"put":{"description":"The words of an existing website, one `language` (default hu) per call: title, tagline, description, houseRules, arrivalInfo, contactEmail, contactPhone, seoDescription. 404 when the property has no website. Publishing, template, photos and domain stay in the app. Idempotency-Key header recommended.","operationId":"updateWebsiteInfo","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Property id in this workspace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebsiteInfoDto"}}}},"responses":{"200":{"description":"Before / after and the website (applied: false on a dry run).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"applied":{"type":"boolean"},"language":{"type":"string"},"changed":{"type":"array","items":{"type":"string"}},"before":{"type":"object","additionalProperties":true},"after":{"type":"object","additionalProperties":true},"website":{"type":"object","additionalProperties":true}},"required":["applied","language","before","after"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Update website info"}},"/connections/{id}/lane-setup":{"get":{"description":"Step, generation, imported bookings and errors of a lane-native (Hostemi) connection. Read only.","operationId":"getConnectionSetup","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"The platform's go-live state (step, generation, errors).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"step":{"type":"string","nullable":true},"lifecycle":{"type":"object","additionalProperties":true}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Go-live state of a channel"}},"/connections/{id}/test":{"post":{"description":"Asks the channel manager whether the hotel id / credentials work. Channels connected by OAuth answer 400 OAUTH_CHANNEL; a channel this account cannot carry answers 409.","operationId":"testConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"The connection test's answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channel":{"type":"string"},"result":{"nullable":true}},"required":["connectionId","channel"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Test a channel connection"}},"/connections/{id}/resync":{"post":{"description":"Queues a full re-push for this connection (`scope=connection`, default) or everything of the property on every channel (`scope=property`). Repeated calls coalesce into one job.","operationId":"resyncConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"The full resend, queued.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"jobId":{"type":"string"},"scope":{"type":"string","enum":["connection","property"]}},"required":["connectionId","jobId","scope"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Response","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Re-push prices and availability to a channel"}},"/connections/{id}/import":{"post":{"description":"Pulls the channel’s rooms, rates and photos into local units and rate plans; existing names are skipped. Channels mapped listing by listing (OAuth) answer 400. Idempotency-Key header recommended.","operationId":"importConnectionListings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"The imported units and rate plans (existing names are skipped).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Import rooms and rates from a channel"}},"/connections/recover":{"post":{"description":"`since` (ISO 8601, at most 90 days ago): queues one recovery of channel bookings for the workspace. Already known bookings are not duplicated.","operationId":"recoverBookings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingRecoveryDto"}}}},"responses":{"200":{"description":"The booking recovery, queued.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"jobId":{"type":"string"},"since":{"type":"string","format":"date-time"}},"required":["jobId","since"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Response","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Recover channel bookings after an outage"}},"/connections/connect-start":{"post":{"description":"Connecting needs the host (channel sign-in or hotel id in the extranet). Returns HUMAN_STEP and the page that starts it. Creates nothing.","operationId":"startConnection","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectStartDto"}}}},"responses":{"200":{"description":"HUMAN_STEP: the page where the host starts connecting.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["HUMAN_STEP"]},"applied":{"type":"boolean","enum":[false]},"url":{"type":"string"},"path":{"type":"string"},"instruction":{"type":"string"}},"required":["status","url"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Start connecting a channel (link for the host)"}},"/connections/{id}/pause":{"post":{"description":"Never executed from the API: returns APPROVAL_REQUIRED, a preview and approvalUrl (the channel page where the host pauses it).","operationId":"pauseConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"Always APPROVAL_REQUIRED, pointing at the platform's page.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["RESERVATION_CANCEL","PAYMENT_REFUND","CONNECTION_PAUSE","CONNECTION_ACTIVATE","CONNECTION_GO_LIVE","CONNECTION_REMAP"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalPath":{"type":"string","example":"/app/bookings/res_123"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/bookings/res_123"},"instruction":{"type":"string"}},"required":["status","applied","action","summary","preview","approvalPath","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose pausing a channel"}},"/connections/{id}/activate":{"post":{"description":"Never executed from the API: returns APPROVAL_REQUIRED, a preview and approvalUrl.","operationId":"activateConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"Always APPROVAL_REQUIRED, pointing at the platform's page.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["RESERVATION_CANCEL","PAYMENT_REFUND","CONNECTION_PAUSE","CONNECTION_ACTIVATE","CONNECTION_GO_LIVE","CONNECTION_REMAP"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalPath":{"type":"string","example":"/app/bookings/res_123"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/bookings/res_123"},"instruction":{"type":"string"}},"required":["status","applied","action","summary","preview","approvalPath","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose activating a channel"}},"/connections/{id}/go-live":{"post":{"description":"Never executed from the API: returns APPROVAL_REQUIRED with the current setup state and approvalUrl, where the host starts the go-live.","operationId":"goLiveConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaneGoLiveDto"}}}},"responses":{"200":{"description":"Always APPROVAL_REQUIRED, with the go-live state in the preview.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["RESERVATION_CANCEL","PAYMENT_REFUND","CONNECTION_PAUSE","CONNECTION_ACTIVATE","CONNECTION_GO_LIVE","CONNECTION_REMAP"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalPath":{"type":"string","example":"/app/bookings/res_123"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/bookings/res_123"},"instruction":{"type":"string"}},"required":["status","applied","action","summary","preview","approvalPath","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose taking a channel live"}},"/connections/{id}/lane-setup/plan":{"put":{"description":"Validated, then returned as APPROVAL_REQUIRED with the mapping as the preview: a mapping (or a remap) is confirmed by the host on the channel page.","operationId":"proposeConnectionPlan","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveLanePlanDto"}}}},"responses":{"200":{"description":"Always APPROVAL_REQUIRED, with the mapping in the preview.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["RESERVATION_CANCEL","PAYMENT_REFUND","CONNECTION_PAUSE","CONNECTION_ACTIVATE","CONNECTION_GO_LIVE","CONNECTION_REMAP"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalPath":{"type":"string","example":"/app/bookings/res_123"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/bookings/res_123"},"instruction":{"type":"string"}},"required":["status","applied","action","summary","preview","approvalPath","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose a room and rate mapping for a channel"}},"/connections/{id}":{"delete":{"description":"Always 403 HUMAN_ONLY with appUrl: only the host disconnects a channel, in the app.","operationId":"disconnectConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"Never succeeds: always 403 HUMAN_ONLY with this body.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"code":{"type":"string","enum":["HUMAN_ONLY"]},"action":{"type":"string"},"message":{"type":"string"},"appPath":{"type":"string"},"appUrl":{"type":"string"}},"required":["code","action","appUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Disconnect a channel (human only)"},"get":{"description":"Status, last sync and last error; the mappings (`?kind=CONTENT` default, `ALL`, or one kind); the newest sync events (`?limit`, default 100). No credentials.","operationId":"getConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"One platform connection with its mappings and latest events.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"channel":{"type":"string"},"status":{"type":"string"},"mappings":{"type":"array","items":{"type":"object","additionalProperties":true}},"events":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["id","channel","status","mappings","events"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One channel connection with its mappings and recent events."}},"/connections/{id}/settings":{"get":{"description":"`fields[]` { key (minStayType, syncLogic), value, options }; `state` synced | pending | error; `stayNightsCap` (longer stay rules reach the platform as this many nights); `realtime` (false: the platform does not sell from Hostemi's availability).","operationId":"getConnectionSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"key":{"type":"string"},"value":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"string"}}},"required":["key","options"]}},"state":{"type":"string","enum":["synced","pending","error"]},"error":{"type":"string","nullable":true},"stayNightsCap":{"type":"integer","nullable":true},"realtime":{"type":"boolean","nullable":true}},"required":["connectionId","fields","state"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"description":"OK"},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"A platform's own settings for all its listings"},"put":{"operationId":"setConnectionSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectionSettingsDto"}}}},"responses":{"200":{"description":"The platform's settings after the change (queued for the live platform), as GET /connections/:id/settings; or 202 APPROVAL_REQUIRED.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"fields":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{}}},"state":{"type":"string"}},"required":["connectionId","fields"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change a platform's own settings (minimum stay counts, sync mode)"}},"/connections/{id}/allocation-mode/check":{"post":{"description":"Changes nothing on the platform. `realtime` true / false / null (not reported), `checkedAt`.","operationId":"checkConnectionAllocation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"Whether the platform sells from Hostemi's availability (real-time allocation), read again now; null when the platform does not say.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"realtime":{"type":"boolean","nullable":true},"checkedAt":{"type":"string","nullable":true}},"required":["connectionId","realtime"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Read again whether the platform sells from Hostemi's availability (real-time allocation)"}},"/connections/{id}/hold-backs":{"get":{"description":"`{ unitId, unitName, countOfRooms, rooms, sentRooms, state, error, effect }`. Hostemi's own availability is never changed by it.","operationId":"listHoldBacks","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."}],"responses":{"200":{"description":"Rooms held back from this platform, per listing with several rooms (preview platforms.holdBack).","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"unitName":{"type":"string"},"countOfRooms":{"type":"integer"},"rooms":{"type":"integer"},"sentRooms":{"type":"integer"},"state":{"type":"string","enum":["synced","pending","error"]},"effect":{"type":"object","additionalProperties":true,"properties":{"closedOnPlatform":{"type":"integer"},"horizonNights":{"type":"integer"}}}},"required":["unitId","rooms","state"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Rooms held back from this platform, per multi-room listing"}},"/connections/{id}/units/{unitId}/hold-back/preview":{"get":{"description":"Read only. `closedOnPlatform` = nights the platform would show as sold out, `firstClosedNight`, `bookedNights`.","operationId":"previewHoldBack","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"What holding that many rooms back would do on the platform, before saving.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"horizonNights":{"type":"integer"},"closedOnPlatform":{"type":"integer"},"firstClosedNight":{"type":"string","nullable":true},"bookedNights":{"type":"integer"}},"required":["closedOnPlatform"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"What holding `rooms` back from this platform would do"}},"/connections/{id}/units/{unitId}/hold-back":{"put":{"description":"At most the listing's rooms minus one. Holding rooms back is approved by the host (it closes rooms there with no end date); queued and sent by its own queue.","operationId":"setHoldBack","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Channel connection id (GET /connections)."},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetHoldBackDto"}}}},"responses":{"200":{"description":"The listing on this platform after the change: rooms held back, what the platform has now, the effect; or 202 APPROVAL_REQUIRED.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"rooms":{"type":"integer"},"sentRooms":{"type":"integer"},"state":{"type":"string"},"effect":{"type":"object","additionalProperties":true,"properties":{}}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Hold rooms of one listing back from this platform (0 = none)"}},"/automations":{"get":{"description":"Each rule: trigger (RESERVATION_CONFIRMED, BEFORE_ARRIVAL, ARRIVAL_DAY, BEFORE_DEPARTURE, DEPARTURE_DAY, AFTER_DEPARTURE, RESERVATION_CANCELLED, FIRST_MESSAGE, BOOKING_REQUEST), offsetDays + sendTimeLocal (property-local HH:mm) for stay-anchored triggers, delayMinutes for the others, propertyIds (null = every property), channelFilter (empty = every source), delivery (EMAIL | CHANNEL_THREAD | BOTH), enabled.","operationId":"listAutomations","parameters":[],"responses":{"200":{"description":"The scheduled messages with their statistics, and the open proposals.","content":{"application/json":{"schema":{"type":"object","properties":{"automations":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"trigger":{"type":"string","enum":["RESERVATION_CONFIRMED","BEFORE_ARRIVAL","ARRIVAL_DAY","BEFORE_DEPARTURE","DEPARTURE_DAY","AFTER_DEPARTURE","RESERVATION_CANCELLED","FIRST_MESSAGE","BOOKING_REQUEST"]},"offsetDays":{"type":"integer"},"sendTimeLocal":{"type":"string","example":"15:00"},"delayMinutes":{"type":"integer"},"templateId":{"type":"string"},"templateName":{"type":"string","nullable":true},"propertyIds":{"type":"array","items":{"type":"string"},"nullable":true},"channelFilter":{"type":"array","items":{"type":"string"}},"delivery":{"type":"string","enum":["EMAIL","CHANNEL_THREAD","BOTH"]},"isDefault":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"},"stats":{"type":"object","additionalProperties":true},"createdBy":{"type":"string","nullable":true},"waitingForHost":{"type":"boolean"},"proposalIds":{"type":"array","items":{"type":"string"}}}}},"proposals":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["AUTOMATION_UPDATE","AUTOMATION_DELETE","TEMPLATE_UPDATE"]},"targetType":{"type":"string","enum":["automation","template"]},"targetId":{"type":"string"},"targetName":{"type":"string"},"summary":{"type":"string"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"field":{"type":"string"},"before":{},"after":{}},"required":["field"]}},"by":{"type":"string","enum":["host","assistant","mcp","api"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"stale":{"type":"boolean"},"resolution":{"type":"string","enum":["APPLIED","DISMISSED"],"nullable":true}},"required":["id","kind","targetId","changes"]}}},"required":["automations","proposals"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Automatic message rules, with their stats and open proposals"},"post":{"description":"Needs name, trigger, templateId. Saved OFF: answers SAVED_OFF with `approvalUrl`, where the host reads it and turns it on. Once on it runs for every matching booking without asking again. Send `Idempotency-Key` to retry safely.","operationId":"createAutomation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpsertAutomationDto"}}}},"responses":{"201":{"description":"Kikapcsolva mentve (SAVED_OFF), approvalUrl-lel.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["SAVED_OFF","DELETED","APPROVAL_REQUIRED"]},"applied":{"type":"boolean"},"automation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"trigger":{"type":"string","enum":["RESERVATION_CONFIRMED","BEFORE_ARRIVAL","ARRIVAL_DAY","BEFORE_DEPARTURE","DEPARTURE_DAY","AFTER_DEPARTURE","RESERVATION_CANCELLED","FIRST_MESSAGE","BOOKING_REQUEST"]},"offsetDays":{"type":"integer"},"sendTimeLocal":{"type":"string","example":"15:00"},"delayMinutes":{"type":"integer"},"templateId":{"type":"string"},"templateName":{"type":"string","nullable":true},"propertyIds":{"type":"array","items":{"type":"string"},"nullable":true},"channelFilter":{"type":"array","items":{"type":"string"}},"delivery":{"type":"string","enum":["EMAIL","CHANNEL_THREAD","BOTH"]},"isDefault":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","enabled","trigger","templateId","delivery"]},"proposalId":{"type":"string"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"field":{"type":"string"},"before":{},"after":{}},"required":["field"]}},"summary":{"type":"string"},"approvalUrl":{"type":"string"},"instruction":{"type":"string"}},"required":["status","applied","summary"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Create a rule (saved switched off)"}},"/automations/proposals/{proposalId}":{"get":{"description":"`resolution` is null while open, then APPLIED or DISMISSED. `stale` = the rule changed since; it can no longer be applied.","operationId":"getAutomationProposal","parameters":[{"name":"proposalId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"One proposal: what it changes, and whether the host approved it.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["AUTOMATION_UPDATE","AUTOMATION_DELETE","TEMPLATE_UPDATE"]},"targetType":{"type":"string","enum":["automation","template"]},"targetId":{"type":"string"},"targetName":{"type":"string"},"summary":{"type":"string"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"field":{"type":"string"},"before":{},"after":{}},"required":["field"]}},"by":{"type":"string","enum":["host","assistant","mcp","api"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"stale":{"type":"boolean"},"resolution":{"type":"string","enum":["APPLIED","DISMISSED"],"nullable":true}},"required":["id","kind","targetId","changes"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One proposal: what it changes and whether the host applied it"}},"/automations/{id}":{"get":{"description":"The same fields as one listAutomations item, without stats.","operationId":"getAutomation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"One scheduled message.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"trigger":{"type":"string","enum":["RESERVATION_CONFIRMED","BEFORE_ARRIVAL","ARRIVAL_DAY","BEFORE_DEPARTURE","DEPARTURE_DAY","AFTER_DEPARTURE","RESERVATION_CANCELLED","FIRST_MESSAGE","BOOKING_REQUEST"]},"offsetDays":{"type":"integer"},"sendTimeLocal":{"type":"string","example":"15:00"},"delayMinutes":{"type":"integer"},"templateId":{"type":"string"},"templateName":{"type":"string","nullable":true},"propertyIds":{"type":"array","items":{"type":"string"},"nullable":true},"channelFilter":{"type":"array","items":{"type":"string"}},"delivery":{"type":"string","enum":["EMAIL","CHANNEL_THREAD","BOTH"]},"isDefault":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","enabled","trigger","templateId","delivery"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One automatic message rule"},"put":{"description":"Partial: fields left out stay. A rule that is OFF is changed and stays off (SAVED_OFF). A rule that is ON is not changed: APPROVAL_REQUIRED with the exact before/after and `approvalUrl`. `enabled: true` is refused (AGENT_CANNOT_ENABLE); `enabled: false` proposes switching it off.","operationId":"updateAutomation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpsertAutomationDto"}}}},"responses":{"200":{"description":"SAVED_OFF for a rule that is off; APPROVAL_REQUIRED with the exact change for one that is on.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["SAVED_OFF","DELETED","APPROVAL_REQUIRED"]},"applied":{"type":"boolean"},"automation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"trigger":{"type":"string","enum":["RESERVATION_CONFIRMED","BEFORE_ARRIVAL","ARRIVAL_DAY","BEFORE_DEPARTURE","DEPARTURE_DAY","AFTER_DEPARTURE","RESERVATION_CANCELLED","FIRST_MESSAGE","BOOKING_REQUEST"]},"offsetDays":{"type":"integer"},"sendTimeLocal":{"type":"string","example":"15:00"},"delayMinutes":{"type":"integer"},"templateId":{"type":"string"},"templateName":{"type":"string","nullable":true},"propertyIds":{"type":"array","items":{"type":"string"},"nullable":true},"channelFilter":{"type":"array","items":{"type":"string"}},"delivery":{"type":"string","enum":["EMAIL","CHANNEL_THREAD","BOTH"]},"isDefault":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","enabled","trigger","templateId","delivery"]},"proposalId":{"type":"string"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"field":{"type":"string"},"before":{},"after":{}},"required":["field"]}},"summary":{"type":"string"},"approvalUrl":{"type":"string"},"instruction":{"type":"string"}},"required":["status","applied","summary"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change a rule (a rule that is on: a proposal)"},"delete":{"description":"A rule that is OFF is deleted (DELETED). A rule that is ON answers APPROVAL_REQUIRED.","operationId":"deleteAutomation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DELETED for a rule that is off; APPROVAL_REQUIRED for one that is on.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["SAVED_OFF","DELETED","APPROVAL_REQUIRED"]},"applied":{"type":"boolean"},"automation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"trigger":{"type":"string","enum":["RESERVATION_CONFIRMED","BEFORE_ARRIVAL","ARRIVAL_DAY","BEFORE_DEPARTURE","DEPARTURE_DAY","AFTER_DEPARTURE","RESERVATION_CANCELLED","FIRST_MESSAGE","BOOKING_REQUEST"]},"offsetDays":{"type":"integer"},"sendTimeLocal":{"type":"string","example":"15:00"},"delayMinutes":{"type":"integer"},"templateId":{"type":"string"},"templateName":{"type":"string","nullable":true},"propertyIds":{"type":"array","items":{"type":"string"},"nullable":true},"channelFilter":{"type":"array","items":{"type":"string"}},"delivery":{"type":"string","enum":["EMAIL","CHANNEL_THREAD","BOTH"]},"isDefault":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","enabled","trigger","templateId","delivery"]},"proposalId":{"type":"string"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"field":{"type":"string"},"before":{},"after":{}},"required":["field"]}},"summary":{"type":"string"},"approvalUrl":{"type":"string"},"instruction":{"type":"string"}},"required":["status","applied","summary"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Delete a rule (a rule that is on: a proposal)"}},"/templates":{"get":{"description":"`language` / `subject` / `body` is the default text; `bodies` holds the other languages. A guest gets their language, else English, else the default. Placeholders are `{{token}}`, see listTemplatePlaceholders.","operationId":"listTemplates","parameters":[],"responses":{"200":{"description":"The message templates in every language.","content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"language":{"type":"string","example":"en"},"subject":{"type":"string","nullable":true},"body":{"type":"string"},"bodies":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"language":{"type":"string"},"subject":{"type":"string","nullable":true},"body":{"type":"string"}},"required":["language","body"]}},"automationCount":{"type":"integer"}},"required":["id","name","body"]}}},"required":["templates"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Message templates with every language"},"post":{"description":"Needs name and body; `bodies` adds other languages. A new template reaches no guest until a rule sends it.","operationId":"createTemplate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpsertTemplateDto"}}}},"responses":{"201":{"description":"The new template (CREATED).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["CREATED","UPDATED","APPROVAL_REQUIRED"]},"applied":{"type":"boolean"},"template":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"language":{"type":"string","example":"en"},"subject":{"type":"string","nullable":true},"body":{"type":"string"},"bodies":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"language":{"type":"string"},"subject":{"type":"string","nullable":true},"body":{"type":"string"}},"required":["language","body"]}},"automationCount":{"type":"integer"}},"required":["id","name","body"]},"proposalId":{"type":"string"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"field":{"type":"string"},"before":{},"after":{}},"required":["field"]}},"summary":{"type":"string"},"approvalUrl":{"type":"string"}},"required":["status","applied"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Create a template (every language in one call)"}},"/templates/placeholders":{"get":{"description":"Use them as `{{key}}` in a subject or body, exactly as listed; `en` is the label (`hu` too where the workspace has one).","operationId":"listTemplatePlaceholders","parameters":[],"responses":{"200":{"description":"The {{token}} placeholders, each with an example.","content":{"application/json":{"schema":{"type":"object","properties":{"placeholders":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"key":{"type":"string"},"hu":{"type":"string"},"en":{"type":"string"},"example":{"type":"string"}},"required":["key"]}}},"required":["placeholders"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The `{{token}}` placeholders with an example each"}},"/templates/{id}":{"get":{"description":"The same shape as one listTemplates item.","operationId":"getTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Egy sablon minden nyelvvel.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"language":{"type":"string","example":"en"},"subject":{"type":"string","nullable":true},"body":{"type":"string"},"bodies":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"language":{"type":"string"},"subject":{"type":"string","nullable":true},"body":{"type":"string"}},"required":["language","body"]}},"automationCount":{"type":"integer"}},"required":["id","name","body"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One template with every language"},"put":{"description":"Partial; `bodies` given = exactly these other languages. A template no rule that is on sends is changed (UPDATED). Otherwise APPROVAL_REQUIRED with the exact changes and `approvalUrl`.","operationId":"updateTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpsertTemplateDto"}}}},"responses":{"200":{"description":"UPDATED, or APPROVAL_REQUIRED when a rule that is on sends it.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["CREATED","UPDATED","APPROVAL_REQUIRED"]},"applied":{"type":"boolean"},"template":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"language":{"type":"string","example":"en"},"subject":{"type":"string","nullable":true},"body":{"type":"string"},"bodies":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"language":{"type":"string"},"subject":{"type":"string","nullable":true},"body":{"type":"string"}},"required":["language","body"]}},"automationCount":{"type":"integer"}},"required":["id","name","body"]},"proposalId":{"type":"string"},"changes":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"field":{"type":"string"},"before":{},"after":{}},"required":["field"]}},"summary":{"type":"string"},"approvalUrl":{"type":"string"}},"required":["status","applied"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change a template (one that a rule that is on sends: a proposal)"},"delete":{"description":"Refused with 409 TEMPLATE_IN_USE while a rule sends it.","operationId":"deleteTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The deleted template.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Delete a message template."}},"/templates/{id}/render":{"post":{"description":"Against `reservationId` when given, else sample values. Sends nothing.","operationId":"renderTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateLanguageDto"}}}},"responses":{"201":{"description":"The filled-in subject and text in one language. Sends nothing.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"subject":{"type":"string","nullable":true},"body":{"type":"string"},"sample":{"type":"boolean"},"language":{"type":"string"}},"required":["body","language"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Render one template in one language"}},"/scheduled-messages":{"get":{"description":"Window `from`..`to` (ISO; default now to 14 days ahead), filters status (PENDING | SENT | SKIPPED | CANCELLED | FAILED), propertyId, reservationId, automationId. `error` says why a message was skipped or failed.","operationId":"listScheduledMessages","parameters":[],"responses":{"200":{"description":"The scheduled and sent messages in the time window.","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"messages":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"scheduledFor":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["PENDING","SENT","SKIPPED","CANCELLED","FAILED"]},"error":{"type":"string","nullable":true},"sentMessageId":{"type":"string","nullable":true},"delivery":{"type":"string","nullable":true},"automation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"trigger":{"type":"string"}}},"templateName":{"type":"string","nullable":true},"reservation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"code":{"type":"string"},"propertyId":{"type":"string"},"source":{"type":"string"},"guestName":{"type":"string","nullable":true}}},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","scheduledFor","status"]}}},"required":["from","to","messages"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"What the automations will send, and what they sent"}},"/scheduled-messages/{id}/skip":{"post":{"description":"Only that booking: the rule keeps running for every other booking.","operationId":"skipScheduledMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"The message after skipping (SKIPPED).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"scheduledFor":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["PENDING","SENT","SKIPPED","CANCELLED","FAILED"]},"error":{"type":"string","nullable":true},"sentMessageId":{"type":"string","nullable":true},"delivery":{"type":"string","nullable":true},"automation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"trigger":{"type":"string"}}},"templateName":{"type":"string","nullable":true},"reservation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"code":{"type":"string"},"propertyId":{"type":"string"},"source":{"type":"string"},"guestName":{"type":"string","nullable":true}}},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","scheduledFor","status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Do not send this one queued message"}},"/scheduled-messages/{id}/send-now":{"post":{"description":"Without `confirmSend: true` nothing is sent: answers CONFIRM_REQUIRED with the text. With it, sends now (a plan with automations).","operationId":"sendScheduledMessageNow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledSendNowDto"}}}},"responses":{"201":{"description":"Without confirmSend, CONFIRM_REQUIRED with the text; with it, the message sent.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"scheduledFor":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["PENDING","SENT","SKIPPED","CANCELLED","FAILED"]},"error":{"type":"string","nullable":true},"sentMessageId":{"type":"string","nullable":true},"delivery":{"type":"string","nullable":true},"automation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"trigger":{"type":"string"}}},"templateName":{"type":"string","nullable":true},"reservation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"code":{"type":"string"},"propertyId":{"type":"string"},"source":{"type":"string"},"guestName":{"type":"string","nullable":true}}},"updatedAt":{"type":"string","format":"date-time"},"sent":{"type":"boolean","enum":[false]},"message":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"scheduledFor":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["PENDING","SENT","SKIPPED","CANCELLED","FAILED"]},"error":{"type":"string","nullable":true},"sentMessageId":{"type":"string","nullable":true},"delivery":{"type":"string","nullable":true},"automation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"trigger":{"type":"string"}}},"templateName":{"type":"string","nullable":true},"reservation":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"code":{"type":"string"},"propertyId":{"type":"string"},"source":{"type":"string"},"guestName":{"type":"string","nullable":true}}},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","scheduledFor","status"]},"preview":{"type":"object","additionalProperties":true,"properties":{"subject":{"type":"string","nullable":true},"body":{"type":"string"},"language":{"type":"string"}}},"instruction":{"type":"string"}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Send one queued message now"}},"/connections/{id}/listings":{"get":{"description":"Per unit: the channel policy (own code, effective code, options or \"extranet\"), instant-book modes, published state, pending work and promotions.","operationId":"listChannelListings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Every mapped unit of the connection on this platform.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"propertyId":{"type":"string"},"channelCode":{"type":"string"},"channelName":{"type":"string"},"mapped":{"type":"boolean"},"listingId":{"type":"string","nullable":true},"policy":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["native","extranet","none"]},"code":{"type":"string","nullable":true},"effectiveCode":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object"}},"extranetUrl":{"type":"string","nullable":true}}},"instantBook":{"type":"object","additionalProperties":true,"properties":{"modes":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","nullable":true},"effectiveMode":{"type":"string","nullable":true}}},"settings":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["n/a","synced","pending","error"]},"error":{"type":"string","nullable":true}}},"publish":{"type":"object","additionalProperties":true,"properties":{"supported":{"type":"boolean"},"published":{"type":"boolean","nullable":true},"pending":{"type":"string","enum":["publish","unpublish"],"nullable":true},"error":{"type":"string","nullable":true},"reasonRequired":{"type":"boolean"}}},"promotions":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}}}},"required":["connectionId","unitId","channelCode","policy","instantBook","publish","promotions"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Every unit of a connection as a channel listing"}},"/connections/{id}/units/{unitId}/listing":{"get":{"description":"Cancellation policy, instant book, publish state and promotions of one unit on this connection.","operationId":"getChannelListing","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"One unit on one platform: cancellation policy, instant booking, publishing, promotions.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"propertyId":{"type":"string"},"channelCode":{"type":"string"},"channelName":{"type":"string"},"mapped":{"type":"boolean"},"listingId":{"type":"string","nullable":true},"policy":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["native","extranet","none"]},"code":{"type":"string","nullable":true},"effectiveCode":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object"}},"extranetUrl":{"type":"string","nullable":true}}},"instantBook":{"type":"object","additionalProperties":true,"properties":{"modes":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","nullable":true},"effectiveMode":{"type":"string","nullable":true}}},"settings":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["n/a","synced","pending","error"]},"error":{"type":"string","nullable":true}}},"publish":{"type":"object","additionalProperties":true,"properties":{"supported":{"type":"boolean"},"published":{"type":"boolean","nullable":true},"pending":{"type":"string","enum":["publish","unpublish"],"nullable":true},"error":{"type":"string","nullable":true},"reasonRequired":{"type":"boolean"}}},"promotions":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}}}},"required":["connectionId","unitId","channelCode","policy","instantBook","publish","promotions"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"One unit on one channel"}},"/connections/{id}/units/{unitId}/policy":{"put":{"description":"Codes come from `policy.options`; modes from `instantBook.modes` (\"OFF\" is refused where the channel cannot turn instant booking off). null = follow the property. Queued for the worker.","operationId":"setChannelListingPolicy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelListingPolicyDto"}}}},"responses":{"200":{"description":"The listing after saving; the update is queued.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"propertyId":{"type":"string"},"channelCode":{"type":"string"},"channelName":{"type":"string"},"mapped":{"type":"boolean"},"listingId":{"type":"string","nullable":true},"policy":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["native","extranet","none"]},"code":{"type":"string","nullable":true},"effectiveCode":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object"}},"extranetUrl":{"type":"string","nullable":true}}},"instantBook":{"type":"object","additionalProperties":true,"properties":{"modes":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","nullable":true},"effectiveMode":{"type":"string","nullable":true}}},"settings":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["n/a","synced","pending","error"]},"error":{"type":"string","nullable":true}}},"publish":{"type":"object","additionalProperties":true,"properties":{"supported":{"type":"boolean"},"published":{"type":"boolean","nullable":true},"pending":{"type":"string","enum":["publish","unpublish"],"nullable":true},"error":{"type":"string","nullable":true},"reasonRequired":{"type":"boolean"}}},"promotions":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}}}},"required":["connectionId","unitId","channelCode","policy","instantBook","publish","promotions"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"The unit's own cancellation policy code / instant-book mode on this channel"}},"/connections/{id}/units/{unitId}/unpublish-reasons":{"get":{"description":"Read live from the channel. `required: false` when the channel asks for no reason.","operationId":"getUnpublishReasons","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}},{"name":"locale","required":false,"in":"query","description":"Language of the question texts, when the channel offers it.","schema":{"example":"en","type":"string"}}],"responses":{"200":{"description":"The platform's reasons for withdrawing a listing.","content":{"application/json":{"schema":{"type":"object","properties":{"reasons":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value"]}},"required":{"type":"boolean"}},"required":["reasons","required"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The channel's unpublish reasons (value + label)"}},"/connections/{id}/units/{unitId}/publish":{"post":{"description":"Never done from the API: returns APPROVAL_REQUIRED and `approvalUrl`.","operationId":"publishChannelListing","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"Always APPROVAL_REQUIRED from the API, with approvalUrl.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED","QUEUED"]},"applied":{"type":"boolean"},"action":{"type":"string","enum":["LISTING_PUBLISH","LISTING_UNPUBLISH"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalUrl":{"type":"string"},"instruction":{"type":"string"},"listing":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"propertyId":{"type":"string"},"channelCode":{"type":"string"},"channelName":{"type":"string"},"mapped":{"type":"boolean"},"listingId":{"type":"string","nullable":true},"policy":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["native","extranet","none"]},"code":{"type":"string","nullable":true},"effectiveCode":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object"}},"extranetUrl":{"type":"string","nullable":true}}},"instantBook":{"type":"object","additionalProperties":true,"properties":{"modes":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","nullable":true},"effectiveMode":{"type":"string","nullable":true}}},"settings":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["n/a","synced","pending","error"]},"error":{"type":"string","nullable":true}}},"publish":{"type":"object","additionalProperties":true,"properties":{"supported":{"type":"boolean"},"published":{"type":"boolean","nullable":true},"pending":{"type":"string","enum":["publish","unpublish"],"nullable":true},"error":{"type":"string","nullable":true},"reasonRequired":{"type":"boolean"}}},"promotions":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}}}},"required":["connectionId","unitId","channelCode","policy","instantBook","publish","promotions"]}},"required":["status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose publishing the listing"}},"/connections/{id}/units/{unitId}/unpublish":{"post":{"description":"Never done from the API: returns APPROVAL_REQUIRED and `approvalUrl`. `reason` from unpublish-reasons.","operationId":"unpublishChannelListing","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnpublishListingDto"}}}},"responses":{"201":{"description":"Always APPROVAL_REQUIRED from the API, with approvalUrl.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED","QUEUED"]},"applied":{"type":"boolean"},"action":{"type":"string","enum":["LISTING_PUBLISH","LISTING_UNPUBLISH"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalUrl":{"type":"string"},"instruction":{"type":"string"},"listing":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"propertyId":{"type":"string"},"channelCode":{"type":"string"},"channelName":{"type":"string"},"mapped":{"type":"boolean"},"listingId":{"type":"string","nullable":true},"policy":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["native","extranet","none"]},"code":{"type":"string","nullable":true},"effectiveCode":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object"}},"extranetUrl":{"type":"string","nullable":true}}},"instantBook":{"type":"object","additionalProperties":true,"properties":{"modes":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","nullable":true},"effectiveMode":{"type":"string","nullable":true}}},"settings":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["n/a","synced","pending","error"]},"error":{"type":"string","nullable":true}}},"publish":{"type":"object","additionalProperties":true,"properties":{"supported":{"type":"boolean"},"published":{"type":"boolean","nullable":true},"pending":{"type":"string","enum":["publish","unpublish"],"nullable":true},"error":{"type":"string","nullable":true},"reasonRequired":{"type":"boolean"}}},"promotions":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}}}},"required":["connectionId","unitId","channelCode","policy","instantBook","publish","promotions"]}},"required":["status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Propose unpublishing the listing"}},"/connections/{id}/units/{unitId}/promotions":{"get":{"description":"`types` the channel offers, `items` with the wanted state and the channel status.","operationId":"getListingPromotions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}},{"name":"refresh","required":false,"in":"query","description":"Read the current state from the channel first (default: stored state only).","schema":{"type":"string"}}],"responses":{"200":{"description":"The listing's promotions on this platform.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}},"required":["types","items"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Promotions of the listing; `refresh=1` reads the channel first"},"put":{"description":"Types from `promotions.types`. Queued for the worker; an expired promotion cannot be switched back on.","operationId":"setListingPromotions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetListingPromotionsDto"}}}},"responses":{"200":{"description":"The listing after saving; the update is queued.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"propertyId":{"type":"string"},"channelCode":{"type":"string"},"channelName":{"type":"string"},"mapped":{"type":"boolean"},"listingId":{"type":"string","nullable":true},"policy":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["native","extranet","none"]},"code":{"type":"string","nullable":true},"effectiveCode":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object"}},"extranetUrl":{"type":"string","nullable":true}}},"instantBook":{"type":"object","additionalProperties":true,"properties":{"modes":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","nullable":true},"effectiveMode":{"type":"string","nullable":true}}},"settings":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["n/a","synced","pending","error"]},"error":{"type":"string","nullable":true}}},"publish":{"type":"object","additionalProperties":true,"properties":{"supported":{"type":"boolean"},"published":{"type":"boolean","nullable":true},"pending":{"type":"string","enum":["publish","unpublish"],"nullable":true},"error":{"type":"string","nullable":true},"reasonRequired":{"type":"boolean"}}},"promotions":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}}}},"required":["connectionId","unitId","channelCode","policy","instantBook","publish","promotions"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Switch promotions on / off"}},"/connections/{id}/units/{unitId}/extranet-deals":{"put":{"description":"Booking.com Genius, Mobile rate, deals and the like are set in the platform's extranet (the channel manager cannot). Saying which ones run keeps advice right and stops Hostemi discounting the same thing twice. Display only, nothing is sent.","operationId":"setListingExtranetDeals","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetExtranetDealsDto"}}}},"responses":{"200":{"description":"The listing after saving, with the offers running in the platform's extranet. Display only; nothing goes to the platform.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"propertyId":{"type":"string"},"channelCode":{"type":"string"},"channelName":{"type":"string"},"mapped":{"type":"boolean"},"listingId":{"type":"string","nullable":true},"policy":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["native","extranet","none"]},"code":{"type":"string","nullable":true},"effectiveCode":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object"}},"extranetUrl":{"type":"string","nullable":true}}},"instantBook":{"type":"object","additionalProperties":true,"properties":{"modes":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","nullable":true},"effectiveMode":{"type":"string","nullable":true}}},"settings":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["n/a","synced","pending","error"]},"error":{"type":"string","nullable":true}}},"publish":{"type":"object","additionalProperties":true,"properties":{"supported":{"type":"boolean"},"published":{"type":"boolean","nullable":true},"pending":{"type":"string","enum":["publish","unpublish"],"nullable":true},"error":{"type":"string","nullable":true},"reasonRequired":{"type":"boolean"}}},"promotions":{"type":"object","additionalProperties":true,"properties":{"types":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"enabled":{"type":"boolean"},"status":{"type":"string","nullable":true}}}}}}},"required":["connectionId","unitId","channelCode","policy","instantBook","publish","promotions"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Deals the host runs in the platform's own extranet"}},"/connections/{id}/units/{unitId}/platform-settings":{"get":{"description":"Occupancy taxes, long-stay cancellation, guest expectations, check-out tasks, Instant Book welcome message, pets, children, extra fees and the request switches. `keys` = what the platform takes (empty = none), `risky` = what the host approves, `settings` = what the host set, `options`, `taxes.send` / `taxes.notSent` (from the listing's tax rules).","operationId":"getListingPlatformSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"A listing's settings only this platform has (Airbnb today), with the allowed values and what the occupancy-tax push would send.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"unitId":{"type":"string"},"channelName":{"type":"string"},"keys":{"type":"array","items":{"type":"string"}},"risky":{"type":"array","items":{"type":"string"}},"settings":{"type":"object","additionalProperties":true,"properties":{}},"sending":{"type":"boolean"},"mapped":{"type":"boolean"},"taxes":{"type":"object","additionalProperties":true,"properties":{"currency":{"type":"string"},"send":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{}}},"notSent":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{}}}}},"options":{"type":"object","additionalProperties":true,"properties":{}},"opportunities":{"type":"boolean"}},"required":["connectionId","unitId","keys","settings"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"A listing's settings only this platform has (Airbnb)"},"put":{"description":"`settings` is a patch: a key left out stays, null stops managing it from Hostemi. taxes, fees and longStayPolicy are proposed (202 / APPROVAL_REQUIRED): the host approves them in the app. The rest is queued for the worker.","operationId":"setListingPlatformSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPlatformSettingsDto"}}}},"responses":{"200":{"description":"`{ status: \"QUEUED\", platformSettings }`, or `APPROVAL_REQUIRED` with `summary` and `approvalUrl` for taxes, fees and the long-stay policy.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["QUEUED","APPROVAL_REQUIRED"]},"platformSettings":{"type":"object","additionalProperties":true,"properties":{}},"summary":{"type":"string"},"approvalUrl":{"type":"string"}},"required":["status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change a listing's platform-only settings (a patch)"}},"/connections/{id}/units/{unitId}/opportunities":{"get":{"description":"`opportunities[]` with `applicable`, `activationUrl` and `inputs`; `applying` = ids already queued. Empty where the platform has none.","operationId":"listListingOpportunities","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The platform's opportunities for one listing, read from the platform now, and the ones already queued.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"opportunities":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"type":{"type":"string"},"title":{"type":"string"},"applicable":{"type":"boolean"},"activationUrl":{"type":"string","nullable":true},"inputs":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{}}}},"required":["id","title","applicable"]}},"applying":{"type":"array","items":{"type":"string"}}},"required":["opportunities","applying"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The platform's opportunities for a listing (Airbnb), read from the platform now"}},"/connections/{id}/units/{unitId}/opportunities/{opportunityId}/apply":{"post":{"description":"It may change the listing's price on the platform: always proposed (202 / APPROVAL_REQUIRED); queued once the host approved. `inputs` by the opportunity's input keys.","operationId":"applyListingOpportunity","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"unitId","required":true,"in":"path","schema":{"type":"string"}},{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyOpportunityDto"}}}},"responses":{"201":{"description":"`APPROVAL_REQUIRED` with `summary` and `approvalUrl` (always proposed to an API caller); `QUEUED` once the host approved.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["QUEUED","APPROVAL_REQUIRED"]},"summary":{"type":"string"},"approvalUrl":{"type":"string"}},"required":["status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Apply an opportunity to a listing"}},"/connections/{id}/platform-wide":{"get":{"description":"`bookingAmount.meaning` GUEST_TOTAL (or null); `noShow.mode` push | manual | unsupported, `waivesFees` (push only), `extranetUrl`.","operationId":"getConnectionPlatformWide","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Which amount a booking from this platform carries, and how a no-show is reported there.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"connectionId":{"type":"string"},"channelName":{"type":"string"},"bookingAmount":{"type":"object","additionalProperties":true,"properties":{"setting":{"type":"string","nullable":true},"meaning":{"type":"string","nullable":true,"enum":["GUEST_TOTAL",null]}}},"noShow":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["push","manual","unsupported"]},"waivesFees":{"type":"boolean","nullable":true},"extranetUrl":{"type":"string","nullable":true}},"required":["mode"]}},"required":["connectionId","bookingAmount","noShow"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Which amount a booking carries, and no-show reporting"}},"/connections/{id}/no-show-policy":{"put":{"description":"`waivesFees` true / false / null. Money the host is owed: always proposed (202 / APPROVAL_REQUIRED).","operationId":"setConnectionNoShowPolicy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetNoShowPolicyDto"}}}},"responses":{"200":{"description":"`APPROVAL_REQUIRED` with `summary` and `approvalUrl` (money: always proposed to an API caller); the platform-wide view once the host approved.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"},"summary":{"type":"string"},"approvalUrl":{"type":"string"},"noShow":{"type":"object","additionalProperties":true,"properties":{}}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Whether a no-show reported to this platform waives the fee (Booking.com)"}},"/sites/{id}/booking":{"get":{"description":"`mode` the host chose (ONLINE_PAYMENT, REQUEST or null for the default; INSTANT on a website of a workspace with that preview feature), `effectiveMode` (what guests get now), `depositPercent` (30, 50 or 100) and `stripeReady`. Online payment falls back to requests until Stripe can take payments.","operationId":"getSiteBooking","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"How guests book on the website: the host's choice (mode: ONLINE_PAYMENT, REQUEST, INSTANT or null), what guests get now (effectiveMode), the deposit percentage and whether Stripe is ready.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"mode":{"type":"string","enum":["ONLINE_PAYMENT","REQUEST","INSTANT"],"nullable":true},"effectiveMode":{"type":"string","enum":["ONLINE_PAYMENT","REQUEST","INSTANT"]},"depositPercent":{"type":"integer","example":30},"depositChoices":{"type":"array","items":{"type":"integer"}},"stripeReady":{"type":"boolean"},"requestHoldHours":{"type":"integer"},"instantHoldMinutes":{"type":"integer"},"note":{"type":"string"}},"required":["effectiveMode","stripeReady"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"How guests book on a website"},"put":{"description":"`mode`: ONLINE_PAYMENT (needs Stripe to be ready: 400 `STRIPE_REQUIRED` otherwise), REQUEST, or null for the default. `depositPercent`: 30, 50 or 100. Applies to the live website at once. INSTANT (booked at once, paid on arrival) is a preview feature: a workspace that does not have it yet gets 400 `FEATURE_NOT_AVAILABLE` and uses ONLINE_PAYMENT or REQUEST.","operationId":"setSiteBooking","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSiteBookingDto"}}}},"responses":{"200":{"description":"How guests book now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteBookingResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change how guests book on a website"}},"/sites/{id}/preview-link":{"post":{"description":"A fresh signed link that shows the DRAFT for 7 days: marked not public yet, not indexed, no booking. Works on every plan. Stores nothing. Anyone with the link can see the draft.","operationId":"createSitePreviewLink","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"The link, when it stops working, and a picture of the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePreviewLinkResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"A link that shows the draft"}},"/sites/{id}/domains":{"get":{"description":"`step` (waiting, checking, securing, live, error), `state`, the names with their status, the main name, the DNS record to add with what DNS answers now, and the steps in plain words. Removing a domain is done by the host in the app.","operationId":"getSiteDomains","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"The website's own domain: state (none, pending, verified, active, error), the names with their state, the primary name, the exact DNS records with what DNS answers now, and the to-dos. Only the host can remove a domain, in the app.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"state":{"type":"string","enum":["none","pending","verified","active","error"]},"primary":{"type":"string","nullable":true},"domains":{"type":"array","items":{"type":"object","additionalProperties":true}},"records":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string"},"host":{"type":"string"},"value":{"type":"string"},"found":{},"ok":{"type":"boolean"}},"required":["type","host","value"]}},"steps":{"type":"array","items":{}},"note":{"type":"string"}},"required":["state","domains","records","steps"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The custom domain of a website"},"post":{"description":"`domain`: `example.com` or `www.example.com` adds both names (www is the main one), `book.example.com` adds itself. Answers the one DNS record to add. 403 `PLAN_REQUIRED` unless the plan lets the site be public; 409 `SITE_DOMAIN_TAKEN` / `SITE_DOMAIN_LIMIT`; 503 `SITE_DOMAINS_OFF` while custom domains are not switched on.","operationId":"addSiteDomain","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSiteDomainDto"}}}},"responses":{"200":{"description":"The connected names and the DNS records to add.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDomainsResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Connect a domain to a website"}},"/sites/{id}/domains/check":{"post":{"description":"Checks the connected names now instead of waiting for the next automatic check. 429 `SITE_DOMAIN_CHECK_LIMIT` (with `retryAfterSeconds`) when asked too often.","operationId":"checkSiteDomains","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"The domain as DNS answers for it now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDomainsResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Check the domain now"}},"/sites/{id}/domains/primary":{"put":{"description":"`domain`: one of the names connected to this website. Guests see the site there; the other name redirects to it.","operationId":"setSitePrimaryDomain","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSiteDomainDto"}}}},"responses":{"200":{"description":"The domain with its new main name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDomainsResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Choose the main domain name"}},"/sites":{"get":{"description":"Every website of the workspace with its status and address.","operationId":"listSites","parameters":[],"responses":{"200":{"description":"The workspace's websites with state and address.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","name","slug","url","status","updatedAt"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"List websites"},"post":{"description":"WITHOUT `confirm: true` this is a preview: the document that would be created, nothing written. With it, a DRAFT site is created; it is private until the host publishes it. A draft can be built and previewed on every plan; publishing it and a domain of its own are part of Complete. From `starterId` (GET /sites/starters) or a full `document`; `propertyIds` default to the first property. Idempotency-Key header recommended.","operationId":"createSite","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSiteDto"}}}},"responses":{"200":{"description":"A preview (applied: false), or with confirm: true the new draft (applied: true).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Create a website (draft)"}},"/sites/catalogue":{"get":{"description":"What a site is built from. `?schemas=1` adds each section type’s props JSON Schema and default props, and the SiteDocument JSON Schema.","operationId":"siteCatalogue","parameters":[{"name":"schemas","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Section types, variants, looks, font pairs; ?schemas=1 with the JSON Schemas.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Section types, looks and font pairs"}},"/sites/starters":{"get":{"description":"Complete starter documents to create a site from (`starterId`).","operationId":"siteStarters","parameters":[],"responses":{"200":{"description":"Starter websites a site can be created from (starterId).","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Starter sites"}},"/sites/{id}":{"get":{"description":"The draft document, the PMS data it renders and the open validation issues. `updatedAt` is the `baseUpdatedAt` for the next edit.","operationId":"getSite","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"The draft, the listing data it shows and the open problems.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Get a website"},"put":{"description":"The whole SiteDocument. Send `baseUpdatedAt` (from GET) to refuse with 409 SITE_CHANGED instead of overwriting a newer edit. Never publishes.","operationId":"saveSite","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveSiteDto"}}}},"responses":{"200":{"description":"The website after saving.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Replace the draft document"}},"/sites/{id}/theme":{"put":{"description":"A look (`theme.look`) and token overrides; null removes one. A new look clears overrides and, unless `applyLookVariants: false`, moves sections to the look’s variants.","operationId":"updateSiteTheme","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSiteThemeDto"}}}},"responses":{"200":{"description":"The website after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change the theme"}},"/sites/{id}/sections":{"post":{"description":"`type` from the catalogue; `variant` defaults to the look’s; `props` merge over the default props and must validate. Header / footer types replace the site header / footer.","operationId":"addSiteSection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSiteSectionDto"}}}},"responses":{"200":{"description":"The new section's id and the website.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Add a section"}},"/sites/{id}/sections/{sectionId}":{"put":{"description":"Variant, props (merged unless `replaceProps`) and `hidden`.","operationId":"updateSiteSection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."},{"name":"sectionId","required":true,"in":"path","schema":{"type":"string"},"description":"Section id in the document."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSiteSectionDto"}}}},"responses":{"200":{"description":"The website after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Edit a section"},"delete":{"description":"From the draft. `hidden: true` keeps it instead.","operationId":"removeSiteSection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."},{"name":"sectionId","required":true,"in":"path","schema":{"type":"string"},"description":"Section id in the document."}],"responses":{"200":{"description":"The website after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Remove a section"}},"/sites/{id}/sections/{sectionId}/move":{"post":{"description":"To `index` (0 = top) on its page or on `pageId`.","operationId":"moveSiteSection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."},{"name":"sectionId","required":true,"in":"path","schema":{"type":"string"},"description":"Section id in the document."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveSiteSectionDto"}}}},"responses":{"200":{"description":"The website after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Move a section"}},"/sites/{id}/pages":{"post":{"description":"`kind`, `title` and `slug` per language (default language required). Add sections next.","operationId":"addSitePage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSitePageDto"}}}},"responses":{"200":{"description":"The new page's id and the website.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Add a page"}},"/sites/{id}/pages/{pageId}":{"put":{"description":"Title and slug (merged per language), `showInNav`, `index` (order).","operationId":"updateSitePage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."},{"name":"pageId","required":true,"in":"path","schema":{"type":"string"},"description":"Page id in the document."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSitePageDto"}}}},"responses":{"200":{"description":"The website after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Edit a page"},"delete":{"description":"The home page cannot be removed.","operationId":"removeSitePage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."},{"name":"pageId","required":true,"in":"path","schema":{"type":"string"},"description":"Page id in the document."}],"responses":{"200":{"description":"The website after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sectionId":{"type":"string"},"pageId":{"type":"string"},"site":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"customDomain":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","PUBLISHED","UNPUBLISHED"]},"hasUnpublishedChanges":{"type":"boolean"},"look":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"updatedAt":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","format":"date-time","nullable":true},"document":{"type":"object","additionalProperties":true,"description":"The SiteDocument (GET /sites/catalogue?schemas=1 has its JSON Schema)."},"properties":{"type":"array","items":{"type":"object","additionalProperties":true}},"issues":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"hint":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}}}}},"required":["id","document","updatedAt"]}},"required":["site"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Remove a page"}},"/sites/{id}/seo":{"get":{"description":"Site level title, description, share image, favicon, noindex and per-listing overrides, plus each page’s own SEO.","operationId":"getSiteSeo","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"Search and sharing settings.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"site":{"type":"object","additionalProperties":true},"pages":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["site","pages"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Search and sharing settings"},"put":{"description":"`site` replaces the site block when present (`{}` clears it); `pages[]` patches pages by id. Titles about 60 characters, descriptions about 155; share images https, best 1200x630. Draft only: live after the host publishes.","operationId":"updateSiteSeo","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSiteSeoDto"}}}},"responses":{"200":{"description":"The search and sharing settings after saving.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"site":{"type":"object","additionalProperties":true},"pages":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["site","pages"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change search and sharing settings"}},"/sites/{id}/publish-plan":{"get":{"description":"Summary, diff, warnings and `blockers` (must be fixed first). `?publish=false` previews taking the site offline.","operationId":"sitePublishPlan","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"What publishing would do: summary, differences, warnings, blockers.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"What publishing would do"}},"/sites/{id}/publish":{"post":{"description":"Never publishes. Answers APPROVAL_REQUIRED with the plan and `approvalUrl`: the host opens it signed in and publishes there.","operationId":"publishSite","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"Javaslat: APPROVAL_REQUIRED, approvalUrl-lel.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["SITE_PUBLISH","SITE_UNPUBLISH"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalUrl":{"type":"string"},"instruction":{"type":"string"}},"required":["status","applied","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Ask the host to publish"}},"/sites/{id}/unpublish":{"post":{"description":"Never unpublishes. Answers APPROVAL_REQUIRED with `approvalUrl`.","operationId":"unpublishSite","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Site id (GET /sites)."}],"responses":{"200":{"description":"Javaslat: APPROVAL_REQUIRED, approvalUrl-lel.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"action":{"type":"string","enum":["SITE_PUBLISH","SITE_UNPUBLISH"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalUrl":{"type":"string"},"instruction":{"type":"string"}},"required":["status","applied","approvalUrl"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Ask the host to take the site offline"}},"/approvals":{"get":{"description":"The changes an agent asked for that wait for the host (`status=PENDING`, the default), or those and the latest decided ones (`status=ALL`), newest first, at most 100. Each has the sentence the host reads, its state and, while it waits, `approvalUrl`: the page of the app where the signed-in host approves it. There is no approve route on the API.","operationId":"listApprovals","parameters":[{"name":"status","required":false,"in":"query","description":"PENDING (default) or ALL.","schema":{"enum":["PENDING","ALL"],"type":"string"}}],"responses":{"200":{"description":"Changes waiting for the host (status=PENDING), or those and the latest decided ones (status=ALL), newest first, at most 100. While a change waits, approvalUrl is the app page where the signed-in host approves it. The API has no approving route.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","ALL"]},"approvals":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string","description":"A changeId (chg_…)."},"approvalId":{"type":"string"},"state":{"type":"string","enum":["preview","needs_approval","applied","declined","expired"],"nullable":true},"status":{"type":"string","enum":["PREVIEW","PENDING","APPROVED","APPLIED","DECLINED","DISMISSED","EXPIRED"]},"summary":{"type":"string"},"action":{"type":"string"},"risky":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"decidedAt":{"type":"string","format":"date-time","nullable":true},"approvalUrl":{"type":"string","description":"Only while it waits for the host."}},"required":["id","approvalId","status","summary"]}}},"required":["status","approvals"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Changes waiting for the host"}},"/approvals/{id}":{"get":{"description":"status: PENDING | APPROVED (the host approved; for a hand-off, they finish it on the linked screen) | APPLIED | DECLINED | DISMISSED (closed, or the object changed so nothing ran) | EXPIRED. `result` once applied. There is no approve route on the API: the host approves in the app.","operationId":"getApproval","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"The `approvalId` a proposal returned (pricing commands: `pc_<commandId>`)."}],"responses":{"200":{"description":"The state of a proposal waiting for the host: PENDING, APPROVED, APPLIED, DECLINED, DISMISSED or EXPIRED.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"approvalId":{"type":"string"},"status":{"type":"string","enum":["PENDING","APPROVED","APPLIED","DECLINED","DISMISSED","EXPIRED"]},"detail":{"type":"string","nullable":true},"summary":{"type":"string"},"action":{"type":"string"},"decidedAt":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"result":{"type":"object","additionalProperties":true,"nullable":true},"error":{"type":"string","nullable":true}},"required":["approvalId","status"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The status of a change waiting for the host: PENDING, APPROVED, APPLIED, DECLINED, DISMISSED or EXPIRED."}},"/changes/{id}":{"get":{"description":"`state`: preview | needs_approval | applied | declined | expired. `result` once applied.","operationId":"getChange","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"A `changeId` (`chg_…`) or an `approvalId`."}],"responses":{"200":{"description":"The state of a change seen in a preview: preview, needs_approval, applied, declined or expired; after applying, the result.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"approvalId":{"type":"string"},"changeId":{"type":"string"},"state":{"type":"string","enum":["preview","needs_approval","applied","declined","expired"],"nullable":true},"status":{"type":"string"},"summary":{"type":"string"},"action":{"type":"string"},"decidedAt":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time"},"result":{"type":"object","additionalProperties":true,"nullable":true},"error":{"type":"string","nullable":true}},"required":["approvalId","changeId","status","summary"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"State of a previewed change"}},"/changes/{id}/apply":{"post":{"description":"Idempotent: applying twice changes once. Answers `change.state`: `applied`, or `needs_approval` with `approvalUrl` when the workspace asks the host first (the server applies it once they approve; call again to learn the outcome), `declined`, `expired`.","operationId":"applyChange","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"The `changeId` a write returned with its preview."}],"responses":{"200":{"description":"The change's state after applying: change.state applied, or needs_approval with approvalUrl when the workspace asks the host first (approval happens in the app, signed in), declined or expired. Applying twice changes once.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"ok":{"type":"boolean"},"summary":{"type":"string"},"status":{"type":"string"},"change":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"state":{"type":"string","enum":["preview","needs_approval","applied","declined","expired"]},"risk":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"approvalUrl":{"type":"string"}},"required":["id","state"]},"result":{"type":"object","additionalProperties":true,"nullable":true}},"required":["change"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Apply a previewed change"}},"/properties/{id}/branding":{"get":{"description":"Logo URL, brand colour, e-mail signature and review link that wrap every guest e-mail of this property.","operationId":"getPropertyBranding","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The guest e-mail branding: logo, colour, signature, review link.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"logoUrl":{"type":"string","nullable":true},"brandColorHex":{"type":"string","nullable":true},"emailSignature":{"type":"string","nullable":true},"reviewUrl":{"type":"string","nullable":true}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Guest e-mail branding of a property."},"put":{"description":"`logoUrl`, `brandColorHex` (#RGB or #RRGGBB), `emailSignature`, `reviewUrl`; an empty string clears a field. Only the fields sent change.","operationId":"setPropertyBranding","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePropertyBrandingDto"}}}},"responses":{"200":{"description":"The branding after saving.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"logoUrl":{"type":"string","nullable":true},"brandColorHex":{"type":"string","nullable":true}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change the guest e-mail branding."}},"/units/{id}/restore":{"post":{"description":"Undoes `DELETE /units/:id`: the unit and its rate plans are bookable again (same plan limit as creating a unit). A unit that is not deleted is returned unchanged.","operationId":"restoreUnit","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The restored unit.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"deletedAt":{"type":"string","nullable":true}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Restore a deleted unit."}},"/properties/{id}/rate-plans":{"get":{"description":"Every rate plan per unit: the standard plan and options such as non-refundable or breakfast included, with sell mode, rate mode, meal type and base price (minor units).","operationId":"listRatePlans","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The rate plans per unit, with how each is derived.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"unitId":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string"},"isDefault":{"type":"boolean"},"baseRateMinor":{"type":"integer"},"mealType":{"type":"string","nullable":true},"refundable":{"type":"boolean"},"parentRatePlanId":{"type":"string","nullable":true},"derivedAdjustBps":{"type":"integer","nullable":true},"derivedAdjustMinor":{"type":"integer","nullable":true}},"required":["id","unitId","title"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Rate plans and rate options of a property."},"post":{"description":"`unitId`, `title` (unique per property), optional `currency`, `sellMode`, `rateMode`, `baseRateMinor`, `occupancies` (per-person plans), `mealType`, `isDefault`. Send `Idempotency-Key` to retry safely.","operationId":"createRatePlan","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRatePlanDto"}}}},"responses":{"201":{"description":"The new rate plan.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"unitId":{"type":"string"},"title":{"type":"string"},"currency":{"type":"string"},"isDefault":{"type":"boolean"},"baseRateMinor":{"type":"integer"},"mealType":{"type":"string","nullable":true},"refundable":{"type":"boolean"},"parentRatePlanId":{"type":"string","nullable":true},"derivedAdjustBps":{"type":"integer","nullable":true},"derivedAdjustMinor":{"type":"integer","nullable":true}},"required":["id","unitId","title"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Add a rate option, optionally following a parent plan."}},"/properties/{id}/rate-plans/{ratePlanId}":{"delete":{"description":"The plan stops being sold on every channel it is mapped to. The standard plan of a unit cannot be removed.","operationId":"deleteRatePlan","parameters":[{"name":"ratePlanId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The deleted rate plan.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Remove a rate option."}},"/availability/physical":{"put":{"description":"`unitId`, `from`, `to` (inclusive nights) and `physical` (0 to the unit room count). Sellable is recounted from it; bookings and blocks are untouched. For a closed date use a block.","operationId":"setPhysicalRooms","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPhysicalRoomsDto"}}}},"responses":{"200":{"description":"The new inventory of the nights affected.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Rooms that physically exist per night."}},"/blocks/{id}":{"put":{"description":"Any of `kind` (OWNER | MAINTENANCE), `firstNight`, `lastNight` (inclusive), `rooms`, `reason`. Nights freed go back on sale, nights added are closed, on every channel.","operationId":"updateBlock","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBlockDto"}}}},"responses":{"200":{"description":"The block after the change.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"unitId":{"type":"string"},"kind":{"type":"string"},"firstNight":{"type":"string"},"lastNight":{"type":"string"}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change a block."}},"/reservations/{id}/charges":{"get":{"description":"Itemised charges (NTAK charge categories): date, main and sub category, VAT rate, amount in minor units, label.","operationId":"listReservationCharges","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The booking's extra charges.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Extra charges on a booking."},"post":{"description":"`date`, `foKategoria` (+ `alKategoria`), `afaKulcs` (0, 5, 18 or 27), `amountMinor`, optional `label`, `currency`, `partOfPackage`. Allowed after checkout too. Send `Idempotency-Key` to retry safely.","operationId":"addReservationCharge","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReservationChargeDto"}}}},"responses":{"201":{"description":"The new charge.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Add an extra charge to a booking."}},"/reservations/{id}/charges/bulk":{"post":{"description":"`charges`: 1 to 500 lines, each like `POST /reservations/:id/charges`. One transaction, one history entry.","operationId":"addReservationCharges","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateReservationChargesDto"}}}},"responses":{"201":{"description":"The new charges.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Add many extra charges in one write."}},"/reservations/{id}/charges/{chargeId}":{"delete":{"description":"A charge already reported is corrected by removing it and adding the right one; there is no edit.","operationId":"removeReservationCharge","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"chargeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The deleted charge's id.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Remove an extra charge from a booking."}},"/properties/{id}/charges":{"get":{"description":"Walk-in sales and other income or costs of the property (`kind`), optional `from` / `to` (inclusive days).","operationId":"listPropertyCharges","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Charges that belong to no booking.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Charges that belong to no booking."},"post":{"description":"`kind`, `date`, `amountMinor`, and the category, VAT rate or payment method the kind needs. Send `Idempotency-Key` to retry safely.","operationId":"addPropertyCharge","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePropertyChargeDto"}}}},"responses":{"201":{"description":"The new charge.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Record a charge that belongs to no booking."}},"/properties/{id}/charges/{chargeId}":{"delete":{"description":"Removes one charge that belongs to no booking.","operationId":"removePropertyCharge","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"chargeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The deleted charge's id.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"}},"required":["id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Remove a property charge."}},"/inbox/messages/{id}/retry":{"post":{"description":"Re-delivers an outbound message the transport refused (the same row, not a second message). Message ids come from `GET /inbox/log`.","operationId":"retryMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The message after resending.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Send a failed message again."}},"/inbox/log":{"get":{"description":"Newest first. Optional `propertyId`, `status` (a delivery status, e.g. FAILED), `cursor`, `take` (1 to 200).","operationId":"getSendLog","parameters":[],"responses":{"200":{"description":"Outbound messages with their delivery state, paged.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Outbound messages with their delivery status."}},"/messaging/preview":{"post":{"description":"`kind` (guest-booking-received, guest-payment-succeeded, guest-check-in-link, guest-booking-cancelled, guest-hold-expired, guest-hold-expiring, guest-booking-altered), optional `reservationId` or `propertyId`. Rendered with the property branding; sends nothing.","operationId":"previewGuestMail","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewTransactionalMailDto"}}}},"responses":{"200":{"description":"The finished e-mail: subject, text, HTML.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"subject":{"type":"string"},"text":{"type":"string"},"html":{"type":"string"}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Preview a system guest e-mail. Sends nothing."}},"/messaging/preview-draft":{"post":{"description":"`subject`, `body` ({{placeholders}} allowed), optional `reservationId`, `propertyId`, `language`. Sends nothing.","operationId":"previewGuestMailDraft","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewDraftMailDto"}}}},"responses":{"200":{"description":"The finished e-mail: subject, text, HTML.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"subject":{"type":"string"},"text":{"type":"string"},"html":{"type":"string"}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Preview unsaved e-mail words. Sends nothing."}},"/automations/restore-defaults":{"post":{"description":"Re-creates the standard rules for every property and resets the words of the standard templates. Counts of what was created and reset.","operationId":"restoreDefaultAutomations","parameters":[],"responses":{"200":{"description":"What was created and what was restored.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Restore the default automatic messages."}},"/automations/{id}/preview":{"post":{"description":"Against `reservationId` when given, else sample values; with the property branding. Sends nothing.","operationId":"previewAutomation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewMailDto"}}}},"responses":{"200":{"description":"The finished e-mail: subject, text, HTML.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"subject":{"type":"string"},"text":{"type":"string"},"html":{"type":"string"}}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Preview the e-mail a rule sends."}},"/properties/{id}/channel-policies":{"get":{"description":"Per connection of the property: the shared policy code and instant-book mode, and the options the channel accepts.","operationId":"getPropertyChannelPolicies","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Per platform, the shared policy and the options available.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Channel policies of a property."},"put":{"description":"`channels`: [{connectionId, unitId?, policyCode?, instantBookMode?}]; no unitId = every unit of the property on that channel. Queued for the worker.","operationId":"setPropertyChannelPolicies","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetChannelPoliciesDto"}}}},"responses":{"200":{"description":"The changes queued.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set the channel policy for every unit of a property."}},"/dashboard":{"get":{"description":"The app home screen as data. Optional `propertyId`, `from` / `to` (YYYY-MM-DD) for the window. `needsYou.requests`: the booking requests waiting for the host’s answer (the list of GET /reservation-requests), each with the call that proposes its answer.","operationId":"getDashboard","parameters":[],"responses":{"200":{"description":"Today: arrivals, departures, guests staying, to-dos.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Today: arrivals, departures, stays and what needs the host."}},"/sites/{id}/media":{"get":{"description":"Photos and videos in the site, the property photos and recent uploads, with id, url, size, focal point and alt text. Use the ids in section content.","operationId":"listSiteMedia","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The website's media library.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"url":{"type":"string"},"kind":{"type":"string"}},"required":["id","url"]}}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Media library of a website."}},"/reservations/{id}/checkin-link":{"post":{"description":"Without `confirmSend: true` nothing is sent: the answer names the address it would go to. No guest e-mail: `sent: false`, `reason: NO_EMAIL` and the `url` to pass on.","operationId":"sendCheckinLink","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCheckinLinkDto"}}}},"responses":{"200":{"description":"sent: true, or sent: false and reason (NO_EMAIL, CONFIRM_REQUIRED) with the URL.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"sent":{"type":"boolean"},"reason":{"type":"string"},"url":{"type":"string"},"wouldSendTo":{"type":"string"}},"required":["sent"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Send the guest self check-in link (confirmSend: true)."}},"/data-export":{"get":{"description":"format=json (default): one document with properties, bookings, guests and messages. format=csv&type=bookings|guests|messages: one CSV. Workspace owners only. Personal data: fetch it only when the host asked for it.","operationId":"exportWorkspaceData","parameters":[{"name":"format","required":false,"in":"query","description":"json: one document with every type. csv: one file per type.","schema":{"default":"json","type":"string","enum":["json","csv"]}},{"name":"type","required":false,"in":"query","description":"Required with format=csv.","schema":{"type":"string","enum":["bookings","guests","messages"]}}],"responses":{"200":{"description":"format=json: the workspace document below. format=csv&type=bookings|guests|messages answers text/csv instead (one table, formula-like cells neutralised). Always a download (Content-Disposition: attachment).","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","example":"workspace-export/1"},"exportedAt":{"type":"string","format":"date-time"},"workspace":{"type":"object","description":"id, name, createdAt."},"notes":{"type":"array","items":{"type":"string"},"description":"Units and conventions (minor units, exclusive departure)."},"properties":{"type":"array","items":{"type":"object"},"description":"Properties with their units."},"bookings":{"type":"array","items":{"type":"object"}},"guests":{"type":"array","items":{"type":"object"},"description":"No ID-document data."},"messages":{"type":"array","items":{"type":"object"}}},"required":["format","exportedAt","workspace","notes","properties","bookings","guests","messages"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Export the workspace data (bookings, guests, messages)"}},"/connections/{id}/needs-mapping":{"get":{"description":"Bookings this platform sent for a room that is not linked to one of the property’s listings: guest, dates, the room name the platform uses. They take no nights until linked. Read only.","operationId":"listHeldBookings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Platform connection id (GET /connections)."}],"responses":{"200":{"description":"Bookings a platform sent for a room that is not yet linked to one of the property's listings: guest, dates, the room's name on the platform. Until linked they take no nights.","content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string"},"heldBookings":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"bookingId":{"type":"string"},"platform":{"type":"string","nullable":true},"platformBookingCode":{"type":"string","nullable":true},"arrivalDate":{"type":"string","nullable":true,"example":"2026-07-10"},"departureDate":{"type":"string","nullable":true,"example":"2026-07-13"},"guestName":{"type":"string","nullable":true},"rooms":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string","nullable":true},"adults":{"type":"integer"},"children":{"type":"integer"}}}},"receivedAt":{"type":"string","nullable":true}},"required":["bookingId","rooms"]}}},"required":["connectionId","heldBookings"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Bookings waiting for a listing"}},"/connections/{id}/needs-mapping/{bookingId}/link":{"post":{"description":"The booking is created on that listing like any platform booking and takes its nights; if they are already taken it is kept and marked as an overbooking, never refused. The listing must belong to the connection’s property. Idempotency-Key header recommended.","operationId":"linkHeldBooking","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Platform connection id (GET /connections)."},{"name":"bookingId","required":true,"in":"path","schema":{"type":"string"},"description":"From GET /connections/:id/needs-mapping."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkHeldBookingDto"}}}},"responses":{"200":{"description":"The booking is on the listing now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeldBookingLinkedResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Link a waiting booking to a listing"}},"/connections/{id}/needs-mapping/retry":{"post":{"description":"Queues a job that reads each waiting booking from the platform again; one whose room is matched there now is created on its listing. Answers 202 with the job id.","operationId":"retryHeldBookings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"},"description":"Platform connection id (GET /connections)."}],"responses":{"202":{"description":"The job that was queued (`jobId`), or, while it waits for the host, the change to approve (`status: APPROVAL_REQUIRED`).","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/JobQueuedResponseDto"},{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Check the waiting bookings again"}},"/platforms/catalogue":{"get":{"description":"Every platform of the catalogue and how it is connected: `sign_in`, `property_id`, `in_the_app` or `not_connectable`. When the catalogue cannot be loaded the answer is 503 `CATALOGUE_UNAVAILABLE` with a sentence and a fix, never an empty list.","operationId":"listAvailablePlatforms","parameters":[],"responses":{"200":{"description":"Every platform in the catalogue and how it connects: sign_in, property_id, in_the_app or not_connectable. When the catalogue cannot load, the answer is 503 CATALOGUE_UNAVAILABLE, never an empty list.","content":{"application/json":{"schema":{"type":"object","properties":{"platforms":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"code":{"type":"string"},"title":{"type":"string"},"connectable":{"type":"boolean"},"how":{"type":"string","enum":["sign_in","property_id","in_the_app","not_connectable"]}},"required":["code","title","connectable","how"]}}},"required":["platforms"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Platforms that can be connected"}},"/onboarding/import-platform/start":{"post":{"description":"`platform`: AIRBNB (answers `authUrl`, the Airbnb sign-in page the host opens); BOOKING_COM, SZALLAS_HU, EXPEDIA, AGODA, TRIP_COM (Hotel Code), HOSTELWORLD or DESPEGAR: pass `hotelId`, the property ID from the platform. TRIP_COM and HOSTELWORLD also need `currency`, the currency the host uses there (prices go out exactly in it). DESPEGAR also needs `otaUser` and `otaPassword`, the API login Despegar showed when the host added us: kept encrypted, never returned (a call waiting for the host keeps it encrypted too). Answers a `sessionId`. Nothing is added until apply; an unfinished session is cleaned up and nothing is billed for it.","operationId":"startPlatformImport","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPlatformImportDto"}}}},"responses":{"200":{"description":"The session, and for Airbnb the sign-in page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformImportStartedResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Start importing listings from a platform"}},"/onboarding/import-platform/how-to-connect":{"post":{"description":"Steps for one platform: `sign_in`, `property_id`, `in_the_app` (the host connects it in the app at `url`) or `not_connectable` with the reason. Creates nothing; the embedded connect screen of the app is never returned here.","operationId":"howToConnectPlatform","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicHowToConnectDto"}}}},"responses":{"200":{"description":"How this platform is connected, and the steps.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HowToConnectResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"How one platform is connected"}},"/onboarding/import-platform/{sessionId}":{"get":{"description":"`status`: waiting_auth, loading, ready (with `listings`) or failed (with `error`). Read only.","operationId":"getPlatformImport","parameters":[{"name":"sessionId","required":true,"in":"path","schema":{"type":"string"},"description":"Import session id (POST /onboarding/import-platform/start)."}],"responses":{"200":{"description":"Where an import stands: waiting_auth, loading, ready (with the listings array) or failed (error and errorCode).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["waiting_auth","loading","ready","failed"]},"platform":{"type":"string","example":"AIRBNB"},"listings":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["whole_home","room"]},"alreadyImported":{"type":"boolean"},"match":{"type":"object","additionalProperties":true,"properties":{"unitId":{"type":"string"},"propertyId":{"type":"string"},"name":{"type":"string"}}}},"required":["externalId","name","alreadyImported"]}},"error":{"type":"string"},"errorCode":{"type":"string"},"authUrl":{"type":"string"}},"required":["status","platform","listings"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Where an import stands"}},"/onboarding/import-platform/{sessionId}/apply":{"post":{"description":"`listings`: `[{ externalId, group?, attachToUnitId? }]`. Each becomes a listing connected to the platform but not live; picks sharing a `group` become rooms of one property; `attachToUnitId` connects an existing listing instead. Adding listings can change the subscription.","operationId":"applyPlatformImport","parameters":[{"name":"sessionId","required":true,"in":"path","schema":{"type":"string"},"description":"Import session id (POST /onboarding/import-platform/start)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyPlatformImportDto"}}}},"responses":{"200":{"description":"What was added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformImportAppliedResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Nothing has changed: the host has to approve it in the app first (`approvalUrl`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequiredResponseDto"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Add the picked listings of an import"}},"/reservations/{id}/invoice-details":{"get":{"description":"`details` is the versioned `hostemi.invoice-details/2` object (JSON Schema: `GET /public/v1/schemas/invoice-details.json`; every v1 field kept): booking (dates, nights, rooms, guests, platform and its reference), listing (with address), seller (the host's own details), buyer, `pricing` (stay line per place, room or person; prices with or without VAT), `lines` (kind, description, quantity × unit × unitPriceMinor, net, VAT and gross in minor units, VAT rate or exempt or outside scope, service dates), `totals` (per VAT rate), `platform` (commission, payout and taxes only when the platform sent them), `exchange`, `payment`, `dates` (`readyAt`: after check-in), `invoice` (status and records) and `instructions`. Also `method`, `app`, `automationReady`, `ready`, `action` (SEND, ISSUE or MARK) and `document` (Hostemi's own invoice: title, link, number).","operationId":"getInvoiceDetails","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The booking's invoice details (details: hostemi.invoice-details/2, JSON Schema: GET /public/v1/schemas/invoice-details.json) and the invoice state: status, method, app (the app's key is never returned), automationReady, ready, readyAt, action (SEND, ISSUE, MARK), document and latest.","content":{"application/json":{"schema":{"type":"object","properties":{"details":{"title":"Hostemi invoice details, version 2","description":"Everything Hostemi knows about one booking that an invoice needs. Version 2 is a superset of version 1. Money is in integer minor units. Sum of lines[].grossMinor = totals.grossMinor = totalMinor. On a line, unitPriceMinor × quantity + roundingMinor = the line amount in pricing.unitPriceBasis (grossMinor or netMinor). JSON Schema: GET /public/v1/schemas/invoice-details.json.","type":"object","required":["schema","schemaVersion","booking","listing","seller","buyer","pricing","lines","splitKnown","currency","totalMinor","totals","platform","exchange","payment","dates","language","instructions"],"properties":{"schema":{"enum":["hostemi.invoice-details/2"]},"schemaVersion":{"enum":[2]},"booking":{"type":"object","required":["id","code","platform","platformBookingId","arrivalDate","departureDate","nights","adults","children","infants","status","rooms","guests","bookedAt"],"properties":{"id":{"type":"string"},"code":{"type":"string","nullable":true},"platform":{"type":"string","description":"Where the booking came from: DIRECT, MANUAL, BOOKING_COM, AIRBNB, SZALLAS_HU, EXPEDIA, …"},"platformBookingId":{"type":"string","nullable":true,"description":"The platform's own booking number."},"arrivalDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"departureDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The check-out day (exclusive: the last night is the day before)."},"nights":{"type":"integer"},"adults":{"type":"integer"},"children":{"type":"integer"},"infants":{"type":"integer"},"status":{"type":"string","description":"CONFIRMED, CHECKED_IN, CHECKED_OUT, CANCELLED, NO_SHOW, …"},"rooms":{"type":"integer"},"guests":{"type":"integer","description":"adults + children + infants"},"bookedAt":{"type":"string","nullable":true,"format":"date-time"}}},"listing":{"type":"object","required":["id","name","unit","address","currency"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"unit":{"type":"string"},"address":{"type":"object","required":["line","city","postalCode","country"],"properties":{"line":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"country":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2"}}},"currency":{"type":"string","nullable":true}}},"seller":{"type":"object","required":["legalName","address","taxNumber","vatNumber","chargesVat","vatRateBp","vatExemptionText"],"properties":{"legalName":{"type":"string","nullable":true},"address":{"type":"object","required":["line","city","postalCode","country"],"properties":{"line":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"country":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2"}}},"taxNumber":{"type":"string","nullable":true},"vatNumber":{"type":"string","nullable":true},"chargesVat":{"type":"boolean"},"vatRateBp":{"type":"integer","nullable":true},"vatExemptionText":{"type":"string","nullable":true}}},"buyer":{"type":"object","required":["name","company","taxNumber","address","email","language","wantsInvoice"],"properties":{"name":{"type":"string","nullable":true},"company":{"type":"string","nullable":true},"taxNumber":{"type":"string","nullable":true},"address":{"type":"object","required":["line","city","postalCode","country"],"properties":{"line":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"country":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2"}}},"email":{"type":"string","nullable":true},"language":{"type":"string","nullable":true},"wantsInvoice":{"type":"boolean","nullable":true}}},"pricing":{"type":"object","required":["stayLine","pricesIncludeVat","unitPriceBasis"],"properties":{"stayLine":{"enum":["place","room","person"],"description":"How the host wants the stay line: per night, per room per night, per person per night."},"pricesIncludeVat":{"type":"boolean"},"unitPriceBasis":{"enum":["gross","net"]}}},"lines":{"type":"array","items":{"type":"object","required":["kind","label","description","quantity","unit","unitPriceMinor","roundingMinor","netMinor","vatMinor","grossMinor","vatRateBp","vat","vatExempt","outsideVat","currency","serviceDate","serviceFrom","serviceTo"],"properties":{"kind":{"enum":["stay","cleaning","extra","charge","tourist_tax","discount"],"description":"cleaning and discount are reserved: no booking separates them yet."},"label":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"integer"},"unit":{"enum":["night","room_night","person_night","guest_night","item"]},"unitPriceMinor":{"type":"integer","description":"Per unit in pricing.unitPriceBasis, rounded down."},"roundingMinor":{"type":"integer","minimum":0,"description":"What does not divide by quantity (less than quantity minor units)."},"netMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"vatMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"grossMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"vatRateBp":{"type":"integer","nullable":true,"description":"Basis points: 2700 = 27 %. Null when exempt or outside the scope of VAT."},"vat":{"enum":["standard","exempt","outside_scope"]},"vatExempt":{"type":"boolean"},"outsideVat":{"type":"boolean"},"currency":{"type":"string"},"serviceDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"serviceFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"serviceTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}}},"splitKnown":{"type":"boolean","description":"False on a platform booking: one stay line for the platform's total."},"currency":{"type":"string","description":"ISO 4217"},"totalMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"totals":{"type":"object","required":["netMinor","vatMinor","grossMinor","byVat","bookingTotalMinor"],"properties":{"netMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"vatMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"grossMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"byVat":{"type":"array","items":{"type":"object","required":["vat","vatRateBp","netMinor","vatMinor","grossMinor"],"properties":{"vat":{"enum":["standard","exempt","outside_scope"]},"vatRateBp":{"type":"integer","nullable":true},"netMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"vatMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"grossMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."}}}},"bookingTotalMinor":{"type":"integer","description":"What the booking says the guest pays. Equals grossMinor unless VAT is added on top."}}},"platform":{"type":"object","required":["source","direct","reference","collectsPayment","reported"],"properties":{"source":{"type":"string"},"direct":{"type":"boolean"},"reference":{"type":"string","nullable":true},"collectsPayment":{"type":"boolean"},"reported":{"type":"object","nullable":true,"description":"Only what the platform sent. Null amounts are unknown, never zero.","required":["guestTotalMinor","taxMinor","extrasMinor","commissionMinor","hostPayoutMinor","taxesCollectedByPlatform","nightly"],"properties":{"guestTotalMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"taxMinor":{"type":"integer","nullable":true},"extrasMinor":{"type":"integer","nullable":true},"commissionMinor":{"type":"integer","nullable":true},"hostPayoutMinor":{"type":"integer","nullable":true},"taxesCollectedByPlatform":{"type":"boolean"},"nightly":{"type":"array","items":{"type":"object","required":["date","amountMinor"],"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"amountMinor":{"type":"integer"}}}}}}}},"exchange":{"type":"object","nullable":true,"description":"Only when the booking's currency differs from the listing's. 1 bookingCurrency = rate listingCurrency.","required":["bookingCurrency","listingCurrency","rate","rateDate","source","listingTotalMinor"],"properties":{"bookingCurrency":{"type":"string"},"listingCurrency":{"type":"string"},"rate":{"type":"string","nullable":true,"description":"An exact decimal as text (\"392.15\")."},"rateDate":{"type":"string","nullable":true},"source":{"enum":["BOOKING","ECB","MANUAL",null],"nullable":true},"listingTotalMinor":{"type":"integer","nullable":true}}},"payment":{"type":"object","required":["collectedBy","paidMinor","status","payments"],"properties":{"collectedBy":{"enum":["PLATFORM","HOST"]},"paidMinor":{"type":"integer","description":"Minor units of `currency` (HUF and EUR both ×100)."},"status":{"type":"string"},"payments":{"type":"array","items":{"type":"object","required":["date","amountMinor","method","refundedMinor"],"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"amountMinor":{"type":"integer"},"method":{"type":"string"},"refundedMinor":{"type":"integer"}}}}}},"dates":{"type":"object","required":["suggestedIssueDate","serviceDate","serviceFrom","serviceTo","readyAt"],"properties":{"suggestedIssueDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"serviceDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The fulfilment (service) date: the departure day."},"serviceFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"serviceTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"readyAt":{"type":"string","nullable":true,"format":"date-time","description":"From when the booking can be invoiced: after check-in."}}},"language":{"enum":["hu","en"]},"invoice":{"type":"object","description":"Absent in webhook snapshots of a new send; on reads, where the invoice stands.","properties":{"status":{"enum":["NOT_INVOICED","PREPARED","SENT","INVOICED","FAILED"]},"records":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"method":{"type":"string","enum":["APP","AUTOMATION","HOSTEMI_DOCUMENT","MANUAL"]},"status":{"type":"string","enum":["PREPARED","SENT","ISSUED","FAILED","VOIDED"]},"provider":{"type":"string","nullable":true},"issuer":{"type":"string","nullable":true},"draftNumber":{"type":"string","nullable":true},"externalId":{"type":"string","nullable":true},"number":{"type":"string","nullable":true},"issuedAt":{"type":"string","nullable":true,"example":"2026-07-13"},"documentUrl":{"type":"string","nullable":true},"editUrl":{"type":"string","nullable":true},"reportedBy":{"type":"string","enum":["ADAPTER_CHECK","CALLBACK","HOST","AGENT",null],"nullable":true},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"reportedAmountMinor":{"type":"integer","nullable":true},"reportedCurrency":{"type":"string","nullable":true},"error":{"type":"string","nullable":true},"sentAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"changedSinceSent":{"type":"boolean"},"documentTitle":{"type":"string","nullable":true},"emailedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","method","status","amountMinor","currency","createdAt","changedSinceSent"]}}}},"instructions":{"type":"string"}}},"status":{"type":"string","enum":["NOT_INVOICED","PREPARED","SENT","INVOICED","FAILED"]},"method":{"type":"string","enum":["APP","AUTOMATION","HOSTEMI_DOCUMENT","MANUAL",null],"nullable":true,"description":"null: the listing has not chosen how it invoices."},"app":{"type":"object","properties":{"provider":{"type":"string","enum":["SZAMLAZZ","BILLINGO"]},"name":{"type":"string"},"draftName":{"type":"object","properties":{"hu":{"type":"string"},"en":{"type":"string"}},"required":["hu","en"]},"url":{"type":"string"},"connected":{"type":"boolean","description":"An app key is saved. The key itself is never returned."}},"required":["provider","name","draftName","url","connected"],"nullable":true,"description":"The built-in app of an APP listing; null otherwise."},"automationReady":{"type":"boolean"},"ready":{"type":"boolean","description":"Invoicing is possible only after the guest arrived."},"readyAt":{"type":"string","format":"date-time","nullable":true},"action":{"type":"string","enum":["SEND","ISSUE","MARK"]},"document":{"type":"object","properties":{"title":{"type":"string"},"kind":{"type":"string","enum":["INVOICE","PAYMENT_CONFIRMATION","PAYMENT_REQUEST"]},"notice":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"number":{"type":"string","nullable":true},"emailedAt":{"type":"string","format":"date-time","nullable":true},"guestEmail":{"type":"boolean","description":"The guest has an e-mail address (the address itself is in details.buyer)."}},"required":["title","kind","notice","url","number","emailedAt","guestEmail"]},"latest":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"method":{"type":"string","enum":["APP","AUTOMATION","HOSTEMI_DOCUMENT","MANUAL"]},"status":{"type":"string","enum":["PREPARED","SENT","ISSUED","FAILED","VOIDED"]},"provider":{"type":"string","nullable":true},"issuer":{"type":"string","nullable":true},"draftNumber":{"type":"string","nullable":true},"externalId":{"type":"string","nullable":true},"number":{"type":"string","nullable":true},"issuedAt":{"type":"string","nullable":true,"example":"2026-07-13"},"documentUrl":{"type":"string","nullable":true},"editUrl":{"type":"string","nullable":true},"reportedBy":{"type":"string","enum":["ADAPTER_CHECK","CALLBACK","HOST","AGENT",null],"nullable":true},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"reportedAmountMinor":{"type":"integer","nullable":true},"reportedCurrency":{"type":"string","nullable":true},"error":{"type":"string","nullable":true},"sentAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"changedSinceSent":{"type":"boolean"},"documentTitle":{"type":"string","nullable":true},"emailedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","method","status","amountMinor","currency","createdAt","changedSinceSent"],"nullable":true}},"required":["details","status","method","app","automationReady","ready","readyAt","action","document","latest"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The invoice details of a booking, and where its invoice stands"}},"/invoices":{"get":{"description":"`status`: `not_invoiced` (default: the guest arrived, and no invoice reported as issued), `sent`, `issued`, `failed` or `all`. Optional `propertyId`, `from` (departing on or after, YYYY-MM-DD), `to` (arriving on or before), `cursor`, `take` (max 200). Each item: booking id and code, listing, guest, dates, total in minor units, payment status, invoice `status`, `number`, `issuer`, `ready` and `readyAt`.","operationId":"listInvoices","parameters":[],"responses":{"200":{"description":"Bookings by invoicing state (the invoice to-do list): booking, listing, guest, dates, total in minor units, payment state, the invoice status, number, issuer, ready and readyAt; cursor for the next page (null on the last).","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"reservationId":{"type":"string"},"code":{"type":"string","nullable":true},"propertyId":{"type":"string"},"listing":{"type":"string","nullable":true},"unit":{"type":"string","nullable":true},"guest":{"type":"string","nullable":true,"description":"Last name, first name."},"platform":{"type":"string","example":"BOOKING_COM","description":"Where the booking came from: DIRECT, MANUAL, BOOKING_COM, AIRBNB, SZALLAS_HU, …"},"arrivalDate":{"type":"string","example":"2026-07-10"},"departureDate":{"type":"string","example":"2026-07-13"},"currency":{"type":"string"},"totalMinor":{"type":"integer"},"paymentStatus":{"type":"string","enum":["UNPAID","PARTIALLY_PAID","PAID","REFUNDED","PARTIALLY_REFUNDED"],"description":"PAID when the platform collects the money."},"status":{"type":"string","enum":["NOT_INVOICED","PREPARED","SENT","INVOICED","FAILED"]},"ready":{"type":"boolean"},"readyAt":{"type":"string","format":"date-time","nullable":true},"number":{"type":"string","nullable":true,"description":"The issued invoice number."},"issuer":{"type":"string","nullable":true},"error":{"type":"string","nullable":true,"description":"Only when the latest send failed."}},"required":["reservationId","code","propertyId","listing","unit","guest","platform","arrivalDate","departureDate","currency","totalMinor","paymentStatus","status","ready","readyAt","number","issuer","error"]}},"cursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page; null on the last."}},"required":["items","cursor"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Bookings by invoice status: the to-do list of invoices"}},"/reservations/{id}/invoices/send":{"post":{"operationId":"sendInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"The booking's invoice view after sending."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Send the booking to the listing's invoicing: a draft in the host's app, or the event to their automation"}},"/reservations/{id}/invoices/issue":{"post":{"description":"A branded document from the invoice details, numbered from the workspace's own sequence (`2026-0001`), reported to no tax authority. Titled by the listing's country: \"Invoice\" where a self-issued invoice is lawful, \"Payment confirmation\" (\"This is not a tax invoice\") where invoices must be reported (HU, IT, PL, RO, PT, ES, GR, FR). Body: `email` (default true). Only after check-in (400 `NOT_READY_TO_INVOICE` with `readyAt`). Calling it again returns the same document (and e-mails it again with `email`). 409 `ALREADY_INVOICED` when invoiced elsewhere. Fires `invoice.issued`. Always asks the host first unless the workspace skips approvals.","operationId":"issueInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueInvoiceDocumentDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"The booking's invoice view, status INVOICED, with `document.url`."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Hostemi issues the booking's invoice itself and e-mails it to the guest"}},"/reservations/{id}/invoices":{"post":{"operationId":"reportInvoiceIssued","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkInvoicedDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"The booking's invoice view, status INVOICED."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]}],"summary":"Report that the booking's invoice was issued, with its number"}},"/properties/{id}/invoicing":{"get":{"description":"`method` (APP, AUTOMATION, HOSTEMI_DOCUMENT, MANUAL or null), `provider` and `hasCredential` (the app key itself is never returned), `autoSend` (send automatically, off by default) and its `trigger` (CHECK_IN, CHECKOUT or PAID; never before check-in), `stayLine` (PLACE, ROOM, PERSON), `pricesIncludeVat`, `issuer` (name, address, tax and VAT number), `chargesVat`, `vatRateBp`, `vatExemptionText`, `country` and the built-in `apps` available for it.","operationId":"getInvoiceSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"How the property invoices: method, provider and hasCredential (the app's key is write-only, never returned), autoSend and trigger, stayLine, pricesIncludeVat, issuer, VAT, country, the apps available and documentTitle.","content":{"application/json":{"schema":{"type":"object","properties":{"method":{"type":"string","enum":["APP","AUTOMATION","HOSTEMI_DOCUMENT","MANUAL",null],"nullable":true},"trigger":{"type":"string","enum":["CHECK_IN","CHECKOUT","PAID"]},"autoSend":{"type":"boolean"},"issuer":{"type":"object","properties":{"name":{"type":"string","nullable":true},"addressLine":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"taxNumber":{"type":"string","nullable":true},"vatNumber":{"type":"string","nullable":true}},"required":["name","addressLine","postalCode","city","country","taxNumber","vatNumber"]},"chargesVat":{"type":"boolean"},"vatRateBp":{"type":"integer","nullable":true,"example":1800,"description":"Basis points: 1800 = 18%."},"vatExemptionText":{"type":"string","nullable":true},"stayLine":{"type":"string","enum":["PLACE","ROOM","PERSON"]},"pricesIncludeVat":{"type":"boolean"},"provider":{"type":"string","enum":["SZAMLAZZ","BILLINGO"]},"vatMode":{"type":"string","enum":["AAM","VAT_5","VAT_27"]},"ifaEnabled":{"type":"boolean"},"ifaPerNightMinor":{"type":"integer"},"language":{"type":"string","enum":["hu","en"]},"prefix":{"type":"string","nullable":true},"paymentMethodLabel":{"type":"string"},"bankName":{"type":"string","nullable":true},"bankAccount":{"type":"string","nullable":true},"documentBlockId":{"type":"integer","nullable":true},"hasCredential":{"type":"boolean","description":"An app key is saved. The key itself is write-only and never returned."},"lastTestedAt":{"type":"string","format":"date-time","nullable":true},"lastTestOk":{"type":"boolean","nullable":true},"lastTestError":{"type":"string","nullable":true},"country":{"type":"string","nullable":true,"description":"The listing's country (ISO 3166-1 alpha-2)."},"apps":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["SZAMLAZZ","BILLINGO"]},"name":{"type":"string"},"available":{"type":"boolean"}},"required":["provider","name","available"]}},"documentTitle":{"type":"string","enum":["invoice","safe"],"description":"What Hostemi's own invoice is called in the listing's country: invoice, or safe (a payment confirmation, \"This is not a tax invoice\")."}},"required":["method","trigger","autoSend","issuer","chargesVat","vatRateBp","vatExemptionText","stayLine","pricesIncludeVat","provider","vatMode","ifaEnabled","ifaPerNightMinor","language","prefix","paymentMethodLabel","bankName","bankAccount","documentBlockId","hasCredential","lastTestedAt","lastTestOk","lastTestError","country","apps","documentTitle"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"How a listing invoices: method, seller details, VAT, automatic sending"},"put":{"description":"Body: any of `method`, `provider` (SZAMLAZZ or BILLINGO, Hungarian listings only), `apiKey` (write only), `autoSend` with `trigger` (CHECK_IN, CHECKOUT, PAID), `stayLine` (PLACE, ROOM, PERSON: how the stay line reads), `pricesIncludeVat`, `issuerName`, `issuerAddressLine`, `issuerPostalCode`, `issuerCity`, `issuerCountry`, `issuerTaxNumber`, `issuerVatNumber`, `chargesVat`, `vatRateBp`, `vatExemptionText`, `language` (hu, en). The app and the automation need a paid plan. Asks the host first in Approval mode.","operationId":"setInvoiceSettings","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetInvoiceSettingsDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"The invoicing settings of the listing now."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change how a listing invoices"}},"/reservations/{id}/billing":{"get":{"description":"`billing` (companyName, taxNumber, addressLine, city, postalCode, countryCode, email, source GUEST/HOST/AGENT, updatedAt) or null; `requestedAt` (when the guest was last asked); `guestEmail`. They are the `buyer` of the invoice details.","operationId":"getBookingBilling","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The buyer's billing details of a booking (null when none), when the guest was last asked, and whether the booking has a guest e-mail.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"billing":{"type":"object","nullable":true,"additionalProperties":true,"properties":{"companyName":{"type":"string","nullable":true},"taxNumber":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"source":{"type":"string"},"updatedAt":{"type":"string"}}},"requestedAt":{"type":"string","nullable":true},"guestEmail":{"type":"boolean"}},"required":["billing","requestedAt","guestEmail"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The buyer's billing details of a booking"},"put":{"description":"Body: `companyName`, `taxNumber`, `addressLine`, `city`, `postalCode`, `countryCode` (two letters), `email`. Replaces all; all empty clears them. A company needs the address (400 `BILLING_COMPANY_NEEDS_ADDRESS`).","operationId":"setBookingBilling","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceBillingDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"`{ billing, requestedAt, guestEmail }`."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set the buyer's billing details of a booking"}},"/reservations/{id}/billing/ask":{"post":{"description":"A fresh link (the previous one stops working), e-mailed through the booking's conversation. Without a guest e-mail nothing is sent: `sent: false` and `url` to pass on. 400 `BILLING_CLOSED` for a cancelled booking or one that ended over 60 days ago. Asks the host first unless the workspace skips approvals.","operationId":"askBookingBilling","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"`{ billing, requestedAt, guestEmail, url, sent }`."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"E-mail the guest a link to add their billing details"}},"/invoicing/accountant":{"get":{"description":"`enabled`, `email`, `dayOfMonth` (1..28), `lastPeriod` (YYYY-MM), `lastSentAt`, `lastError`, `nextSendOn`. On that day the accountant gets a link (30 days) to last month's bookings CSV.","operationId":"getAccountantReport","parameters":[],"responses":{"200":{"description":"The monthly e-mail to the host's accountant: on or off, the address, the day of the month, the last month sent and the next send day.","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"email":{"type":"string","nullable":true},"dayOfMonth":{"type":"integer"},"lastPeriod":{"type":"string","nullable":true},"lastSentAt":{"type":"string","nullable":true},"lastError":{"type":"string","nullable":true},"nextSendOn":{"type":"string","nullable":true}},"required":["enabled","email","dayOfMonth","lastPeriod","lastSentAt","lastError","nextSendOn"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The monthly e-mail to your accountant"},"put":{"description":"Body: `enabled`, `email` (required when on), `dayOfMonth` (1..28, default 1). Needs the plan that exports reports. Asks the host first unless the workspace skips approvals.","operationId":"setAccountantReport","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountantReportDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"The accountant e-mail settings now."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Turn the monthly e-mail to your accountant on or off"}},"/reservations/{id}/access":{"get":{"description":"`doors`: one per smart lock that opens the booking's listing, with `state` (ready, sent to the host's own system, working, problem with `error`, removed, waiting until `makesCodesOn`), `validFrom` / `validUntil` (UTC) and `firstUsedAt`. `code` (one code for every door) and each door's `code` are given for confirmed bookings only. `summary` is one sentence.","operationId":"getBookingAccess","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"How the booking's guest gets in: per door the state (ready, sent, working, problem, removed, waiting), the validity window (UTC) and the first use. The code (code, and code per door) is present only for a confirmed or checked-in booking and a ready door, otherwise null; codeLast2 is the last two digits.","content":{"application/json":{"schema":{"type":"object","properties":{"reservationId":{"type":"string"},"doors":{"type":"array","items":{"type":"object","properties":{"deviceId":{"type":"string"},"grantId":{"type":"string","nullable":true,"description":"null until a code was asked for this door."},"name":{"type":"string"},"provider":{"type":"string","example":"nuki","description":"The lock account: nuki, tedee, own_system, …"},"state":{"type":"string","enum":["ready","sent","working","problem","removed","waiting"]},"validFrom":{"type":"string","format":"date-time"},"validUntil":{"type":"string","format":"date-time"},"firstUsedAt":{"type":"string","format":"date-time","nullable":true},"error":{"type":"string","nullable":true,"description":"Only when state is problem."},"code":{"type":"string","nullable":true,"description":"The door code, plain text: only on a CONFIRMED or CHECKED_IN booking whose door is ready or sent; else null."},"codeLast2":{"type":"string","nullable":true,"description":"The last two digits of the code, kept even where `code` is withheld."}},"required":["deviceId","grantId","name","provider","state","validFrom","validUntil","firstUsedAt","error","code","codeLast2"]}},"code":{"type":"string","nullable":true,"description":"One code for every door; null when the doors differ or any door has no code yet."},"makesCodesOn":{"type":"string","nullable":true,"example":"2026-12-01","description":"The day the codes will be made (30 days before arrival); null when they are made now."},"timeZone":{"type":"string","example":"Europe/Berlin"},"room":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"auto":{"type":"boolean","description":"Picked by Hostemi (the first room free for the stay), not by the host."}},"required":["id","name","auto"],"nullable":true,"description":"Only for a listing with several rooms where a room has its own lock: the booking’s room; null when none is assigned."},"rooms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"takenBy":{"type":"string","nullable":true,"description":"The booking number holding it those nights."}},"required":["id","name","takenBy"]}},"summary":{"type":"string"}},"required":["reservationId","doors","code","makesCodesOn","timeZone","summary"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"How the guest of a booking gets in: their own door code and each door's state"},"post":{"description":"`{ \"retry\": true }` makes the codes of the doors that failed again. `{ \"from\": \"…Z\", \"until\": \"…Z\" }` moves this booking's window (an early check-in); a later check-in time change on the listing does not move it back. `{ \"roomId\": \"…\" }` puts the booking in that room of a several-room listing (its room lock gets the code; `null` lets Hostemi pick a free room). Asks the host first in Approval mode.","operationId":"updateBookingAccess","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingAccessDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"The booking's access after the change."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Make a booking's door code again, or move the window it works in"}},"/properties/{id}/locks":{"get":{"description":"`locks`: name, brand, `unitId` (null: every listing of the property, a front door), `unitRoomId` (one room of a several-room listing), `batteryLevel` / `batteryLow` and online state; `timing`: minutes the codes start before check-in and stop after check-out; `rooms`: the rooms of several-room listings; `heating`: heating zones (`leadHours`, `comfortC`, `setbackC`; null setback = away mode).","operationId":"listLocks","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The property's smart locks: name, brand, which listing it opens (unitId null: the whole property), battery and online state; timing: how many minutes before check-in the code starts and after check-out it stops. The backup code is never returned, only whether it is set (backupCodeSet).","content":{"application/json":{"schema":{"type":"object","properties":{"propertyId":{"type":"string"},"timing":{"type":"object","properties":{"startOffsetMin":{"type":"integer","description":"Minutes the codes start before check-in."},"endOffsetMin":{"type":"integer","description":"Minutes the codes stop after check-out."}},"required":["startOffsetMin","endOffsetMin"]},"backupCodeSet":{"type":"boolean","description":"The property has a backup door code. The code itself is never returned here."},"locks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"provider":{"type":"string","example":"nuki"},"accountName":{"type":"string"},"accountStatus":{"type":"string","enum":["CONNECTED","NEEDS_RECONNECT","DISCONNECTED"]},"name":{"type":"string"},"unitId":{"type":"string","nullable":true,"description":"null: the lock opens every listing of the property (a front door)."},"opens":{"type":"string","nullable":true,"description":"The name of the listing it opens; null for the whole property."},"online":{"type":"boolean","nullable":true},"batteryLow":{"type":"boolean","nullable":true},"batteryLevel":{"type":"integer","nullable":true,"description":"Percent, when the lock tells it."},"lastSeenAt":{"type":"string","format":"date-time","nullable":true},"unitRoomId":{"type":"string","nullable":true,"description":"The room it opens, in a listing with several rooms."},"startOffsetMin":{"type":"integer"},"endOffsetMin":{"type":"integer"}},"required":["id","accountId","provider","accountName","accountStatus","name","unitId","opens","online","batteryLow","startOffsetMin","endOffsetMin"]}},"rooms":{"type":"array","items":{"type":"object","properties":{"unitId":{"type":"string"},"name":{"type":"string"},"rooms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["unitId","name","rooms"]}},"heating":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"accountName":{"type":"string"},"accountStatus":{"type":"string","enum":["CONNECTED","NEEDS_RECONNECT","DISCONNECTED"]},"name":{"type":"string"},"unitId":{"type":"string","nullable":true},"opens":{"type":"string","nullable":true},"leadHours":{"type":"integer","description":"Hours before check-in the warm-up starts."},"comfortC":{"type":"number","nullable":true},"setbackC":{"type":"number","nullable":true,"description":"After check-out; null: the system’s away mode."}},"required":["id","accountId","name","unitId","leadHours","comfortC","setbackC"]}}},"required":["propertyId","timing","backupCodeSet","locks"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The smart locks of a property and what each opens"}},"/heating/{id}":{"put":{"description":"Heating zones are added in the app (they need the host's own system). `leadHours` 0 to 12 before check-in, `comfortC` 10 to 28, `setbackC` 5 to 22 or null (the system's away mode). Hostemi sends `stay.arriving` / `stay.departed` to the host's system at those times. Asks the host first in Approval mode.","operationId":"updateHeating","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHeatingDto"}}}},"responses":{"200":{"description":"After the heating-zone change, the property's smart locks and heating (heating: leadHours, comfortC, setbackC; setbackC null: the system's own away mode).","content":{"application/json":{"schema":{"type":"object","properties":{"propertyId":{"type":"string"},"timing":{"type":"object","properties":{"startOffsetMin":{"type":"integer","description":"Minutes the codes start before check-in."},"endOffsetMin":{"type":"integer","description":"Minutes the codes stop after check-out."}},"required":["startOffsetMin","endOffsetMin"]},"backupCodeSet":{"type":"boolean","description":"The property has a backup door code. The code itself is never returned here."},"locks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"provider":{"type":"string","example":"nuki"},"accountName":{"type":"string"},"accountStatus":{"type":"string","enum":["CONNECTED","NEEDS_RECONNECT","DISCONNECTED"]},"name":{"type":"string"},"unitId":{"type":"string","nullable":true,"description":"null: the lock opens every listing of the property (a front door)."},"opens":{"type":"string","nullable":true,"description":"The name of the listing it opens; null for the whole property."},"online":{"type":"boolean","nullable":true},"batteryLow":{"type":"boolean","nullable":true},"batteryLevel":{"type":"integer","nullable":true,"description":"Percent, when the lock tells it."},"lastSeenAt":{"type":"string","format":"date-time","nullable":true},"unitRoomId":{"type":"string","nullable":true,"description":"The room it opens, in a listing with several rooms."},"startOffsetMin":{"type":"integer"},"endOffsetMin":{"type":"integer"}},"required":["id","accountId","provider","accountName","accountStatus","name","unitId","opens","online","batteryLow","startOffsetMin","endOffsetMin"]}},"rooms":{"type":"array","items":{"type":"object","properties":{"unitId":{"type":"string"},"name":{"type":"string"},"rooms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["unitId","name","rooms"]}},"heating":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"accountName":{"type":"string"},"accountStatus":{"type":"string","enum":["CONNECTED","NEEDS_RECONNECT","DISCONNECTED"]},"name":{"type":"string"},"unitId":{"type":"string","nullable":true},"opens":{"type":"string","nullable":true},"leadHours":{"type":"integer","description":"Hours before check-in the warm-up starts."},"comfortC":{"type":"number","nullable":true},"setbackC":{"type":"number","nullable":true,"description":"After check-out; null: the system’s away mode."}},"required":["id","accountId","name","unitId","leadHours","comfortC","setbackC"]}}},"required":["propertyId","timing","backupCodeSet","locks"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Change a heating zone: warm-up temperature and lead, the temperature after check-out"}},"/reservations/{id}/balance":{"get":{"description":"For website bookings that paid a deposit online. `state`: `scheduled` (the guest gets a card payment link on `dueOn`), `due`, `overdue` (arrival in two days or less, still open), `paid`, `none` (nothing to collect online). `canChargeSavedCard`: the guest kept their card at the deposit checkout.","operationId":"getBookingBalance","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The rest of a website deposit booking: state (none, scheduled, due, overdue, paid), how much is owed, due when, and the mails sent about it.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"reservationId":{"type":"string"},"state":{"type":"string","enum":["none","scheduled","due","overdue","paid"]},"owedMinor":{"type":"integer"},"currency":{"type":"string"},"dueOn":{"type":"string","nullable":true},"canRequest":{"type":"boolean"},"canChargeSavedCard":{"type":"boolean"},"stripeReady":{"type":"boolean"},"mails":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"kind":{"type":"string","enum":["due","reminder"]},"status":{"type":"string"}},"required":["kind","status"]}}},"required":["reservationId","state"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The rest of a website deposit booking: how much, due when, paid or not"}},"/reservations/{id}/balance/request":{"post":{"description":"Queues the \"rest is due\" e-mail; it goes out within a minute. A second call within ten minutes sends nothing more (`alreadyAsked: true`). Asks the host first unless the mode is Dangerously skip.","operationId":"requestBookingBalance","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"`{ queued, alreadyAsked, balance }`."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"E-mail the guest the card payment link for the rest, now"}},"/reservations/{id}/balance/charge-saved-card":{"post":{"description":"Only when `canChargeSavedCard`. Never automatic: a host action, always asked for first. `charged: false` with `code` (CARD_DECLINED, AUTHENTICATION_REQUIRED, …) and `message` when the bank refuses; then send the payment link instead.","operationId":"chargeBookingSavedCard","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"`{ charged, status?, amountMinor?, code?, message?, balance }`."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Charge the rest to the card the guest kept at the deposit checkout"}},"/properties/{id}/balance-due-days":{"get":{"description":"The listing's setting for website bookings paid with a deposit: the guest is asked for the rest this many days before arrival (`balanceDueDays`, between `min` and `max`). Preview `payments.balance`.","operationId":"getBalanceDueDays","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"How many days before arrival the rest of a website deposit is due on this listing.","content":{"application/json":{"schema":{"type":"object","properties":{"propertyId":{"type":"string"},"balanceDueDays":{"type":"integer"},"min":{"type":"integer"},"max":{"type":"integer"}},"required":["propertyId","balanceDueDays","min","max"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"How many days before arrival the rest of a website deposit is due (default 14)"},"put":{"description":"`{ \"balanceDueDays\": 1..90 }`. A booking made later than that pays in full at booking.","operationId":"setBalanceDueDays","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetBalanceDueDaysDto"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"`{ propertyId, balanceDueDays, min, max }`."}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Set how many days before arrival the rest of a website deposit is due"}},"/reports/distributions":{"get":{"description":"Over the same counted bookings as `/reports/summary`. `pace`: booked nights of the period already on the books 90, 60, 30, 14, 7 and 0 days before it starts (`thisYearNights`), against the same dates last year (`lastYearNights`); booked = when the guest booked. `lengthOfStay`: bookings arriving in the period by nights (1, 2, 3–4, 5–7, 8+). `leadTime`: the same bookings by days between booking and arrival (0–2, 3–7, 8–30, 31–90, 90+). Optional `unitId` for one listing.","operationId":"getReportsDistributions","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}}],"responses":{"200":{"description":"Pace, length of stay and lead time over the counted bookings of the period.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"from":{"type":"string","example":"2026-11-01"},"to":{"type":"string","example":"2026-11-30"},"pace":{"type":"array","items":{"type":"object","properties":{"daysOut":{"type":"integer"},"thisYearNights":{"type":"integer"},"lastYearNights":{"type":"integer"}},"required":["daysOut","thisYearNights","lastYearNights"]}},"lengthOfStay":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string","example":"3–4"},"bookings":{"type":"integer"}},"required":["bucket","bookings"]}},"leadTime":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string","example":"8–30"},"bookings":{"type":"integer"}},"required":["bucket","bookings"]}}},"required":["pace","lengthOfStay","leadTime"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Pace, length of stay and lead time"}},"/reports/bookings.csv":{"get":{"description":"Every counted booking (confirmed, checked in, checked out) with a night in the period, every currency: code, listing, platform, booked on, arrival, departure, nights (and in the period), rooms, adults / children / infants, guest country, currency, total, taxes, extras, fees, revenue of the stay and in the period, commission in the period (and its source), what the host keeps, net payout, paid so far, payment status. Amounts in the booking's own currency, with that currency's decimals (JPY none, EUR two). JSON `{ csv, filename }` (CSV with BOM, semicolons). Complete plan (403 PLAN_REQUIRED).","operationId":"exportReportsBookingsCsv","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}}],"responses":{"200":{"description":"Bookings for the accountant (one row per booking) as CSV with BOM, and the file name.","content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","description":"CSV with a UTF-8 BOM."},"filename":{"type":"string","example":"bookings-2026-11-01-2026-11-30.csv"}},"required":["csv","filename"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Bookings for the accountant, one row per booking, as CSV"}},"/reports/tourist-tax.csv":{"get":{"description":"Per property: the tourist tax rule (per guest night, or a percentage of the room price), guest nights, exempt guest nights by reason (under the age limit, past the night cap, or the exemption the host recorded at check-in, NTAK im1..im10), taxable guest nights, the base and the tax; then one row per booking with a night in the month. Guests who checked in online are counted one by one from their birth year; otherwise children on the booking are exempt and adults taxed. JSON `{ csv, filename }`. Every plan.","operationId":"exportTouristTaxCsv","parameters":[{"name":"propertyId","required":false,"in":"query","description":"One property; omitted = one section per property.","schema":{"type":"string"}},{"name":"month","required":true,"in":"query","description":"YYYY-MM.","schema":{"type":"string"}}],"responses":{"200":{"description":"The monthly tourist tax return per property as CSV with BOM, and the file name.","content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","description":"CSV with a UTF-8 BOM."},"filename":{"type":"string","example":"tourist-tax-2026-11.csv"}},"required":["csv","filename"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"The monthly tourist tax return, per property, as CSV"}},"/reports/payouts":{"get":{"description":"Payouts received in the period (default: this month), newest first: `kind` STRIPE (the host's Stripe payouts, recorded by themselves), PLATFORM (a platform paid for a booking) or MANUAL; `receivedOn`, `amountMinor`, `currency`, `reservationId` / `reservationCode`, `source`, `reference`, `note`; `totals` per currency. A property's list leaves out Stripe payouts (they cover the whole workspace). The cash-basis figure of `/reports/summary` (`received`) also counts cash and transfers recorded on bookings.","operationId":"listPayouts","parameters":[{"name":"propertyId","required":false,"in":"query","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","description":"Inclusive YYYY-MM-DD.","schema":{"type":"string"}},{"name":"from","required":false,"in":"query","description":"Inclusive YYYY-MM-DD (received on).","schema":{"type":"string"}}],"responses":{"200":{"description":"Money received in the period, newest first, and the totals per currency.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"from":{"type":"string"},"to":{"type":"string"},"payouts":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["STRIPE","PLATFORM","MANUAL"]},"receivedOn":{"type":"string","example":"2026-11-12"},"amountMinor":{"type":"integer"},"currency":{"type":"string","example":"EUR"},"propertyId":{"type":"string","nullable":true},"reservationId":{"type":"string","nullable":true},"reservationCode":{"type":"string","nullable":true},"source":{"type":"string","nullable":true},"reference":{"type":"string","nullable":true},"note":{"type":"string","nullable":true}},"required":["id","kind","receivedOn","amountMinor","currency"]}},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"amountMinor":{"type":"integer"}},"required":["currency","amountMinor"]}}},"required":["payouts","totals"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:read"]}],"summary":"Money received, by date"},"post":{"description":"Body: `receivedOn` (YYYY-MM-DD, required); `reservationId` (a platform paid for this booking: amount, currency, platform and property default to the booking's payout) or `amountMinor` + `currency` (+ optional `propertyId`, `source`); `reference`, `note`. With a platform it is a PLATFORM payout, otherwise MANUAL. Stripe payouts arrive by themselves. Applies without asking in every approval mode (bookkeeping, nothing leaves Hostemi).","operationId":"createPayout","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePayoutDto"}}}},"responses":{"201":{"description":"The recorded payout.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["STRIPE","PLATFORM","MANUAL"]},"receivedOn":{"type":"string","example":"2026-11-12"},"amountMinor":{"type":"integer"},"currency":{"type":"string","example":"EUR"},"propertyId":{"type":"string","nullable":true},"reservationId":{"type":"string","nullable":true},"reservationCode":{"type":"string","nullable":true},"source":{"type":"string","nullable":true},"reference":{"type":"string","nullable":true},"note":{"type":"string","nullable":true}},"required":["id","kind","receivedOn","amountMinor","currency"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Record money received"}},"/reports/payouts/{id}":{"delete":{"description":"Only PLATFORM and MANUAL entries; a Stripe payout follows Stripe (400 PAYOUT_FROM_STRIPE). Asks the host first in Approval mode.","operationId":"deletePayout","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The entry is gone.","content":{"application/json":{"schema":{"type":"object","properties":{"removed":{"type":"boolean"},"id":{"type":"string"}},"required":["removed","id"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"202":{"description":"Held for the host (agent approval mode). Nothing has changed yet: give the host `approvalUrl`, then poll `GET /public/v1/approvals/{approvalId}`. The host approves in the app; the API has no approve route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApprovalProposal"}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"apiKey":[]},{"oauth2":["pms:write"]}],"summary":"Remove a received-money entry"}},"/status":{"get":{"description":"Returns the API version, the current server time, and absolute URLs for every machine-readable document Hostemi publishes: the OpenAPI spec, the OAuth metadata, the MCP endpoint and the developer documentation. It also states the scopes that exist and how a human obtains a key. This is the only route that answers without a credential, and it reads no workspace data. Rate limits: RFC 9331 RateLimit-Limit / Remaining / Reset / Policy on every response; 429 adds Retry-After. Default authenticated bucket is API_LIMIT (90/hour) per credential; this route is 120/minute per IP.","operationId":"getStatus","parameters":[],"responses":{"200":{"description":"The API version, the server clock, and where every machine-readable document lives.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"string"},"status":{"type":"string","enum":["ok"]},"version":{"type":"string","example":"v1"},"time":{"type":"string","format":"date-time"},"documentation":{"type":"object","additionalProperties":true},"authentication":{"type":"object","additionalProperties":true},"mcp":{"type":"object","additionalProperties":true},"scopes":{"type":"object","additionalProperties":true},"rateLimits":{"type":"object","additionalProperties":true},"versioning":{"type":"object","additionalProperties":true}},"required":["name","status","version","time"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"Status and discovery. The only route that answers without a key.","x-rate-limit":{"default":"90 requests per hour per credential (API_LIMIT, default 90)","status":"120 requests per minute per IP","headers":["RateLimit-Limit","RateLimit-Remaining","RateLimit-Reset","RateLimit-Policy"],"retryAfterOn429":true},"security":[]}},"/schemas/invoice-details.json":{"get":{"description":"A JSON Schema (draft 2020-12) document, served as `application/schema+json`, describing the `details` object of `GET /reservations/:id/invoice-details` and of the `invoice.*` webhooks. No credential needed; cached for an hour. The same file is checked in as docs/schemas/invoice-details.v2.json.","operationId":"getInvoiceDetailsSchema","parameters":[],"responses":{"200":{"description":"The JSON Schema of the invoice details (hostemi.invoice-details/2, draft 2020-12), Content-Type application/schema+json. Identical to docs/schemas/invoice-details.v2.json.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A JSON Schema (draft 2020-12) document; its `$id` is https://api.hostemi.com/public/v1/schemas/invoice-details.json.","properties":{"$schema":{"type":"string","enum":["https://json-schema.org/draft/2020-12/schema"]},"$id":{"type":"string","enum":["https://api.hostemi.com/public/v1/schemas/invoice-details.json"]},"title":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["object"]},"required":{"type":"array","items":{"type":"string"}},"properties":{"type":"object","additionalProperties":true}},"required":["$schema","$id","title","type","required","properties"]}}},"headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}}},"400":{"description":"The request body or a parameter did not validate. Permanent: fix the request, do not retry unchanged.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing, malformed, expired or unknown credential, or an OAuth token that was issued for another resource (a token for the MCP endpoint does not open the REST API). Permanent until the credential changes.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Authenticated, but this key lacks the scope (`code: SCOPE_REQUIRED`, `scope: pms:read` or `pms:write`), or the workspace plan does not include this (`code: PLAN_REQUIRED` with `plan`, `reason`, `message` and `fix`: no plan running or a plan without the API refuses every call; a plan that has ended keeps GET requests and refuses every write). The body names the missing scope and the key owner's role.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such object in this workspace. Also returned for an object that exists in another workspace, deliberately: an id is not a way to probe for it.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited. Retryable: wait for the number of seconds in `Retry-After`, or until the instant in `RateLimit-Reset`.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected failure on our side. Retryable with backoff.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this route.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window. Self-throttle on this.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets. A delta, not a timestamp.","schema":{"type":"integer"}},"RateLimit-Policy":{"description":"The quota and window, e.g. `60;w=3600`.","schema":{"type":"string"}},"Link":{"description":"RFC 8594 `rel=\"sunset\"` pointer to the deprecation policy. Present on every response; a `Sunset` header appears beside it only once a route is actually being retired.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"summary":"The JSON Schema of the invoice details (hostemi.invoice-details/2)","security":[{"apiKey":[]}]}}},"info":{"title":"Hostemi API","version":"1.0","description":"Hostemi is where a host runs a vacation rental: calendar, prices, bookings, guest messages, connected platforms and a booking website. This document describes the public REST API v1 (calendar, prices, bookings, blocks, platform connections, reports, guest messages) served at https://api.hostemi.com/public/v1. GET needs pms:read; writes need pms:write. A missing scope is 403 { code: SCOPE_REQUIRED, scope }. Writes accept Idempotency-Key (24h TTL).\n\nAuthentication: an API key sent as the whole Authorization header, or an OAuth 2.1 authorization code token with PKCE (S256). Both are declared under components.securitySchemes. Scopes: pms:read, pms:write.\n\nEvery change is first a stored preview with an id (chg_...): one sentence, the before and the after. Nothing changes until apply_change succeeds. The host chooses one of three settings in Hostemi under Settings, AI & apps, and no agent can change it: \"Ask before changes\" (the default) sends every change to the host to approve in Hostemi; \"Make routine changes\" applies everyday changes and still asks for risky ones (large price moves, closing many nights, cancelling a booking, sending a message to a guest, publishing); \"Make all changes without asking\" asks for nothing. Drafts (a reply draft, an edit to the unpublished website, closing a conversation) are saved at once in every setting. Deleting an account, disconnecting a platform or the payment account, keys, team and billing are for the host alone, in the app.\n\nOnboarding is self-serve. Sign up at https://hostemi.com/signup, then create a key yourself inside the app, under Settings, AI & apps. No sales contact, no demo request and no manual approval are involved. Connecting an AI, the command line and the API are part of the Pro and Complete plans, during the free trial too. On Basic, or without a plan, the connection still signs in and its tools answer PLAN_REQUIRED with a sentence to pass on to the host.\n\nEvery plan starts with a 7 day free trial. A card is collected when the trial starts and nothing is charged during it.\n\nMCP server: https://mcp.hostemi.com/mcp (Streamable HTTP, OAuth sign-in). Command line: npm i -g hostemi. Developer reference: https://hostemi.com/developers. API reference: https://hostemi.com/api. Product summary for assistants: https://hostemi.com/llms.txt. Support: hello@hostemi.com.","contact":{"name":"Hostemi support","email":"hello@hostemi.com","url":"https://hostemi.com/help"},"termsOfService":"https://hostemi.com/terms"},"servers":[{"url":"https://api.hostemi.com/public/v1","description":"Hostemi production API"}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"A Hostemi API key, sent as the whole header value: `Authorization: hst_...`. Keys are minted per workspace and carry scopes."},"oauth2":{"type":"oauth2","description":"OAuth 2.1 authorization code with PKCE (S256). Scopes: pms:read, pms:write.","flows":{"authorizationCode":{"authorizationUrl":"https://hostemi.com/oauth/authorize","tokenUrl":"https://api.hostemi.com/oauth/token","scopes":{"pms:read":"Read calendar, availability, prices, bookings, guests and the state of connected platforms.","pms:write":"Change prices, stay rules, blocks, bookings and guest-message drafts. The host chooses it when connecting; changes still follow the approval setting."}}}}},"schemas":{"UpdateCancellationPolicyDto":{"type":"object","properties":{"kind":{"type":"string","enum":["FLEXIBLE","MODERATE","FIRM","STRICT","NON_REFUNDABLE"],"example":"MODERATE","description":"One policy for the property: the direct site, guest e-mails and every channel that can take it."}},"required":["kind"]},"UpdateBookingSettingsDto":{"type":"object","properties":{"instantBook":{"type":"boolean","description":"true = Airbnb Instant Book everyone, and a paid direct booking confirms. false = Airbnb off, and a website booking stays a request (PROVISIONAL)."},"checkInFrom":{"type":"string","example":"15:00"},"checkInUntil":{"type":"object","example":"20:00","nullable":true},"checkOutUntil":{"type":"string","example":"10:00"},"allowsChildren":{"type":"boolean","description":"Children are welcome."},"allowsInfants":{"type":"boolean","description":"Infants are welcome."},"allowsPets":{"type":"boolean","description":"Pets are allowed."},"allowsSmoking":{"type":"boolean","description":"Smoking is allowed."},"allowsEvents":{"type":"boolean","description":"Events and parties are allowed."},"quietHoursFrom":{"type":"object","example":"22:00","nullable":true,"description":"Start of quiet hours. Empty or null: no quiet hours."},"quietHoursUntil":{"type":"object","example":"07:00","nullable":true},"maxGuests":{"type":"object","example":6,"nullable":true,"description":"The most guests the property takes. null: taken from the units' capacity."},"requireGuestPhone":{"type":"boolean","description":"Direct bookings must give a guest phone number (the booking engine refuses one without)."},"houseRulesText":{"type":"object","nullable":true,"description":"The host's own house-rules text; '' or null clears it."}}},"UpdateListingSettingsDto":{"type":"object","properties":{"weekendRateMinor":{"type":"object","description":"Friday + Saturday nightly price, minor units. null clears.","nullable":true},"minPriceMinor":{"type":"object","description":"The lowest nightly price the host accepts, minor units. null clears. A limit for price suggestions only: it never blocks a price the host sets.","nullable":true},"guestsIncluded":{"type":"number","example":2},"extraGuestFeeMinor":{"type":"object","description":"Per extra guest per night, minor units. null clears.","nullable":true},"cleaningFeeMinor":{"type":"object","description":"Stay cleaning fee, minor units. Canonical source; mirrored onto the website bookingSettings so the builder still shows it.","nullable":true},"weeklyDiscountBps":{"type":"object","description":"Discount from 7 nights, basis points. 1000 = 10 %. null clears.","nullable":true},"monthlyDiscountBps":{"type":"object","description":"Discount from 28 nights, basis points. null clears.","nullable":true},"leadTimeHours":{"type":"number","enum":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,48,72,168],"example":24},"maxDaysNotice":{"type":"number","enum":[-1,0,30,60,90,120,150,180,210,240,270,300,330,365],"example":365},"turnoverDays":{"type":"number","enum":[0,1,2],"example":1},"defaultMinNights":{"type":"object","nullable":true},"defaultMaxNights":{"type":"object","description":"null / omitted cap = no listing max. 0 also means no cap.","nullable":true},"checkInWeekdays":{"minItems":7,"maxItems":7,"example":[false,true,true,true,true,true,true],"description":"Allowed check-in weekdays, Monday first.","type":"array","items":{"type":"boolean"}},"checkOutWeekdays":{"minItems":7,"maxItems":7,"example":[true,true,true,true,true,true,true],"description":"Allowed check-out weekdays, Monday first.","type":"array","items":{"type":"boolean"}}}},"CreateReservationDto":{"type":"object","properties":{}},"CancelReservationDto":{"type":"object","properties":{}},"MoveReservationDto":{"type":"object","properties":{}},"PublicUpdateReservationDto":{"type":"object","properties":{}},"HoldReservationDto":{"type":"object","properties":{}},"CheckInDto":{"type":"object","properties":{}},"CheckOutDto":{"type":"object","properties":{}},"NoShowReportDto":{"type":"object","properties":{"waiveFees":{"type":"boolean","description":"Report the no-show with the fee waived. Omitted = the platform's setting (Settings of the platform page)."}}},"RecordPaymentDto":{"type":"object","properties":{}},"PublicRefundDto":{"type":"object","properties":{}},"UpdateGuestDto":{"type":"object","properties":{}},"BulkRatesDto":{"type":"object","properties":{}},"CreateBlockDto":{"type":"object","properties":{}},"PublicSendMessageDto":{"type":"object","properties":{"body":{"type":"string","maxLength":10000},"subject":{"type":"string","maxLength":200}},"required":["body"]},"ImportLinkDto":{"type":"object","properties":{}},"ApplyImportDto":{"type":"object","properties":{}},"SetRoundingModeDto":{"type":"object","properties":{}},"PriceRoundingResponseDto":{"type":"object","properties":{"propertyId":{"type":"string"},"rounding":{"type":"string","enum":["WHOLE","END_9","NONE"]}},"required":["propertyId","rounding"]},"ApprovalRequiredResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false],"description":"Nothing has changed yet."},"changeId":{"type":"string","example":"chg_cmwhv305i0005so2nkjia776a","description":"Pass it to POST /changes/:id/apply; GET /changes/:id tells where it stands."},"approvalId":{"type":"string","description":"The same record in the app (GET /approvals/:id)."},"action":{"type":"string","example":"api:PUT /units/:id/base-price"},"riskClass":{"type":"string","enum":["NORMAL","RISKY"]},"summary":{"type":"string","description":"One sentence saying exactly what would change. Read it to the host."},"preview":{"type":"object","additionalProperties":true,"description":"What the host is shown: label, before, after, and the call as it was sent."},"approvalPath":{"type":"string","example":"/app/approve/cmwhv305i0005so2nkjia776a"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/approve/cmwhv305i0005so2nkjia776a","description":"The host opens it signed in and approves or declines there."},"expiresAt":{"type":"string","format":"date-time"},"instruction":{"type":"string","description":"What to tell the host, in plain words."}},"required":["status","applied","changeId","approvalId","action","riskClass","summary","approvalUrl"]},"SetExchangeRateDto":{"type":"object","properties":{"rate":{"type":"object","description":"1 unit of the currency in the base currency, at most 8 decimals: \"392.15\" for €1 = Ft 392.15.","example":"392.15"},"rateDate":{"type":"object","description":"YYYY-MM-DD of the ECB reference rate it was taken from (the rate is then marked ECB)."},"useEcb":{"type":"boolean","description":"true: take today's ECB reference rate (no rate needed)."},"baseCurrency":{"type":"object","description":"ISO 4217 the rate is in; default the workspace's currency. Only for listings priced in another currency."}}},"PricingSignalsSetupDto":{"type":"object","properties":{"basePriceMinor":{"type":"object","nullable":true},"weekendPriceMinor":{"type":"object","nullable":true},"minNights":{"type":"number"},"cleaningFeeMinor":{"type":"object","nullable":true},"minPriceMinor":{"type":"object","nullable":true,"description":"The host's own lowest price: advice never goes below it. null = not set."}},"required":["basePriceMinor","weekendPriceMinor","minNights","cleaningFeeMinor","minPriceMinor"]},"PricingSignalsLastYearDto":{"type":"object","properties":{"sold":{"type":"number","description":"Nights sold in the end, the same weekdays 52 weeks earlier."},"soldByNow":{"type":"object","nullable":true,"description":"Nights already on the books at the same distance from the stay. null when a booking of those nights has no known booked-on time."},"soldPriceMinor":{"type":"object","nullable":true,"description":"Average price of those sold nights, minor units, without fees and taxes."}},"required":["sold","soldByNow"]},"PricingSignalsTotalsDto":{"type":"object","properties":{"forSale":{"type":"number"},"sold":{"type":"number"},"free":{"type":"number"},"soldPercent":{"type":"number","description":"sold / forSale, one decimal."},"soldLast7":{"type":"number"},"soldLast28":{"type":"number"},"cancelledLast28":{"type":"number"},"soldPriceMinor":{"type":"object","nullable":true},"lastYear":{"$ref":"#/components/schemas/PricingSignalsLastYearDto"},"bookings":{"type":"number"},"confidence":{"type":"string","enum":["unclear","low"],"description":"Only when few bookings stand behind the figure: `unclear` under 3, `low` under 10. Absent from 10 on."}},"required":["forSale","sold","free","soldPercent","soldLast7","soldLast28","lastYear","bookings"]},"PricingSignalsPriceRangeDto":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}},"required":["min","max"]},"PricingSignalsPeriodDto":{"type":"object","properties":{"from":{"type":"string","example":"2026-12-07","description":"First night of the row (a week, or one night with `detail=nights`)."},"to":{"type":"string","example":"2026-12-13","description":"Last night, inclusive."},"nights":{"type":"number"},"daysOut":{"type":"number","description":"Days from today to the first night; 0 when it has begun."},"forSale":{"type":"number","description":"Rooms times nights, minus what the host blocked."},"sold":{"type":"number","description":"Room-nights of confirmed, checked-in and checked-out bookings."},"free":{"type":"number","description":"Not sold, not blocked and on sale."},"blocked":{"type":"number"},"stopped":{"type":"number","description":"Unsold nights the host stopped selling with a stay rule."},"weekendSold":{"type":"number","description":"Friday and Saturday nights sold (weekly rows only)."},"weekendFree":{"type":"number","description":"Friday and Saturday nights free (weekly rows only)."},"priceFreeMinor":{"nullable":true,"description":"Lowest and highest current price of the free nights, minor units; null when none is free.","type":"object","allOf":[{"$ref":"#/components/schemas/PricingSignalsPriceRangeDto"}]},"minNights":{"type":"object","nullable":true,"description":"The usual minimum stay of the free nights."},"soldPriceMinor":{"type":"object","nullable":true,"description":"Average price of the sold nights, minor units, without cleaning fees, other fees and taxes."},"soldLast7":{"type":"number","description":"Of `sold`: booked in the last 7 days."},"soldLast28":{"type":"number","description":"Of `sold`: booked in the last 28 days."},"cancelledLast28":{"type":"number","description":"Room-nights of bookings cancelled in the last 28 days."},"lastYear":{"$ref":"#/components/schemas/PricingSignalsLastYearDto"},"bookings":{"type":"number","description":"Bookings this row and its last-year comparison rest on."},"confidence":{"type":"string","enum":["unclear","low"],"description":"Only when few bookings stand behind the figure: `unclear` under 3, `low` under 10. Absent from 10 on."}},"required":["from","to","nights","daysOut","forSale","sold","free","blocked","stopped","priceFreeMinor","minNights","soldPriceMinor","soldLast7","soldLast28","cancelledLast28","lastYear","bookings"]},"PricingSignalsCurvePointDto":{"type":"object","properties":{"daysOut":{"type":"number","example":21},"percent":{"type":"number","example":62.5,"description":"Share of the sold nights of the last 12 months already booked this many days before the night."}},"required":["daysOut","percent"]},"PricingSignalsCurveDto":{"type":"object","properties":{"soldByDaysOut":{"type":"array","items":{"$ref":"#/components/schemas/PricingSignalsCurvePointDto"}},"medianDaysOut":{"type":"object","nullable":true},"basedOnNights":{"type":"number"},"basedOnBookings":{"type":"number"},"confidence":{"type":"string","enum":["unclear","low"],"description":"Only when few bookings stand behind the figure: `unclear` under 3, `low` under 10. Absent from 10 on."}},"required":["soldByDaysOut","medianDaysOut","basedOnNights","basedOnBookings"]},"PricingSignalsWeekdayDto":{"type":"object","properties":{"weekday":{"type":"number","description":"1 = Monday … 7 = Sunday."},"soldPercent":{"type":"number","description":"Sold share of that weekday over the last 12 months."},"soldPriceMinor":{"type":"object","nullable":true}},"required":["weekday","soldPercent","soldPriceMinor"]},"PricingSignalsStaysDto":{"type":"object","properties":{"bookings":{"type":"number"},"averageNights":{"type":"object","nullable":true},"oneNightPercent":{"type":"object","nullable":true},"averageGuests":{"type":"object","nullable":true},"confidence":{"type":"string","enum":["unclear","low"],"description":"Only when few bookings stand behind the figure: `unclear` under 3, `low` under 10. Absent from 10 on."}},"required":["bookings","averageNights","oneNightPercent","averageGuests"]},"PricingSignalsPlatformDto":{"type":"object","properties":{"source":{"type":"string","example":"AIRBNB"},"nightsPercent":{"type":"number","description":"Share of the sold nights of the last 12 months."},"keptPercent":{"type":"object","nullable":true,"description":"What the platform kept of the money of the bookings that say so; null when none did."}},"required":["source","nightsPercent","keptPercent"]},"PricingSignalsGapDto":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"nights":{"type":"number","description":"1 to 3 free nights with a booking or a block on both sides."},"minNights":{"type":"object","nullable":true},"bookable":{"type":"boolean","description":"false when the minimum stay is longer than the gap."}},"required":["from","to","nights","minNights","bookable"]},"PricingSignalsPriceChangeDto":{"type":"object","properties":{"appliedOn":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"beforeMinor":{"type":"object","nullable":true},"afterMinor":{"type":"object","nullable":true},"soldInThe14DaysBefore":{"type":"number"},"soldInThe14DaysAfter":{"type":"number"},"daysSince":{"type":"number","description":"Under 14: the \"after\" count is not complete yet."}},"required":["appliedOn","from","to","beforeMinor","afterMinor","soldInThe14DaysBefore","soldInThe14DaysAfter","daysSince"]},"PricingSignalsQualityDto":{"type":"object","properties":{"historyMonths":{"type":"number","description":"Months of booking history behind the figures, 12 at most."},"bookedOnKnownPercent":{"type":"number","description":"Share of the bookings read whose booked-on time is known."},"lastYearOffsetDays":{"type":"number","example":364},"notes":{"type":"array","items":{"type":"string"}}},"required":["historyMonths","bookedOnKnownPercent","lastYearOffsetDays","notes"]},"PricingSignalsResponseDto":{"type":"object","properties":{"unitId":{"type":"string"},"propertyId":{"type":"string"},"currency":{"type":"string","example":"EUR"},"timezone":{"type":"string","example":"Europe/Vienna"},"listing":{"type":"object","additionalProperties":true,"description":"name, propertyName, town, country, lat and lon (two decimals), type, kind, sleeps, bedrooms, rooms."},"setup":{"$ref":"#/components/schemas/PricingSignalsSetupDto"},"today":{"type":"string","example":"2026-11-15","description":"Today in the property time zone."},"from":{"type":"string"},"to":{"type":"string"},"nights":{"type":"number"},"detail":{"type":"string","enum":["weeks","nights"]},"totals":{"$ref":"#/components/schemas/PricingSignalsTotalsDto"},"periods":{"type":"array","items":{"$ref":"#/components/schemas/PricingSignalsPeriodDto"}},"bookingCurve":{"$ref":"#/components/schemas/PricingSignalsCurveDto"},"weekdays":{"type":"array","items":{"$ref":"#/components/schemas/PricingSignalsWeekdayDto"}},"weekdaysConfidence":{"type":"string","enum":["unclear","low"],"description":"Only when few bookings stand behind the figure: `unclear` under 3, `low` under 10. Absent from 10 on."},"stays":{"$ref":"#/components/schemas/PricingSignalsStaysDto"},"platforms":{"type":"array","items":{"$ref":"#/components/schemas/PricingSignalsPlatformDto"}},"gaps":{"type":"array","items":{"$ref":"#/components/schemas/PricingSignalsGapDto"}},"priceChanges":{"description":"The last applied price changes of this listing that touch the period, newest first, five at most.","type":"array","items":{"$ref":"#/components/schemas/PricingSignalsPriceChangeDto"}},"property":{"type":"object","additionalProperties":true,"nullable":true,"description":"The same counts pooled over the property's listings of the same kind: `listings`, `totals`, `periods` (per week). null when the listing is alone in its kind."},"quality":{"$ref":"#/components/schemas/PricingSignalsQualityDto"}},"required":["unitId","propertyId","currency","timezone","listing","setup","today","from","to","nights","detail","totals","periods","bookingCurve","weekdays","stays","platforms","gaps","priceChanges","property","quality"]},"PricingSignalsOverviewRowDto":{"type":"object","properties":{"unitId":{"type":"string"},"unitName":{"type":"string"},"propertyId":{"type":"string"},"propertyName":{"type":"string"},"currency":{"type":"string","example":"EUR"},"forSale":{"type":"number"},"sold":{"type":"number"},"free":{"type":"number"},"soldLast7":{"type":"number","description":"Of `sold`: booked in the last 7 days."}},"required":["unitId","unitName","propertyId","propertyName","currency","forSale","sold","free","soldLast7"]},"PricingSignalsOverviewResponseDto":{"type":"object","properties":{"today":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nights":{"type":"number"},"listings":{"type":"array","items":{"$ref":"#/components/schemas/PricingSignalsOverviewRowDto"}}},"required":["today","from","to","nights","listings"]},"PricingCommandPreviewDto":{"type":"object","properties":{"kind":{"type":"string","description":"Command kind: PRICING_BULK | CHANNEL_SETTINGS | DISCOUNTS_SET | FEES_SET | SEASON_UPSERT | SEASON_DELETE | SEASON_REORDER | TAXES_SET | CURRENCY_RULE | GUEST_PRICES (UI aliases such as `pricing.bulk` are accepted)."},"input":{"type":"object","description":"The kind-specific input."}},"required":["kind","input"]},"PricingCommandApplyDto":{"type":"object","properties":{"revision":{"type":"number","description":"The revision the preview returned."},"idempotencyKey":{"type":"string","description":"Same key on retry = applied once. Strongly recommended."}},"required":["revision"]},"SetUnitBasePriceDto":{"type":"object","properties":{}},"SetNonRefundableDto":{"type":"object","properties":{}},"ResolveRequestDto":{"type":"object","properties":{}},"ResolvePendingChangeDto":{"type":"object","properties":{}},"SendMessageDto":{"type":"object","properties":{}},"SetThreadClosedDto":{"type":"object","properties":{}},"ThreadDraftDto":{"type":"object","properties":{}},"PublicAttachmentFromUrlDto":{"type":"object","properties":{}},"ReviewReplyBodyDto":{"type":"object","properties":{}},"GuestReviewBodyDto":{"type":"object","properties":{}},"CreatePropertyDto":{"type":"object","properties":{}},"UpdatePropertyDto":{"type":"object","properties":{}},"CreateUnitDto":{"type":"object","properties":{}},"UpdateUnitDto":{"type":"object","properties":{}},"PutPhotosDto":{"type":"object","properties":{}},"PutUnitPhotosDto":{"type":"object","properties":{}},"MediaFromUrlDto":{"type":"object","properties":{}},"UpdateHouseRulesDto":{"type":"object","properties":{"allowsChildren":{"type":"boolean"},"allowsInfants":{"type":"boolean"},"allowsPets":{"type":"boolean"},"allowsSmoking":{"type":"boolean"},"allowsEvents":{"type":"boolean"},"quietHoursFrom":{"type":"object","example":"22:00","nullable":true},"quietHoursUntil":{"type":"object","example":"07:00","nullable":true},"maxGuests":{"type":"object","example":6,"nullable":true},"houseRulesText":{"type":"object","nullable":true,"description":"The host's own house rules text. Wins over the website copy and the generated sentence. '' or null clears it."}}},"UpdateWebsiteInfoDto":{"type":"object","properties":{"language":{"type":"string","enum":["hu","en","de"],"default":"hu"},"title":{"type":"string","description":"Hero and SEO title."},"tagline":{"type":"string","description":"One line under the title."},"description":{"type":"string"},"houseRules":{"type":"string","description":"The website's own house-rules text. Property.houseRulesText (PUT …/house-rules) wins over it in mails and booking settings."},"arrivalInfo":{"type":"string","description":"Parking, keys, doorbell."},"contactEmail":{"type":"string"},"contactPhone":{"type":"string"},"seoDescription":{"type":"string"}}},"BookingRecoveryDto":{"type":"object","properties":{}},"PublicConnectStartDto":{"type":"object","properties":{}},"LaneGoLiveDto":{"type":"object","properties":{}},"SaveLanePlanDto":{"type":"object","properties":{}},"PublicConnectionSettingsDto":{"type":"object","properties":{}},"SetHoldBackDto":{"type":"object","properties":{}},"AgentUpsertAutomationDto":{"type":"object","properties":{}},"TemplateLanguageDto":{"type":"object","properties":{}},"AgentUpsertTemplateDto":{"type":"object","properties":{}},"ScheduledSendNowDto":{"type":"object","properties":{}},"ChannelListingPolicyDto":{"type":"object","properties":{"policyCode":{"type":"object","nullable":true,"example":"better_strict_with_grace_period","description":"The channel's own cancellation policy code (one of `policyOptions[].code` of the listing view). null = follow the property's policy."},"instantBookMode":{"type":"string","nullable":true,"enum":["EVERYONE","WELL_REVIEWED","OFF"],"description":"Who may book instantly on this channel. Only `instantBookModes` of the listing view are accepted (some channels cannot turn it off). null = the channel default."}}},"UnpublishListingDto":{"type":"object","properties":{"reason":{"type":"string","description":"A `value` from `GET …/unpublish-reasons`. Required where the channel asks for a reason (`unpublishReasons: true`)."},"details":{"type":"string","description":"Free text sent with the reason."}}},"ListingPromotionDto":{"type":"object","properties":{"type":{"type":"string","example":"NEW_LISTING_PROMOTION","description":"One of `promotionTypes` of the listing view."},"enabled":{"type":"boolean"},"blackoutDates":{"nullable":true,"example":["2026-12-24","2026-12-31"],"description":"Nights the promotion does not apply to (YYYY-MM-DD), where the platform allows it (Airbnb: at most 30 a calendar year). The whole list replaces the current one; [] or null clears it; omitted = unchanged.","type":"array","items":{"type":"string"}}},"required":["type","enabled"]},"SetListingPromotionsDto":{"type":"object","properties":{"promotions":{"type":"array","items":{"$ref":"#/components/schemas/ListingPromotionDto"}}},"required":["promotions"]},"SetExtranetDealsDto":{"type":"object","properties":{"deals":{"example":["mobileRate","genius"],"description":"Deals the host runs in the platform's own extranet: mobileRate, genius, deals, countryRates, member, lastMinute, earlyBird, lengthOfStay, nonRefundable. The whole list replaces the current one. Display and advice only, nothing is sent.","type":"array","items":{"type":"string"}}},"required":["deals"]},"SetPlatformSettingsDto":{"type":"object","properties":{"settings":{"type":"object","additionalProperties":true,"example":{"welcomeMessage":"Hi! Please read the house rules before you book.","expectations":[{"type":"requires_stairs","details":"Third floor, no lift."}],"checkoutTasks":[{"task":"throw_trash"},{"task":"lock_up","details":"Leave the key in the box."}],"taxes":{"send":true,"registrationId":"MA12345","attestation":true}}}},"required":["settings"]},"ApplyOpportunityDto":{"type":"object","properties":{"inputs":{"type":"object","additionalProperties":true,"description":"Values for the opportunity's input fields, by `inputs[].key` (dots are fine)."}}},"SetNoShowPolicyDto":{"type":"object","properties":{"waivesFees":{"type":"object","nullable":true,"description":"true = waive the no-show fee when reporting; false = keep it; null = not chosen (kept)."}},"required":["waivesFees"]},"UpdateSiteBookingDto":{"type":"object","properties":{}},"SiteBookingResponseDto":{"type":"object","properties":{"mode":{"type":"string","enum":["ONLINE_PAYMENT","REQUEST","INSTANT"],"nullable":true,"description":"What the host chose; null = the default (online payment when Stripe is ready, else requests)."},"effectiveMode":{"type":"string","enum":["ONLINE_PAYMENT","REQUEST","INSTANT"],"description":"What guests get now."},"depositPercent":{"type":"number","example":30,"description":"The part taken online at booking, percent."},"depositChoices":{"example":[30,50,100],"type":"array","items":{"type":"number"}},"stripeReady":{"type":"boolean","description":"Whether the host’s Stripe account can take payments."},"requestHoldHours":{"type":"number","example":24,"description":"How long a request holds the nights, hours."},"instantHoldMinutes":{"type":"number","example":30,"description":"How long an instant booking waits for the guest to confirm by e-mail, minutes."},"note":{"type":"string","description":"Why guests do not get the chosen mode yet."}},"required":["mode","effectiveMode","depositPercent","depositChoices","stripeReady","requestHoldHours","instantHoldMinutes"]},"SitePreviewLinkResponseDto":{"type":"object","properties":{"previewUrl":{"type":"string","description":"Shows the draft: not public, not indexed, no booking. Anyone with the link can open it."},"previewExpiresAt":{"type":"string","format":"date-time","description":"The link stops working then (7 days)."},"previewImageUrl":{"type":"string","description":"A picture of the draft’s first screen."}},"required":["previewUrl","previewExpiresAt","previewImageUrl"]},"PublicSiteDomainDto":{"type":"object","properties":{}},"SiteDomainNameDto":{"type":"object","properties":{"name":{"type":"string","example":"www.example.com"},"primary":{"type":"boolean","description":"Guests see the site at this name; the other name redirects to it."},"status":{"type":"string","example":"pending","description":"pending, verified, active or error."},"error":{"type":"string","description":"What is wrong, when status is error."},"checkedAt":{"type":"string","format":"date-time"}},"required":["name","primary","status"]},"SiteDomainProviderDto":{"type":"object","properties":{"name":{"type":"string","example":"Cloudflare"},"dnsUrl":{"type":"string","description":"Where the DNS records are edited at this provider."}},"required":["name"]},"SiteDomainRecordDto":{"type":"object","properties":{"type":{"type":"string","example":"CNAME"},"host":{"type":"string","example":"www"},"value":{"type":"string","example":"sites.hostemi.site"},"found":{"description":"What DNS answers for it now.","type":"array","items":{"type":"string"}},"ok":{"type":"object","nullable":true,"description":"Whether the record is right; null before the first check."}},"required":["type","host","value"]},"SitePublishableDto":{"type":"object","properties":{"ok":{"type":"boolean","description":"Whether the plan lets the site be public now."},"reason":{"type":"object","nullable":true},"plan":{"type":"object","nullable":true},"message":{"type":"object","nullable":true}},"required":["ok"]},"SiteDomainsResponseDto":{"type":"object","properties":{"state":{"type":"string","enum":["none","pending","verified","active","error"]},"step":{"type":"string","enum":["waiting","checking","securing","publish","live","error"],"description":"What the host sees for the main name: waiting for the DNS record, checking it, securing (the certificate), live; publish = connected, starts when the site is published."},"enabled":{"type":"boolean","description":"Present and false while custom domains are not switched on yet (nothing can be added)."},"primary":{"type":"object","nullable":true,"description":"The main name, or null when no domain is connected."},"domains":{"type":"array","items":{"$ref":"#/components/schemas/SiteDomainNameDto"}},"provider":{"description":"Where the domain’s DNS is hosted, when it could be told.","allOf":[{"$ref":"#/components/schemas/SiteDomainProviderDto"}]},"records":{"description":"The exact DNS records to add.","type":"array","items":{"$ref":"#/components/schemas/SiteDomainRecordDto"}},"steps":{"description":"What the host does next, in plain words.","type":"array","items":{"type":"string"}},"publishable":{"$ref":"#/components/schemas/SitePublishableDto"},"note":{"type":"string"}},"required":["state","primary","domains","records","steps"]},"CreateSiteDto":{"type":"object","properties":{}},"SaveSiteDto":{"type":"object","properties":{}},"UpdateSiteThemeDto":{"type":"object","properties":{}},"AddSiteSectionDto":{"type":"object","properties":{}},"UpdateSiteSectionDto":{"type":"object","properties":{}},"MoveSiteSectionDto":{"type":"object","properties":{}},"AddSitePageDto":{"type":"object","properties":{}},"UpdateSitePageDto":{"type":"object","properties":{}},"UpdateSiteSeoDto":{"type":"object","properties":{}},"UpdatePropertyBrandingDto":{"type":"object","properties":{}},"CreateRatePlanDto":{"type":"object","properties":{}},"SetPhysicalRoomsDto":{"type":"object","properties":{}},"UpdateBlockDto":{"type":"object","properties":{}},"CreateReservationChargeDto":{"type":"object","properties":{}},"BulkCreateReservationChargesDto":{"type":"object","properties":{}},"CreatePropertyChargeDto":{"type":"object","properties":{}},"PreviewTransactionalMailDto":{"type":"object","properties":{}},"PreviewDraftMailDto":{"type":"object","properties":{}},"PreviewMailDto":{"type":"object","properties":{}},"ChannelPolicyEntryDto":{"type":"object","properties":{"policyCode":{"type":"object","nullable":true,"example":"better_strict_with_grace_period","description":"The channel's own cancellation policy code (one of `policyOptions[].code` of the listing view). null = follow the property's policy."},"instantBookMode":{"type":"string","nullable":true,"enum":["EVERYONE","WELL_REVIEWED","OFF"],"description":"Who may book instantly on this channel. Only `instantBookModes` of the listing view are accepted (some channels cannot turn it off). null = the channel default."},"connectionId":{"type":"string"},"unitId":{"type":"string","description":"One unit only; omitted = every unit of the property on that channel."}},"required":["connectionId"]},"SetChannelPoliciesDto":{"type":"object","properties":{"channels":{"type":"array","items":{"$ref":"#/components/schemas/ChannelPolicyEntryDto"}}},"required":["channels"]},"PublicCheckinLinkDto":{"type":"object","properties":{}},"JobQueuedResponseDto":{"type":"object","properties":{"jobId":{"type":"string","description":"The job that re-reads the waiting bookings from the platform."}},"required":["jobId"]},"PublicLinkHeldBookingDto":{"type":"object","properties":{}},"HeldBookingLinkedResponseDto":{"type":"object","properties":{"bookingId":{"type":"string","description":"The waiting booking that was linked."},"applied":{"type":"boolean","description":"True when a booking was created on the listing; false when it already existed or was cancelled on the platform meanwhile."},"reservationIds":{"description":"The bookings created (one per room).","type":"array","items":{"type":"string"}},"note":{"type":"string","description":"What happened, in one sentence (an overbooking is said here)."},"connectionId":{"type":"string"},"propertyId":{"type":"string"}},"required":["bookingId","applied"]},"StartPlatformImportDto":{"type":"object","properties":{}},"PlatformImportStartedResponseDto":{"type":"object","properties":{"sessionId":{"type":"string","description":"Poll GET /onboarding/import-platform/:sessionId with it."},"authUrl":{"type":"string","description":"Airbnb only: the sign-in page the host opens. No password is ever typed anywhere else."}},"required":["sessionId"]},"PublicHowToConnectDto":{"type":"object","properties":{}},"HowToConnectResponseDto":{"type":"object","properties":{"platform":{"type":"string","example":"AIRBNB","description":"The platform, as the catalogue names it."},"title":{"type":"string","example":"Airbnb"},"url":{"type":"string","description":"The page of the app where the host connects it."},"how":{"type":"string","enum":["sign_in","property_id","in_the_app","not_connectable"]},"importPlatform":{"type":"string","example":"AIRBNB","description":"With sign_in and property_id: the value for `platform` in POST /onboarding/import-platform/start."},"steps":{"description":"What to do, in order. Empty when the platform cannot be connected.","type":"array","items":{"type":"string"}},"reason":{"type":"string","description":"With not_connectable: why."},"reasonCode":{"type":"string"}},"required":["platform","title","url","how","steps"]},"ApplyPlatformImportDto":{"type":"object","properties":{}},"ImportedPropertyDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"listings":{"type":"number","description":"How many listings of it were added or connected."}},"required":["id","name","listings"]},"PlatformImportAppliedResponseDto":{"type":"object","properties":{"properties":{"description":"The properties the picked listings became, or were attached to.","type":"array","items":{"$ref":"#/components/schemas/ImportedPropertyDto"}},"connectionIds":{"description":"The platform connections made. They are connected, not live.","type":"array","items":{"type":"string"}},"bookingsImported":{"type":"number","description":"Bookings brought in so far (they arrive in the background)."}},"required":["properties","connectionIds","bookingsImported"]},"IssueInvoiceDocumentDto":{"type":"object","properties":{}},"MarkInvoicedDto":{"type":"object","properties":{}},"SetInvoiceSettingsDto":{"type":"object","properties":{}},"InvoiceBillingDto":{"type":"object","properties":{}},"AccountantReportDto":{"type":"object","properties":{}},"BookingAccessDto":{"type":"object","properties":{}},"UpdateHeatingDto":{"type":"object","properties":{}},"SetBalanceDueDaysDto":{"type":"object","properties":{}},"CreatePayoutDto":{"type":"object","properties":{}},"AgentApprovalProposal":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string","enum":["APPROVAL_REQUIRED"]},"applied":{"type":"boolean","enum":[false]},"approvalId":{"type":"string","example":"cm2approval123"},"action":{"type":"string","example":"api:POST /reservations/:id/cancel"},"riskClass":{"type":"string","enum":["NORMAL","RISKY"]},"summary":{"type":"string"},"preview":{"type":"object","additionalProperties":true},"approvalPath":{"type":"string","example":"/app/approve/cm2approval123"},"approvalUrl":{"type":"string","example":"https://hostemi.com/app/approve/cm2approval123"},"expiresAt":{"type":"string","format":"date-time"},"instruction":{"type":"string"}},"required":["status","applied","approvalId","riskClass","summary","approvalUrl","expiresAt"]},"ApiError":{"type":"object","additionalProperties":true,"properties":{"msg":{"type":"string","description":"Human-readable failure. Present on every error raised by the API itself (auth, scopes, quota, validation).","example":"This API key is missing the required permission: pms:write"},"code":{"type":"string","description":"Machine-readable failure. `SCOPE_REQUIRED` on a 403 from the scope guard; `PLAN_REQUIRED` when the workspace plan does not include the feature.","example":"SCOPE_REQUIRED"},"scope":{"type":"string","description":"On a 403 with code SCOPE_REQUIRED: the missing scope.","example":"pms:write"},"statusCode":{"type":"integer","description":"Present only on framework-level request-validation failures, where it repeats the HTTP status.","example":400},"message":{"type":"array","items":{"type":"string"},"description":"Present only on framework-level request-validation failures: one entry per field that failed.","example":["from must be YYYY-MM-DD"]},"error":{"type":"string","description":"Present only on framework-level failures: the status name.","example":"Bad Request"},"required":{"type":"array","items":{"type":"string"},"description":"On a 403 from the scope guard: the scopes the route needs.","example":["pms:write"]},"granted":{"type":"array","items":{"type":"string"},"description":"On a 403 from the scope guard: the scopes this key actually holds.","example":["pms:read"]},"role":{"type":"string","description":"On a 403 from the scope guard: the key owner's current role in the workspace, which is the usual cause.","example":"VIEWER"}}}}},"externalDocs":{"description":"Developer documentation","url":"https://hostemi.com/developers"}}