{"servers":[{"url":"https://api.databuddy.cc"}],"info":{"title":"Databuddy API","version":"1.0.0","description":"REST API for Databuddy analytics, link management, feature flags, uptime monitors, and status pages.\n\n**Authentication:** Endpoints accept either session cookies (browser) or an API key. For programmatic access, use an API key.\n\n**API Key usage:**\n- Send in the `x-api-key` header, or\n- Send as a Bearer token in the `Authorization` header: `Authorization: Bearer <your-api-key>`\n- API keys must be scoped to an organization. Create keys in the dashboard under Organization -> API Keys.\n\n**Scope requirements:** Some endpoints require specific API key scopes. Check each operation's `x-required-scopes` for requirements. Session authentication does not use scopes; access is determined by organization membership and role.\n\n**Available scopes:** read:data | track:events | read:links | write:links | read:monitors | write:monitors | read:status_pages | write:status_pages | manage:websites | manage:flags | manage:config"},"tags":[{"name":"Alarms","description":"Alert rules and notifications for metrics and conditions across your workspace."},{"name":"Annotations","description":"Timeline annotations for marking events on charts. Create, update, and delete annotations tied to specific time ranges and chart contexts."},{"name":"API Keys","description":"Create, list, update, revoke, and verify API keys. Requires organization membership with website configure permission. API keys cannot be used to manage other API keys."},{"name":"Autocomplete","description":"Autocomplete suggestions for analytics filters: page paths, custom events, browsers, countries, UTM params, and more. Used to power filter dropdowns and search."},{"name":"Feedback","description":"Submit and manage product feedback tied to your workspace."},{"name":"Flags","description":"Feature flags for gradual rollouts and A/B testing. Create, update, and evaluate flags scoped to websites or organizations."},{"name":"Funnels","description":"Funnel conversion analysis. Define multi-step funnels, track conversions, and analyze funnel performance by referrer."},{"name":"Goals","description":"Conversion goals and analytics. Define goals (custom events, page views, etc.), track conversions, and retrieve goal analytics."},{"name":"Links","description":"Short link creation and management. Create, list, update, and delete short links with custom slugs. API keys require read:links or write:links scope."},{"name":"Organizations","description":"Workspace and organization management: avatar, invitations, billing context, and usage."},{"name":"Preferences","description":"User preferences for date and time formatting. Stored per-user, not per-organization."},{"name":"StatusPage","description":"Public status pages, incidents, and monitor visibility settings. API keys require read:status_pages or write:status_pages scope."},{"name":"Target Groups","description":"Audience targeting for feature flags. Define target groups by rules (country, referrer, etc.) and use them to target flag rollouts."},{"name":"Uptime","description":"Uptime monitor creation, updates, pause/resume controls, and manual checks. API keys require read:monitors or write:monitors scope."},{"name":"Websites","description":"Website management: create, list, update, delete websites; transfer between workspaces; configure settings, tracking, and data export."}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for programmatic access. Use instead of session cookies when calling from servers, scripts, or external integrations.\n\n**How to send:**\n- `x-api-key: <your-api-key>` header (preferred), or\n- `Authorization: Bearer <your-api-key>` header\n\n**Scope requirements:** Session auth uses organization membership and roles; no scopes. API key auth may require scopes. Operations that require scopes include `x-required-scopes` in their schema.\n\n**Available scopes:** read:data | track:events | read:links | write:links | read:monitors | write:monitors | read:status_pages | write:status_pages | manage:websites | manage:flags | manage:config\n\n**Creating keys:** Keys are created in the dashboard (Organization -> API Keys) and must be scoped to an organization. Store the secret securely; it is shown only once."}}},"openapi":"3.1.1","paths":{"/agent-chats/list":{"post":{"operationId":"agentChats.list","summary":"List agent chats for the current user and organization","tags":["AgentChats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","websiteId","title","createdAt","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/agent-chats/get":{"post":{"operationId":"agentChats.get","summary":"Get a single agent chat with messages","tags":["AgentChats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"messages":{"type":"array","items":{"anyOf":[{},{"type":"null"}]}},"activeStreamId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","websiteId","title","createdAt","updatedAt","messages","activeStreamId"]},{"type":"null"}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/agent-chats/rename":{"post":{"operationId":"agentChats.rename","summary":"Rename an agent chat","tags":["AgentChats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":120}},"required":["id","title"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/agent-chats/delete":{"post":{"operationId":"agentChats.delete","summary":"Delete an agent chat","tags":["AgentChats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/agent-chats/suggestedPrompts":{"post":{"operationId":"agentChats.suggestedPrompts","summary":"Returns context-aware prompt suggestions seeded from recent insights","tags":["AgentChats"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"prompt":{"type":"string"},"source":{"enum":["insight","default"],"type":"string"}},"required":["label","prompt","source"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/alarms/list":{"post":{"operationId":"alarms.list","summary":"List alarms","description":"Returns alarms for the organization.","tags":["Alarms"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/alarms/get":{"post":{"operationId":"alarms.get","summary":"Get alarm","description":"Returns a single alarm by ID.","tags":["Alarms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"alarmId":{"type":"string"}},"required":["alarmId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/alarms/create":{"post":{"operationId":"alarms.create","summary":"Create alarm","description":"Creates a new alarm with destinations.","tags":["Alarms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"websiteId":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"enabled":{"type":"boolean","default":true},"triggerType":{"enum":["uptime","traffic_spike","error_rate"],"type":"string"},"triggerConditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"default":{}},"destinations":{"type":"array","minItems":1,"items":{"anyOf":[{"type":"object","properties":{"type":{"const":"slack"},"identifier":{"type":"string","pattern":"^https:\\/\\/hooks\\.slack\\.com\\/services\\/T[A-Z0-9]+\\/B[A-Z0-9]+\\/[A-Za-z0-9]+$"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"default":{}}},"required":["type","identifier"]},{"type":"object","properties":{"type":{"const":"webhook"},"identifier":{"type":"string","format":"uri"},"config":{"type":"object","properties":{"headers":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128},"additionalProperties":{"type":"string","maxLength":2048}},"method":{"enum":["GET","POST","PUT","PATCH"],"type":"string"}},"additionalProperties":{},"default":{}}},"required":["type","identifier"]},{"type":"object","properties":{"type":{"const":"email"},"identifier":{"type":"string","format":"email"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"default":{}}},"required":["type","identifier"]}]}}},"required":["organizationId","name","triggerType","destinations"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/alarms/update":{"post":{"operationId":"alarms.update","summary":"Update alarm","description":"Updates an existing alarm and its destinations.","tags":["Alarms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"alarmId":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"triggerType":{"enum":["uptime","traffic_spike","error_rate"],"type":"string"},"triggerConditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"destinations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"slack"},"identifier":{"type":"string","pattern":"^https:\\/\\/hooks\\.slack\\.com\\/services\\/T[A-Z0-9]+\\/B[A-Z0-9]+\\/[A-Za-z0-9]+$"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"default":{}}},"required":["type","identifier"]},{"type":"object","properties":{"type":{"const":"webhook"},"identifier":{"type":"string","format":"uri"},"config":{"type":"object","properties":{"headers":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128},"additionalProperties":{"type":"string","maxLength":2048}},"method":{"enum":["GET","POST","PUT","PATCH"],"type":"string"}},"additionalProperties":{},"default":{}}},"required":["type","identifier"]},{"type":"object","properties":{"type":{"const":"email"},"identifier":{"type":"string","format":"email"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"default":{}}},"required":["type","identifier"]}]}}},"required":["alarmId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/alarms/delete":{"post":{"operationId":"alarms.delete","summary":"Delete alarm","description":"Deletes an alarm and all its destinations.","tags":["Alarms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"alarmId":{"type":"string"}},"required":["alarmId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/alarms/test":{"post":{"operationId":"alarms.test","summary":"Test alarm","description":"Sends a test notification to all configured channels.","tags":["Alarms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"alarmId":{"type":"string"}},"required":["alarmId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"success":{"type":"boolean"},"channel":{"type":"string"},"error":{"type":"string"}},"required":["success","channel"]}}},"required":["results"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/anomalies/detect":{"post":{"operationId":"anomalies.detect","summary":"Detect anomalies","description":"Runs anomaly detection for a website across pageviews, errors, and custom events.","tags":["Anomalies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string","minLength":1},"config":{"type":"object","properties":{"warningThreshold":{"type":"number","minimum":0.5,"maximum":10},"criticalThreshold":{"type":"number","minimum":1,"maximum":15},"baselineDays":{"type":"integer","minimum":3,"maximum":30},"minimumBaselineCount":{"type":"integer","minimum":1,"maximum":9007199254740991},"percentChangeFallback":{"type":"number","minimum":50,"maximum":1000}}}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"metric":{"enum":["pageviews","custom_events","errors"],"type":"string"},"type":{"enum":["spike","drop"],"type":"string"},"severity":{"enum":["warning","critical"],"type":"string"},"currentValue":{"type":"number"},"baselineMean":{"type":"number"},"baselineStdDev":{"type":"number"},"zScore":{"type":"number"},"percentChange":{"type":"number"},"detectedAt":{"type":"string"},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"eventName":{"type":"string"}},"required":["metric","type","severity","currentValue","baselineMean","baselineStdDev","zScore","percentChange","detectedAt","periodStart","periodEnd"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/anomalies/time-series":{"post":{"operationId":"anomalies.timeSeries","summary":"Anomaly time series","description":"Returns hourly event counts for a metric over the past N days for charting.","tags":["Anomalies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string","minLength":1},"metric":{"enum":["pageviews","custom_events","errors"],"type":"string"},"days":{"type":"integer","minimum":1,"maximum":30,"default":7}},"required":["websiteId","metric"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"string"},"count":{"type":"number"}},"required":["hour","count"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/anomalies/notify":{"post":{"operationId":"anomalies.notify","summary":"Send anomaly notifications","description":"Runs detection and sends notifications to all matching alarm destinations for traffic_spike/error_rate triggers.","tags":["Anomalies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string","minLength":1}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"anomaliesFound":{"type":"number"},"notificationsSent":{"type":"number"}},"required":["anomaliesFound","notificationsSent"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/annotations/list":{"post":{"operationId":"annotations.list","summary":"List annotations","description":"Returns annotations for a chart context. Requires website read permission.","tags":["Annotations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"chartType":{"enum":["metrics"],"type":"string"},"chartContext":{"type":"object","properties":{"dateRange":{"type":"object","properties":{"start_date":{"type":"string"},"end_date":{"type":"string"},"granularity":{"enum":["hourly","daily","weekly","monthly"],"type":"string"}},"required":["start_date","end_date","granularity"]},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["eq","ne","gt","lt","contains"],"type":"string"},"value":{"type":"string"}},"required":["field","operator","value"]}},"metrics":{"type":"array","items":{"type":"string"}},"tabId":{"type":"string"}},"required":["dateRange"]}},"required":["websiteId","chartType","chartContext"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"annotationType":{"type":"string"},"chartContext":{},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"id":{"type":"string"},"isPublic":{"type":"boolean"},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"text":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"},"xEndValue":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"xValue":{"type":"string","format":"date-time","x-native-type":"date"},"yValue":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["annotationType","chartType","color","createdAt","createdBy","deletedAt","id","isPublic","tags","text","updatedAt","websiteId","xEndValue","xValue","yValue"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/annotations/getById":{"post":{"operationId":"annotations.getById","summary":"Get annotation","description":"Returns a single annotation by id. Requires website read permission.","tags":["Annotations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"annotationType":{"type":"string"},"chartContext":{},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"id":{"type":"string"},"isPublic":{"type":"boolean"},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"text":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"},"xEndValue":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"xValue":{"type":"string","format":"date-time","x-native-type":"date"},"yValue":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["annotationType","chartType","color","createdAt","createdBy","deletedAt","id","isPublic","tags","text","updatedAt","websiteId","xEndValue","xValue","yValue"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/annotations/create":{"post":{"operationId":"annotations.create","summary":"Create annotation","description":"Creates a new annotation. Requires website update permission.","tags":["Annotations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"chartType":{"enum":["metrics"],"type":"string"},"chartContext":{"type":"object","properties":{"dateRange":{"type":"object","properties":{"start_date":{"type":"string"},"end_date":{"type":"string"},"granularity":{"enum":["hourly","daily","weekly","monthly"],"type":"string"}},"required":["start_date","end_date","granularity"]},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["eq","ne","gt","lt","contains"],"type":"string"},"value":{"type":"string"}},"required":["field","operator","value"]}},"metrics":{"type":"array","items":{"type":"string"}},"tabId":{"type":"string"}},"required":["dateRange"]},"annotationType":{"enum":["point","line","range"],"type":"string"},"xValue":{"type":"string"},"xEndValue":{"type":"string"},"yValue":{"type":"number"},"text":{"type":"string","minLength":1,"maxLength":500},"tags":{"type":"array","items":{"type":"string"}},"color":{"type":"string"},"isPublic":{"type":"boolean","default":false}},"required":["websiteId","chartType","chartContext","annotationType","xValue","text"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"annotationType":{"type":"string"},"chartContext":{},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"id":{"type":"string"},"isPublic":{"type":"boolean"},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"text":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"},"xEndValue":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"xValue":{"type":"string","format":"date-time","x-native-type":"date"},"yValue":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["annotationType","chartType","color","createdAt","createdBy","deletedAt","id","isPublic","tags","text","updatedAt","websiteId","xEndValue","xValue","yValue"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/annotations/update":{"post":{"operationId":"annotations.update","summary":"Update annotation","description":"Updates an annotation. Users can only update their own unless they own the website.","tags":["Annotations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string","minLength":1,"maxLength":500},"tags":{"type":"array","items":{"type":"string"}},"color":{"type":"string"},"isPublic":{"type":"boolean"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"annotationType":{"type":"string"},"chartContext":{},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"id":{"type":"string"},"isPublic":{"type":"boolean"},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"text":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"},"xEndValue":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"xValue":{"type":"string","format":"date-time","x-native-type":"date"},"yValue":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["annotationType","chartType","color","createdAt","createdBy","deletedAt","id","isPublic","tags","text","updatedAt","websiteId","xEndValue","xValue","yValue"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/annotations/delete":{"post":{"operationId":"annotations.delete","summary":"Delete annotation","description":"Soft-deletes an annotation. Users can only delete their own unless they own the website.","tags":["Annotations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/list":{"post":{"operationId":"websites.list","summary":"List websites","description":"Returns websites for the active workspace.","tags":["Websites"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/listWithCharts":{"post":{"operationId":"websites.listWithCharts","summary":"List websites with charts","description":"Returns websites with chart data and active users.","tags":["Websites"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"websites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}},"chartData":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"value":{"type":"number"}},"required":["date","value"]}},"totalViews":{"type":"number"},"hasAnyData":{"type":"boolean"},"hasHistoricalData":{"type":"boolean"},"trend":{"anyOf":[{"type":"object","properties":{"type":{"enum":["up","down","neutral"],"type":"string"},"value":{"type":"number"}},"required":["type","value"]},{"type":"null"}]}},"required":["data","totalViews","hasAnyData","hasHistoricalData","trend"]}},"activeUsers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}}},"required":["websites","chartData","activeUsers"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/getById":{"post":{"operationId":"websites.getById","summary":"Get website","description":"Returns a website by id. Requires website read permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/getPublicSummary":{"post":{"operationId":"websites.getPublicSummary","summary":"Get public website summary","description":"Returns minimal public-overview metadata for a website (id, domain, name, status). Public websites only.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/create":{"post":{"operationId":"websites.create","summary":"Create website","description":"Creates a website. Requires workspace create permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9\\s\\-_.]+$"},"domain":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"},"subdomain":{"type":"string","maxLength":63,"pattern":"^[a-zA-Z0-9-]*$"},"organizationId":{"type":"string"}},"required":["name","domain"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/update":{"post":{"operationId":"websites.update","summary":"Update website","description":"Updates a website. Requires update permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9\\s\\-_.]+$"},"domain":{"type":"string","minLength":1,"maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$"}},"required":["id","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/togglePublic":{"post":{"operationId":"websites.togglePublic","summary":"Toggle public","description":"Toggles website public/private. Requires update permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"isPublic":{"type":"boolean"}},"required":["id","isPublic"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/delete":{"post":{"operationId":"websites.delete","summary":"Delete website","description":"Deletes a website. Requires delete permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/transfer":{"post":{"operationId":"websites.transfer","summary":"Transfer website","description":"Transfers website to another workspace.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"organizationId":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/transferToOrganization":{"post":{"operationId":"websites.transferToOrganization","summary":"Transfer to organization","description":"Transfers website to target organization.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"targetOrganizationId":{"type":"string"}},"required":["websiteId","targetOrganizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/isTrackingSetup":{"post":{"operationId":"websites.isTrackingSetup","summary":"Check tracking setup","description":"Checks if tracking is set up for a website. Requires website read permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"tracking_setup":{"type":"boolean"},"integration_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_events":{"type":"boolean"},"recent_events":{"type":"number"},"status_message":{"type":"string"},"tracking_issue":{"anyOf":[{"type":"object","properties":{"count":{"type":"number"},"expectedDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"fix":{"type":"string"},"lastSeen":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"},"origin":{"anyOf":[{"type":"string"},{"type":"null"}]},"originHost":{"anyOf":[{"type":"string"},{"type":"null"}]},"severity":{"enum":["critical","warning"],"type":"string"},"type":{"enum":["origin_not_authorized","ip_not_authorized"],"type":"string"}},"required":["count","expectedDomain","fix","lastSeen","message","origin","originHost","severity","type"]},{"type":"null"}]}},"required":["tracking_setup","integration_type","has_events","recent_events","status_message","tracking_issue"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/updateSettings":{"post":{"operationId":"websites.updateSettings","summary":"Update settings","description":"Updates website settings. Requires update permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"settings":{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string","minLength":1}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255}},"trackingIssueWarningsDisabled":{"type":"boolean"}}}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["ACTIVE","HEALTHY","UNHEALTHY","INACTIVE","PENDING"],"type":"string"},"isPublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"integrations":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"settings":{"anyOf":[{"type":"object","properties":{"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedIps":{"type":"array","items":{"type":"string"}},"ignoredTrackingOrigins":{"type":"array","items":{"type":"string"}},"trackingIssueWarningsDisabled":{"type":"boolean"}}},{"type":"null"}]}},"required":["id","domain","name","status","isPublic","createdAt","updatedAt","organizationId","deletedAt","integrations","settings"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/websites/exportDownload":{"post":{"operationId":"websites.exportDownload","summary":"Download export","description":"Downloads analytics export. Requires read permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string","minLength":1},"format":{"enum":["csv","json","txt","proto"],"type":"string","default":"json"},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"data":{"type":"string"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["filename","data","metadata"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/list":{"post":{"operationId":"funnels.list","summary":"List funnels","description":"Returns all funnels for a website. Requires website read permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["createdAt","description","id","ignoreHistoricData","isActive","name","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/getById":{"post":{"operationId":"funnels.getById","summary":"Get funnel","description":"Returns a single funnel by id; website is resolved from the funnel. Requires website read permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["createdAt","createdBy","deletedAt","description","id","ignoreHistoricData","isActive","name","updatedAt","websiteId"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/create":{"post":{"operationId":"funnels.create","summary":"Create funnel","description":"Creates a new funnel. Requires funnels feature and website update permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string"},"steps":{"type":"array","minItems":2,"maxItems":10,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},"ignoreHistoricData":{"type":"boolean"}},"required":["websiteId","name","steps"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["createdAt","createdBy","deletedAt","description","id","ignoreHistoricData","isActive","name","updatedAt","websiteId"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/update":{"post":{"operationId":"funnels.update","summary":"Update funnel","description":"Updates an existing funnel. Requires website update permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string"},"steps":{"type":"array","minItems":2,"maxItems":10,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["createdAt","createdBy","deletedAt","description","id","ignoreHistoricData","isActive","name","updatedAt","websiteId"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/delete":{"post":{"operationId":"funnels.delete","summary":"Delete funnel","description":"Soft-deletes a funnel. Requires website delete permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/getAnalytics":{"post":{"operationId":"funnels.getAnalytics","summary":"Get funnel analytics","description":"Returns funnel conversion analytics. Requires website read permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"funnelId":{"type":"string"},"websiteId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["funnelId","websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"overall_conversion_rate":{"type":"number"},"total_users_entered":{"type":"number"},"total_users_completed":{"type":"number"},"avg_completion_time":{"type":"number"},"avg_completion_time_formatted":{"type":"string"},"biggest_dropoff_step":{"type":"number"},"biggest_dropoff_rate":{"type":"number"},"steps_analytics":{"type":"array","items":{"type":"object","properties":{"step_number":{"type":"number"},"step_name":{"type":"string"},"users":{"type":"number"},"total_users":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"dropoff_rate":{"type":"number"},"avg_time_to_complete":{"type":"number"},"error_count":{"type":"number"},"error_rate":{"type":"number"},"top_errors":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"error_type":{"type":"string"},"count":{"type":"number"}},"required":["message","error_type","count"]}}},"required":["step_number","step_name","users","total_users","conversion_rate","dropoffs","dropoff_rate","avg_time_to_complete","error_count","error_rate","top_errors"]}},"time_series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"users":{"type":"number"},"conversions":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"avg_time":{"type":"number"}},"required":["date","users","conversions","conversion_rate","dropoffs","avg_time"]}},"error_insights":{"type":"object","properties":{"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["total_errors","sessions_with_errors","dropoffs_with_errors","error_correlation_rate"]}},"required":["overall_conversion_rate","total_users_entered","total_users_completed","avg_completion_time","avg_completion_time_formatted","biggest_dropoff_step","biggest_dropoff_rate","steps_analytics","error_insights"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/getAnalyticsByReferrer":{"post":{"operationId":"funnels.getAnalyticsByReferrer","summary":"Get funnel analytics by referrer","description":"Returns funnel analytics broken down by referrer. Requires website read permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"funnelId":{"type":"string"},"websiteId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["funnelId","websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"referrer_analytics":{"type":"array","items":{"type":"object","properties":{"referrer":{"type":"string"},"referrer_parsed":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"domain":{"type":"string"}},"required":["name","type","domain"]},"total_users":{"type":"number"},"completed_users":{"type":"number"},"conversion_rate":{"type":"number"}},"required":["referrer","referrer_parsed","total_users","completed_users","conversion_rate"]}}},"required":["referrer_analytics"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/funnels/getAnalyticsByLink":{"post":{"operationId":"funnels.getAnalyticsByLink","summary":"Get funnel analytics by link","description":"Returns funnel analytics filtered to visitors who arrived via a specific link. Requires website read permission.","tags":["Funnels"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"funnelId":{"type":"string"},"websiteId":{"type":"string"},"linkId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["funnelId","websiteId","linkId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"overall_conversion_rate":{"type":"number"},"total_users_entered":{"type":"number"},"total_users_completed":{"type":"number"},"avg_completion_time":{"type":"number"},"avg_completion_time_formatted":{"type":"string"},"biggest_dropoff_step":{"type":"number"},"biggest_dropoff_rate":{"type":"number"},"steps_analytics":{"type":"array","items":{"type":"object","properties":{"step_number":{"type":"number"},"step_name":{"type":"string"},"users":{"type":"number"},"total_users":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"dropoff_rate":{"type":"number"},"avg_time_to_complete":{"type":"number"},"error_count":{"type":"number"},"error_rate":{"type":"number"},"top_errors":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"error_type":{"type":"string"},"count":{"type":"number"}},"required":["message","error_type","count"]}}},"required":["step_number","step_name","users","total_users","conversion_rate","dropoffs","dropoff_rate","avg_time_to_complete","error_count","error_rate","top_errors"]}},"time_series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"users":{"type":"number"},"conversions":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"avg_time":{"type":"number"}},"required":["date","users","conversions","conversion_rate","dropoffs","avg_time"]}},"error_insights":{"type":"object","properties":{"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["total_errors","sessions_with_errors","dropoffs_with_errors","error_correlation_rate"]}},"required":["overall_conversion_rate","total_users_entered","total_users_completed","avg_completion_time","avg_completion_time_formatted","biggest_dropoff_step","biggest_dropoff_rate","steps_analytics","error_insights"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/preferences/getUserPreferences":{"post":{"operationId":"preferences.getUserPreferences","summary":"Get user preferences","description":"Returns user preferences.","tags":["Preferences"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/preferences/updateUserPreferences":{"post":{"operationId":"preferences.updateUserPreferences","summary":"Update user preferences","description":"Updates user preferences.","tags":["Preferences"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"type":"string"},"dateFormat":{"type":"string"},"timeFormat":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/goals/list":{"post":{"operationId":"goals.list","summary":"List goals","description":"Returns all goals for a website. Requires website read permission.","tags":["Goals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"type":"string"},"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["id","websiteId","type","target","name","description","filters","ignoreHistoricData","isActive","createdBy","createdAt","updatedAt","deletedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/goals/getById":{"post":{"operationId":"goals.getById","summary":"Get goal","description":"Returns a single goal by id; website is resolved from the goal. Requires website read permission.","tags":["Goals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"type":"string"},"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["id","websiteId","type","target","name","description","filters","ignoreHistoricData","isActive","createdBy","createdAt","updatedAt","deletedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/goals/create":{"post":{"operationId":"goals.create","summary":"Create goal","description":"Creates a new conversion goal. Requires goals feature and website update permission.","tags":["Goals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},"ignoreHistoricData":{"type":"boolean"}},"required":["websiteId","type","target","name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"type":"string"},"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["id","websiteId","type","target","name","description","filters","ignoreHistoricData","isActive","createdBy","createdAt","updatedAt","deletedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/goals/update":{"post":{"operationId":"goals.update","summary":"Update goal","description":"Updates an existing goal. Requires website update permission.","tags":["Goals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"type":"string"},"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["id","websiteId","type","target","name","description","filters","ignoreHistoricData","isActive","createdBy","createdAt","updatedAt","deletedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/goals/delete":{"post":{"operationId":"goals.delete","summary":"Delete goal","description":"Soft-deletes a goal. Requires website delete permission.","tags":["Goals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/goals/getAnalytics":{"post":{"operationId":"goals.getAnalytics","summary":"Get goal analytics","description":"Returns conversion analytics for a single goal. Requires website read permission.","tags":["Goals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"goalId":{"type":"string"},"websiteId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}}},"required":["goalId","websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"overall_conversion_rate":{"type":"number"},"total_users_entered":{"type":"number"},"total_users_completed":{"type":"number"},"avg_completion_time":{"type":"number"},"avg_completion_time_formatted":{"type":"string"},"biggest_dropoff_step":{"type":"number"},"biggest_dropoff_rate":{"type":"number"},"steps_analytics":{"type":"array","items":{"type":"object","properties":{"step_number":{"type":"number"},"step_name":{"type":"string"},"users":{"type":"number"},"total_users":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"dropoff_rate":{"type":"number"},"avg_time_to_complete":{"type":"number"},"error_count":{"type":"number"},"error_rate":{"type":"number"},"top_errors":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"error_type":{"type":"string"},"count":{"type":"number"}},"required":["message","error_type","count"]}}},"required":["step_number","step_name","users","total_users","conversion_rate","dropoffs","dropoff_rate","avg_time_to_complete","error_count","error_rate","top_errors"]}},"time_series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"users":{"type":"number"},"conversions":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"avg_time":{"type":"number"}},"required":["date","users","conversions","conversion_rate","dropoffs","avg_time"]}},"error_insights":{"type":"object","properties":{"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["total_errors","sessions_with_errors","dropoffs_with_errors","error_correlation_rate"]}},"required":["overall_conversion_rate","total_users_entered","total_users_completed","avg_completion_time","avg_completion_time_formatted","biggest_dropoff_step","biggest_dropoff_rate","steps_analytics","error_insights"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/goals/bulkAnalytics":{"post":{"operationId":"goals.bulkAnalytics","summary":"Get bulk goal analytics","description":"Returns conversion analytics for multiple goals. Requires website read permission.","tags":["Goals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"goalIds":{"type":"array","minItems":1,"items":{"type":"string"}},"startDate":{"type":"string"},"endDate":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["equals","contains","not_contains","starts_with","ends_with","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}}},"required":["websiteId","goalIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"ok":{"const":true},"data":{"type":"object","properties":{"overall_conversion_rate":{"type":"number"},"total_users_entered":{"type":"number"},"total_users_completed":{"type":"number"},"avg_completion_time":{"type":"number"},"avg_completion_time_formatted":{"type":"string"},"biggest_dropoff_step":{"type":"number"},"biggest_dropoff_rate":{"type":"number"},"steps_analytics":{"type":"array","items":{"type":"object","properties":{"step_number":{"type":"number"},"step_name":{"type":"string"},"users":{"type":"number"},"total_users":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"dropoff_rate":{"type":"number"},"avg_time_to_complete":{"type":"number"},"error_count":{"type":"number"},"error_rate":{"type":"number"},"top_errors":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"error_type":{"type":"string"},"count":{"type":"number"}},"required":["message","error_type","count"]}}},"required":["step_number","step_name","users","total_users","conversion_rate","dropoffs","dropoff_rate","avg_time_to_complete","error_count","error_rate","top_errors"]}},"time_series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"users":{"type":"number"},"conversions":{"type":"number"},"conversion_rate":{"type":"number"},"dropoffs":{"type":"number"},"avg_time":{"type":"number"}},"required":["date","users","conversions","conversion_rate","dropoffs","avg_time"]}},"error_insights":{"type":"object","properties":{"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["total_errors","sessions_with_errors","dropoffs_with_errors","error_correlation_rate"]}},"required":["overall_conversion_rate","total_users_entered","total_users_completed","avg_completion_time","avg_completion_time_formatted","biggest_dropoff_step","biggest_dropoff_rate","steps_analytics","error_insights"]}},"required":["ok","data"]},{"type":"object","properties":{"ok":{"const":false},"error":{"type":"string"}},"required":["ok","error"]}]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/autocomplete/get":{"post":{"operationId":"autocomplete.get","summary":"Get autocomplete","description":"Returns autocomplete suggestions for analytics filters.","tags":["Autocomplete"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"customEvents":{"type":"array","items":{"type":"string"}},"pagePaths":{"type":"array","items":{"type":"string"}},"browsers":{"type":"array","items":{"type":"string"}},"operatingSystems":{"type":"array","items":{"type":"string"}},"countries":{"type":"array","items":{"type":"string"}},"deviceTypes":{"type":"array","items":{"type":"string"}},"utmSources":{"type":"array","items":{"type":"string"}},"utmMediums":{"type":"array","items":{"type":"string"}},"utmCampaigns":{"type":"array","items":{"type":"string"}}},"required":["customEvents","pagePaths","browsers","operatingSystems","countries","deviceTypes","utmSources","utmMediums","utmCampaigns"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/getMyRole":{"post":{"operationId":"apikeys.getMyRole","summary":"Caller's role in an organization (for scope-edit UX)","description":"Returns the session user's membership role in the given organization so clients can disable scope editing for non-admins.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"anyOf":[{"enum":["owner","admin","member"],"type":"string"},{"type":"null"}]},"canEditScopes":{"type":"boolean"}},"required":["role","canEditScopes"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/list":{"post":{"operationId":"apikeys.list","summary":"List API keys","description":"Returns API keys for the organization with full details. Requires website configure permission.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"start":{"type":"string"},"type":{"enum":["user","sdk","automation"],"type":"string"},"enabled":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"resources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}},"ratelimit":{"type":"object","properties":{"enabled":{"type":"boolean"},"max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"window":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["enabled","max","window"]}},"required":["id","name","prefix","start","type","enabled","scopes","tags","expiresAt","revokedAt","lastUsedAt","createdAt","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/getById":{"post":{"operationId":"apikeys.getById","summary":"Get API key","description":"Returns a single API key by id with full details. Requires organization website configure permission.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"start":{"type":"string"},"type":{"enum":["user","sdk","automation"],"type":"string"},"enabled":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"resources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}},"ratelimit":{"type":"object","properties":{"enabled":{"type":"boolean"},"max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"window":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["enabled","max","window"]}},"required":["id","name","prefix","start","type","enabled","scopes","tags","expiresAt","revokedAt","lastUsedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/create":{"post":{"operationId":"apikeys.create","summary":"Create API key","description":"Creates a new API key. Returns the secret once; store it securely. Requires organization website configure permission.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":500},"organizationId":{"type":"string"},"type":{"enum":["user","sdk","automation"],"type":"string","default":"user"},"scopes":{"type":"array","items":{"enum":["read:data","track:events","read:links","write:links","read:monitors","write:monitors","read:status_pages","write:status_pages","manage:websites","manage:flags","manage:config"],"type":"string"},"default":[]},"resources":{"type":"object","propertyNames":{"type":"string","maxLength":128},"additionalProperties":{"type":"array","items":{"enum":["read:data","track:events","read:links","write:links","read:monitors","write:monitors","read:status_pages","write:status_pages","manage:websites","manage:flags","manage:config"],"type":"string"}}},"tags":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":50}},"expiresAt":{"type":"string"},"ratelimit":{"type":"object","properties":{"enabled":{"type":"boolean"},"max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"window":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}}}},"required":["name","organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"secret":{"type":"string"},"prefix":{"type":"string"},"start":{"type":"string"}},"required":["id","secret","prefix","start"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/update":{"post":{"operationId":"apikeys.update","summary":"Update API key","description":"Updates an existing API key. Requires organization website configure permission.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"enabled":{"type":"boolean"},"scopes":{"type":"array","items":{"enum":["read:data","track:events","read:links","write:links","read:monitors","write:monitors","read:status_pages","write:status_pages","manage:websites","manage:flags","manage:config"],"type":"string"}},"resources":{"anyOf":[{"type":"object","propertyNames":{"type":"string","maxLength":128},"additionalProperties":{"type":"array","items":{"enum":["read:data","track:events","read:links","write:links","read:monitors","write:monitors","read:status_pages","write:status_pages","manage:websites","manage:flags","manage:config"],"type":"string"}}},{"type":"null"}]},"tags":{"anyOf":[{"type":"array","maxItems":10,"items":{"type":"string","maxLength":50}},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"ratelimit":{"type":"object","properties":{"enabled":{"type":"boolean"},"max":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"window":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}}}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"start":{"type":"string"},"type":{"enum":["user","sdk","automation"],"type":"string"},"enabled":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","name","prefix","start","type","enabled","scopes","tags","expiresAt","revokedAt","lastUsedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/revoke":{"post":{"operationId":"apikeys.revoke","summary":"Revoke API key","description":"Revokes an API key. The key is disabled and cannot be used. Requires organization website configure permission.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/rotate":{"post":{"operationId":"apikeys.rotate","summary":"Rotate API key","description":"Rotates an API key, issuing a new secret. The old key is invalidated immediately. Returns the new secret once. Requires organization website configure permission.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"secret":{"type":"string"},"prefix":{"type":"string"},"start":{"type":"string"}},"required":["id","secret","prefix","start"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/delete":{"post":{"operationId":"apikeys.delete","summary":"Delete API key","description":"Permanently deletes an API key. Requires organization website configure permission.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/apikeys/verify":{"post":{"operationId":"apikeys.verify","summary":"Verify API key","description":"Validates an API key (from header or body) and optionally checks scopes. Can be used without auth to test a key.","tags":["API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string"},"resource":{"type":"string"},"requiredScopes":{"type":"array","items":{"enum":["read:data","track:events","read:links","write:links","read:monitors","write:monitors","read:status_pages","write:status_pages","manage:websites","manage:flags","manage:config"],"type":"string"}},"mode":{"enum":["any","all"],"type":"string","default":"any"},"trackUsage":{"type":"boolean","default":true}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"valid":{"const":true},"keyId":{"type":"string"},"ownerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}}},"required":["valid","keyId","ownerId","scopes"]},{"type":"object","properties":{"valid":{"const":false},"error":{"type":"string"},"errorCode":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"matched":{"type":"array","items":{"type":"string"}},"missing":{"type":"array","items":{"type":"string"}}},"required":["valid","error","errorCode"]}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/integrations/list":{"post":{"operationId":"integrations.list","summary":"List integrations","description":"Returns organization-scoped integration connections.","tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"slack":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"teamName":{"anyOf":[{"type":"string"},{"type":"null"}]},"enterpriseId":{"anyOf":[{"type":"string"},{"type":"null"}]},"appId":{"anyOf":[{"type":"string"},{"type":"null"}]},"botId":{"anyOf":[{"type":"string"},{"type":"null"}]},"botUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["active","disabled"],"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"channelBindings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slackChannelId":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","slackChannelId","createdAt","updatedAt"]}}},"required":["id","teamId","teamName","enterpriseId","appId","botId","botUserId","status","createdAt","updatedAt","channelBindings"]}}},"required":["slack"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/integrations/uninstallSlack":{"post":{"operationId":"integrations.uninstallSlack","summary":"Uninstall Slack","description":"Disconnects a Slack workspace integration.","tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1},"integrationId":{"type":"string","minLength":1}},"required":["organizationId","integrationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/integrations/setGitHubRepo":{"post":{"operationId":"integrations.setGitHubRepo","summary":"Set GitHub repo","description":"Links a GitHub repo to a website for deploy correlation.","tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string","minLength":1},"owner":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"},"repo":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9._-]+$"}},"required":["websiteId","owner","repo"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/integrations/removeGitHubRepo":{"post":{"operationId":"integrations.removeGitHubRepo","summary":"Remove GitHub repo","description":"Unlinks a GitHub repo from a website.","tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string","minLength":1}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/integrations/checkSearchConsoleAccess":{"post":{"operationId":"integrations.checkSearchConsoleAccess","summary":"Check Search Console access","description":"Checks whether the current user has Google Search Console access.","tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"hasAccess":{"type":"boolean"}},"required":["hasAccess"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/integrations/listGitHubRepos":{"post":{"operationId":"integrations.listGitHubRepos","summary":"List GitHub repos","description":"Lists GitHub repos accessible to the current user.","tags":["Integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"repos":{"type":"array","items":{"type":"object","properties":{"fullName":{"type":"string"},"private":{"type":"boolean"},"defaultBranch":{"type":"string"}},"required":["fullName","private","defaultBranch"]}}},"required":["repos"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/feedback/submit":{"post":{"operationId":"feedback.submit","summary":"Submit feedback","description":"Submit new feedback to earn credits when approved.","tags":["Feedback"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":200},"description":{"type":"string","minLength":10,"maxLength":5000},"category":{"enum":["bug_report","feature_request","ux_improvement","performance","documentation","other"],"type":"string"}},"required":["title","description","category"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"organizationId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"category":{"enum":["bug_report","feature_request","ux_improvement","performance","documentation","other"],"type":"string"},"status":{"enum":["pending","approved","rejected"],"type":"string"},"creditsAwarded":{"type":"number"},"adminNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"reviewedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"reviewedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","userId","organizationId","title","description","category","status","creditsAwarded","adminNotes","reviewedBy","reviewedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/feedback/list":{"post":{"operationId":"feedback.list","summary":"List my feedback","description":"List current user's feedback submissions.","tags":["Feedback"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["pending","approved","rejected"],"type":"string"}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"category":{"enum":["bug_report","feature_request","ux_improvement","performance","documentation","other"],"type":"string"},"status":{"enum":["pending","approved","rejected"],"type":"string"},"creditsAwarded":{"type":"number"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","title","description","category","status","creditsAwarded","createdAt","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/feedback/getCreditsBalance":{"post":{"operationId":"feedback.getCreditsBalance","summary":"Get credits balance","description":"Get current user's feedback credits balance.","tags":["Feedback"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"totalEarned":{"type":"number"},"totalSpent":{"type":"number"},"available":{"type":"number"}},"required":["totalEarned","totalSpent","available"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/feedback/getRewardTiers":{"post":{"operationId":"feedback.getRewardTiers","summary":"Get reward tiers","description":"Get available reward tiers for credit redemption.","tags":["Feedback"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"creditsRequired":{"type":"number"},"rewardType":{"type":"string"},"rewardAmount":{"type":"number"}},"required":["creditsRequired","rewardType","rewardAmount"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/feedback/redeemCredits":{"post":{"operationId":"feedback.redeemCredits","summary":"Redeem credits","description":"Redeem feedback credits for event balance.","tags":["Feedback"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierIndex":{"type":"integer","minimum":0,"maximum":7}},"required":["tierIndex"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"rewardType":{"type":"string"},"rewardAmount":{"type":"number"},"creditsSpent":{"type":"number"},"remainingCredits":{"type":"number"}},"required":["success","rewardType","rewardAmount","creditsSpent","remainingCredits"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/flags/list":{"post":{"operationId":"flags.list","summary":"List flags","description":"Returns all flags for a website or organization. Requires scope read permission.","tags":["Flags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"organizationId":{"type":"string"},"status":{"enum":["active","inactive","archived"],"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/flags/getById":{"post":{"operationId":"flags.getById","summary":"Get flag by ID","description":"Returns a single flag by id. Requires scope read permission.","tags":["Flags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"type":"string"},"organizationId":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/flags/getByKey":{"post":{"operationId":"flags.getByKey","summary":"Get flag by key","description":"Returns a single active flag by key. Requires scope read permission.","tags":["Flags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"websiteId":{"type":"string"},"organizationId":{"type":"string"}},"required":["key"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/flags/create":{"post":{"operationId":"flags.create","summary":"Create flag","description":"Creates a new feature flag. Requires feature flags plan and scope update permission.","tags":["Flags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"organizationId":{"type":"string"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"persistAcrossAuth":{"type":"boolean"},"key":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string"},"type":{"enum":["boolean","rollout","multivariant"],"type":"string"},"status":{"enum":["active","inactive","archived"],"type":"string"},"defaultValue":{"type":"boolean"},"rolloutPercentage":{"type":"number","minimum":0,"maximum":100},"rolloutBy":{"type":"string"},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["user_id","email","property"],"type":"string"},"operator":{"enum":["equals","contains","starts_with","ends_with","in","not_in","exists","not_exists"],"type":"string"},"field":{"type":"string"},"value":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"batch":{"type":"boolean"},"batchValues":{"type":"array","items":{"type":"string"}}},"required":["type","operator","enabled","batch"]}},"variants":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":50},"value":{},"weight":{"type":"number","minimum":0,"maximum":100},"description":{"type":"string"},"type":{"enum":["string","number","json"],"type":"string"}},"required":["key","type"]}},"dependencies":{"type":"array","items":{"type":"string","minLength":1}},"environment":{"anyOf":[{"type":"string"},{"type":"null"}]},"targetGroupIds":{"type":"array","items":{"type":"string"}}},"required":["key","type","status","defaultValue","rolloutPercentage"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/flags/update":{"post":{"operationId":"flags.update","summary":"Update flag","description":"Updates an existing flag. Requires scope update permission.","tags":["Flags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string"},"type":{"enum":["boolean","rollout","multivariant"],"type":"string"},"status":{"enum":["active","inactive","archived"],"type":"string"},"defaultValue":{"type":"boolean"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["user_id","email","property"],"type":"string"},"operator":{"enum":["equals","contains","starts_with","ends_with","in","not_in","exists","not_exists"],"type":"string"},"field":{"type":"string"},"value":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"batch":{"type":"boolean"},"batchValues":{"type":"array","items":{"type":"string"}}},"required":["type","operator","enabled","batch"]}},"persistAcrossAuth":{"type":"boolean"},"rolloutPercentage":{"type":"number","minimum":0,"maximum":100},"rolloutBy":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":50},"value":{},"weight":{"type":"number","minimum":0,"maximum":100},"description":{"type":"string"},"type":{"enum":["string","number","json"],"type":"string"}},"required":["key","type"]}},"dependencies":{"type":"array","items":{"type":"string"}},"environment":{"type":"string"},"targetGroupIds":{"type":"array","items":{"type":"string"}}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/flags/delete":{"post":{"operationId":"flags.delete","summary":"Delete flag","description":"Soft-deletes a flag (archives it). Requires scope delete permission.","tags":["Flags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/generation/getConfig":{"post":{"operationId":"insightGeneration.getConfig","summary":"Get insight generation config","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"allowedTools":{"type":"array","items":{"enum":["web_metrics","product_metrics","ops_context","business_context"],"type":"string"}},"cooldownHours":{"type":"number"},"createdAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"cron":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveries":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"slack"}},"required":["channelId","type"]}},"depth":{"enum":["light","standard","deep"],"type":"string"},"enabled":{"type":"boolean"},"frequency":{"enum":["hourly","daily","weekly","custom"],"type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"lookbackDays":{"type":"number"},"maxInsightsPerWebsite":{"type":"number"},"maxSteps":{"type":"number"},"maxToolCalls":{"type":"number"},"modelTier":{"enum":["fast","balanced","deep"],"type":"string"},"nextRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"organizationId":{"type":"string"},"source":{"enum":["default","organization","website"],"type":"string"},"timezone":{"type":"string"},"updatedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["allowedTools","cooldownHours","createdAt","cron","deliveries","depth","enabled","frequency","id","lastRunAt","lookbackDays","maxInsightsPerWebsite","maxSteps","maxToolCalls","modelTier","nextRunAt","organizationId","source","timezone","updatedAt","websiteId"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/generation/upsertConfig":{"post":{"operationId":"insightGeneration.upsertConfig","summary":"Create or update insight generation config","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"allowedTools":{"type":"array","minItems":1,"maxItems":4,"items":{"enum":["web_metrics","product_metrics","ops_context","business_context"],"type":"string"}},"cooldownHours":{"type":"integer","minimum":1,"maximum":168},"cron":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"deliveries":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"slack"}},"required":["channelId","type"]}},"depth":{"enum":["light","standard","deep"],"type":"string"},"enabled":{"type":"boolean"},"frequency":{"enum":["hourly","daily","weekly","custom"],"type":"string"},"lookbackDays":{"type":"integer","minimum":1,"maximum":90},"maxInsightsPerWebsite":{"type":"integer","minimum":1,"maximum":10},"maxSteps":{"type":"integer","minimum":1,"maximum":64},"maxToolCalls":{"type":"integer","minimum":1,"maximum":64},"modelTier":{"enum":["fast","balanced","deep"],"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":80}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"allowedTools":{"type":"array","items":{"enum":["web_metrics","product_metrics","ops_context","business_context"],"type":"string"}},"cooldownHours":{"type":"number"},"createdAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"cron":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveries":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"slack"}},"required":["channelId","type"]}},"depth":{"enum":["light","standard","deep"],"type":"string"},"enabled":{"type":"boolean"},"frequency":{"enum":["hourly","daily","weekly","custom"],"type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"lookbackDays":{"type":"number"},"maxInsightsPerWebsite":{"type":"number"},"maxSteps":{"type":"number"},"maxToolCalls":{"type":"number"},"modelTier":{"enum":["fast","balanced","deep"],"type":"string"},"nextRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"organizationId":{"type":"string"},"source":{"enum":["default","organization","website"],"type":"string"},"timezone":{"type":"string"},"updatedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["allowedTools","cooldownHours","createdAt","cron","deliveries","depth","enabled","frequency","id","lastRunAt","lookbackDays","maxInsightsPerWebsite","maxSteps","maxToolCalls","modelTier","nextRunAt","organizationId","source","timezone","updatedAt","websiteId"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/generation/addSlackDelivery":{"post":{"operationId":"insightGeneration.addSlackDelivery","summary":"Route an insight digest to a Slack channel","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"frequency":{"enum":["hourly","daily","weekly"],"type":"string"},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["channelId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"allowedTools":{"type":"array","items":{"enum":["web_metrics","product_metrics","ops_context","business_context"],"type":"string"}},"cooldownHours":{"type":"number"},"createdAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"cron":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveries":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"slack"}},"required":["channelId","type"]}},"depth":{"enum":["light","standard","deep"],"type":"string"},"enabled":{"type":"boolean"},"frequency":{"enum":["hourly","daily","weekly","custom"],"type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"lookbackDays":{"type":"number"},"maxInsightsPerWebsite":{"type":"number"},"maxSteps":{"type":"number"},"maxToolCalls":{"type":"number"},"modelTier":{"enum":["fast","balanced","deep"],"type":"string"},"nextRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"organizationId":{"type":"string"},"source":{"enum":["default","organization","website"],"type":"string"},"timezone":{"type":"string"},"updatedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["allowedTools","cooldownHours","createdAt","cron","deliveries","depth","enabled","frequency","id","lastRunAt","lookbackDays","maxInsightsPerWebsite","maxSteps","maxToolCalls","modelTier","nextRunAt","organizationId","source","timezone","updatedAt","websiteId"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/generation/removeSlackDelivery":{"post":{"operationId":"insightGeneration.removeSlackDelivery","summary":"Stop routing an insight digest to a Slack channel","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["channelId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"allowedTools":{"type":"array","items":{"enum":["web_metrics","product_metrics","ops_context","business_context"],"type":"string"}},"cooldownHours":{"type":"number"},"createdAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"cron":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveries":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"slack"}},"required":["channelId","type"]}},"depth":{"enum":["light","standard","deep"],"type":"string"},"enabled":{"type":"boolean"},"frequency":{"enum":["hourly","daily","weekly","custom"],"type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"lookbackDays":{"type":"number"},"maxInsightsPerWebsite":{"type":"number"},"maxSteps":{"type":"number"},"maxToolCalls":{"type":"number"},"modelTier":{"enum":["fast","balanced","deep"],"type":"string"},"nextRunAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"organizationId":{"type":"string"},"source":{"enum":["default","organization","website"],"type":"string"},"timezone":{"type":"string"},"updatedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["allowedTools","cooldownHours","createdAt","cron","deliveries","depth","enabled","frequency","id","lastRunAt","lookbackDays","maxInsightsPerWebsite","maxSteps","maxToolCalls","modelTier","nextRunAt","organizationId","source","timezone","updatedAt","websiteId"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/generation/triggerRun":{"post":{"operationId":"insightGeneration.triggerRun","summary":"Queue an insight generation run","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"force":{"type":"boolean","default":false},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"enum":["manual","scheduled","cooldown_refresh"],"type":"string","default":"manual"},"websiteIds":{"type":"array","maxItems":100,"items":{"type":"string","minLength":1}},"allowedTools":{"type":"array","minItems":1,"maxItems":4,"items":{"enum":["web_metrics","product_metrics","ops_context","business_context"],"type":"string"}},"cooldownHours":{"type":"integer","minimum":1,"maximum":168},"cron":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"deliveries":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":120},"type":{"const":"slack"}},"required":["channelId","type"]}},"depth":{"enum":["light","standard","deep"],"type":"string"},"enabled":{"type":"boolean"},"frequency":{"enum":["hourly","daily","weekly","custom"],"type":"string"},"lookbackDays":{"type":"integer","minimum":1,"maximum":90},"maxInsightsPerWebsite":{"type":"integer","minimum":1,"maximum":10},"maxSteps":{"type":"integer","minimum":1,"maximum":64},"maxToolCalls":{"type":"integer","minimum":1,"maximum":64},"modelTier":{"enum":["fast","balanced","deep"],"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":80}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"queuedItems":{"type":"number"},"runId":{"type":"string"},"status":{"enum":["queued","skipped","disabled"],"type":"string"}},"required":["queuedItems","status"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/generation/getRun":{"post":{"operationId":"insightGeneration.getRun","summary":"Get insight generation run","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string"}},"required":["runId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"attempts":{"type":"number"},"configSnapshot":{},"createdAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"finishedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"id":{"type":"string"},"queueJobId":{"anyOf":[{"type":"string"},{"type":"null"}]},"resultCount":{"type":"number"},"runId":{"type":"string"},"startedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"status":{"enum":["queued","running","succeeded","failed","skipped"],"type":"string"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"websiteId":{"type":"string"}},"required":["attempts","createdAt","errorMessage","finishedAt","id","queueJobId","resultCount","runId","startedAt","status","updatedAt","websiteId"]}},"run":{"type":"object","properties":{"completedItems":{"type":"number"},"createdAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"failedItems":{"type":"number"},"finishedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"id":{"type":"string"},"organizationId":{"type":"string"},"reason":{"enum":["manual","scheduled","cooldown_refresh"],"type":"string"},"requestedByUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"skippedItems":{"type":"number"},"startedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"status":{"enum":["queued","running","succeeded","partially_succeeded","failed","skipped"],"type":"string"},"timezone":{"type":"string"},"totalItems":{"type":"number"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]}},"required":["completedItems","createdAt","errorMessage","failedItems","finishedAt","id","organizationId","reason","requestedByUserId","skippedItems","startedAt","status","timezone","totalItems","updatedAt"]}},"required":["items","run"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/generation/listRuns":{"post":{"operationId":"insightGeneration.listRuns","summary":"List insight generation runs","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"array","items":{"type":"object","properties":{"completedItems":{"type":"number"},"createdAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"failedItems":{"type":"number"},"finishedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"id":{"type":"string"},"organizationId":{"type":"string"},"reason":{"enum":["manual","scheduled","cooldown_refresh"],"type":"string"},"requestedByUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"skippedItems":{"type":"number"},"startedAt":{"anyOf":[{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},{"type":"null"}]},"status":{"enum":["queued","running","succeeded","partially_succeeded","failed","skipped"],"type":"string"},"timezone":{"type":"string"},"totalItems":{"type":"number"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]}},"required":["completedItems","createdAt","errorMessage","failedItems","finishedAt","id","organizationId","reason","requestedByUserId","skippedItems","startedAt","status","timezone","totalItems","updatedAt"]}}},"required":["runs"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/feed":{"post":{"operationId":"insights.feed","summary":"Get current insight feed and queue generation when stale","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1},"timezone":{"type":"string","minLength":1,"maxLength":80,"default":"UTC"}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"generation":{"type":"object","properties":{"queuedItems":{"type":"number"},"runId":{"type":"string"},"status":{"enum":["queued","skipped","disabled","unavailable"],"type":"string"}},"required":["status"]},"insights":{"type":"array","items":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"type":{"type":"string"}},"required":["label","params","type"]}},{"type":"null"}]},"chainId":{"anyOf":[{"type":"string"},{"type":"null"}]},"changePercent":{"type":"number"},"confidence":{"type":"number"},"description":{"type":"string"},"evidence":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"type":{"type":"string"}},"required":["description","type"]}},{"type":"null"}]},"id":{"type":"string"},"impactSummary":{"type":"string"},"investigationDepth":{"anyOf":[{"enum":["surface","investigated","deep"],"type":"string"},{"type":"null"}]},"link":{"type":"string"},"metrics":{"type":"array","items":{"type":"object","properties":{"current":{"type":"number"},"format":{"enum":["number","percent","duration_ms","duration_s"],"type":"string"},"label":{"type":"string"},"previous":{"type":"number"}},"required":["current","format","label"]}},"priority":{"type":"number"},"rootCause":{"anyOf":[{"type":"string"},{"type":"null"}]},"sentiment":{"type":"string"},"severity":{"type":"string"},"sources":{"type":"array","items":{"enum":["web","product","ops","business"],"type":"string"}},"subjectKey":{"type":"string"},"suggestion":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"websiteDomain":{"type":"string"},"websiteId":{"type":"string"},"websiteName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["confidence","description","id","link","metrics","priority","sentiment","severity","sources","subjectKey","suggestion","title","type","websiteDomain","websiteId","websiteName"]}},"source":{"enum":["ai","fallback"],"type":"string"},"success":{"const":true}},"required":["insights","source","success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/history":{"post":{"operationId":"insights.history","summary":"List persisted insight history","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991,"default":0},"organizationId":{"type":"string","minLength":1},"websiteId":{"type":"string","minLength":1}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"hasMore":{"type":"boolean"},"insights":{"type":"array","items":{"type":"object","properties":{"actions":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"type":{"type":"string"}},"required":["label","params","type"]}},{"type":"null"}]},"chainId":{"anyOf":[{"type":"string"},{"type":"null"}]},"changePercent":{"type":"number"},"confidence":{"type":"number"},"description":{"type":"string"},"evidence":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"type":{"type":"string"}},"required":["description","type"]}},{"type":"null"}]},"id":{"type":"string"},"impactSummary":{"type":"string"},"investigationDepth":{"anyOf":[{"enum":["surface","investigated","deep"],"type":"string"},{"type":"null"}]},"link":{"type":"string"},"metrics":{"type":"array","items":{"type":"object","properties":{"current":{"type":"number"},"format":{"enum":["number","percent","duration_ms","duration_s"],"type":"string"},"label":{"type":"string"},"previous":{"type":"number"}},"required":["current","format","label"]}},"priority":{"type":"number"},"rootCause":{"anyOf":[{"type":"string"},{"type":"null"}]},"sentiment":{"type":"string"},"severity":{"type":"string"},"sources":{"type":"array","items":{"enum":["web","product","ops","business"],"type":"string"}},"subjectKey":{"type":"string"},"suggestion":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"websiteDomain":{"type":"string"},"websiteId":{"type":"string"},"websiteName":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"currentPeriodFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"currentPeriodTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"previousPeriodFrom":{"anyOf":[{"type":"string"},{"type":"null"}]},"previousPeriodTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolvedReason":{"anyOf":[{"enum":["recovered","stale"],"type":"string"},{"type":"null"}]},"runId":{"type":"string"},"status":{"enum":["open","resolved"],"type":"string"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["confidence","description","id","link","metrics","priority","sentiment","severity","sources","subjectKey","suggestion","title","type","websiteDomain","websiteId","websiteName","createdAt","currentPeriodFrom","currentPeriodTo","previousPeriodFrom","previousPeriodTo","resolvedAt","resolvedReason","runId","status","timezone"]}},"success":{"const":true}},"required":["hasMore","insights","success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/orgNarrative":{"post":{"operationId":"insights.orgNarrative","summary":"Get organization insights narrative","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1},"range":{"enum":["7d","30d","90d"],"type":"string"}},"required":["organizationId","range"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"generatedAt":{"type":"string"},"narrative":{"type":"string"},"success":{"const":true}},"required":["generatedAt","narrative","success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/clearHistory":{"post":{"operationId":"insights.clearHistory","summary":"Clear persisted insights for an organization","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"number"},"success":{"const":true}},"required":["deleted","success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/getVotes":{"post":{"operationId":"insights.getVotes","summary":"Get insight feedback votes","description":"Returns thumbs up/down votes for the given insight ids for the current user in the active organization.","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"insightIds":{"type":"array","maxItems":200,"items":{"type":"string","minLength":1}}},"required":["insightIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"votes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"enum":["up","down"],"type":"string"}}},"required":["votes"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/setVote":{"post":{"operationId":"insights.setVote","summary":"Set or clear insight vote","description":"Sets thumbs up/down for an insight, or clears the vote when vote is null.","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"insightId":{"type":"string","minLength":1,"maxLength":256},"vote":{"anyOf":[{"enum":["up","down"],"type":"string"},{"type":"null"}]}},"required":["insightId","vote"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/setDismissed":{"post":{"operationId":"insights.setDismissed","summary":"Dismiss or restore an insight","description":"Marks an insight as dismissed so its pattern is suppressed in future generation, or restores it when dismissed is false.","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"insightId":{"type":"string","minLength":1,"maxLength":256},"dismissed":{"type":"boolean"}},"required":["insightId","dismissed"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/insights/clearDismissed":{"post":{"operationId":"insights.clearDismissed","summary":"Clear all dismissed insights","description":"Removes every dismissal for the current user in the active organization.","tags":["Insights"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/target-groups/list":{"post":{"operationId":"targetGroups.list","summary":"List target groups","description":"Returns all target groups for a website. Requires website read permission.","tags":["Target Groups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/target-groups/getById":{"post":{"operationId":"targetGroups.getById","summary":"Get target group","description":"Returns a single target group by id. Requires website read permission.","tags":["Target Groups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"type":"string"}},"required":["id","websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/target-groups/create":{"post":{"operationId":"targetGroups.create","summary":"Create target group","description":"Creates a new target group. Requires target groups feature and website update permission.","tags":["Target Groups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":500},"color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["user_id","email","property"],"type":"string"},"operator":{"enum":["equals","contains","starts_with","ends_with","in","not_in","exists","not_exists"],"type":"string"},"field":{"type":"string"},"value":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"batch":{"type":"boolean"},"batchValues":{"type":"array","items":{"type":"string"}}},"required":["type","operator","enabled","batch"]}}},"required":["websiteId","name","color","rules"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/target-groups/update":{"post":{"operationId":"targetGroups.update","summary":"Update target group","description":"Updates an existing target group. Requires website update permission.","tags":["Target Groups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":500},"color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"enum":["user_id","email","property"],"type":"string"},"operator":{"enum":["equals","contains","starts_with","ends_with","in","not_in","exists","not_exists"],"type":"string"},"field":{"type":"string"},"value":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"batch":{"type":"boolean"},"batchValues":{"type":"array","items":{"type":"string"}}},"required":["type","operator","enabled","batch"]}}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/target-groups/delete":{"post":{"operationId":"targetGroups.delete","summary":"Delete target group","description":"Soft-deletes a target group. Requires website delete permission.","tags":["Target Groups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/updateAvatarSeed":{"post":{"operationId":"organizations.updateAvatarSeed","summary":"Update avatar seed","description":"Updates organization avatar seed. Requires org update permission.","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1},"seed":{"type":"string","minLength":1}},"required":["organizationId","seed"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["organization"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/getEmailNotificationSettings":{"post":{"operationId":"organizations.getEmailNotificationSettings","summary":"Get email notification settings","description":"Returns email notification settings for an organization.","tags":["Organizations"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"anomalies":{"type":"object","properties":{"customEventEmails":{"type":"boolean"},"errorEmails":{"type":"boolean"},"trafficEmails":{"type":"boolean"}},"required":["customEventEmails","errorEmails","trafficEmails"]},"billing":{"type":"object","properties":{"usageWarnings":{"type":"boolean"}},"required":["usageWarnings"]},"trackingHealth":{"type":"object","properties":{"cooldownMinutes":{"type":"integer","minimum":15,"maximum":10080},"ignoredOrigins":{"type":"array","maxItems":100,"items":{"anyOf":[{},{"type":"null"}]}},"ignoredReasons":{"type":"array","maxItems":10,"items":{"enum":["origin_not_authorized","origin_missing","ip_not_authorized"],"type":"string"}},"mode":{"enum":["off","critical_only","warnings_and_critical"],"type":"string"}},"required":["cooldownMinutes","ignoredOrigins","ignoredReasons","mode"]},"uptime":{"type":"object","properties":{"downEmails":{"type":"boolean"},"recoveryEmails":{"type":"boolean"}},"required":["downEmails","recoveryEmails"]}},"required":["anomalies","billing","trackingHealth","uptime"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/updateEmailNotificationSettings":{"post":{"operationId":"organizations.updateEmailNotificationSettings","summary":"Update email notification settings","description":"Updates email notification settings for an organization. Requires org update permission.","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"settings":{"type":"object","properties":{"anomalies":{"type":"object","properties":{"customEventEmails":{"type":"boolean"},"errorEmails":{"type":"boolean"},"trafficEmails":{"type":"boolean"}},"required":["customEventEmails","errorEmails","trafficEmails"]},"billing":{"type":"object","properties":{"usageWarnings":{"type":"boolean"}},"required":["usageWarnings"]},"trackingHealth":{"type":"object","properties":{"cooldownMinutes":{"type":"integer","minimum":15,"maximum":10080},"ignoredOrigins":{"type":"array","maxItems":100,"items":{"type":"string","minLength":1,"maxLength":255}},"ignoredReasons":{"type":"array","maxItems":10,"items":{"enum":["origin_not_authorized","origin_missing","ip_not_authorized"],"type":"string"}},"mode":{"enum":["off","critical_only","warnings_and_critical"],"type":"string"}},"required":["cooldownMinutes","ignoredOrigins","ignoredReasons","mode"]},"uptime":{"type":"object","properties":{"downEmails":{"type":"boolean"},"recoveryEmails":{"type":"boolean"}},"required":["downEmails","recoveryEmails"]}},"required":["anomalies","billing","trackingHealth","uptime"]}},"required":["settings"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"anomalies":{"type":"object","properties":{"customEventEmails":{"type":"boolean"},"errorEmails":{"type":"boolean"},"trafficEmails":{"type":"boolean"}},"required":["customEventEmails","errorEmails","trafficEmails"]},"billing":{"type":"object","properties":{"usageWarnings":{"type":"boolean"}},"required":["usageWarnings"]},"trackingHealth":{"type":"object","properties":{"cooldownMinutes":{"type":"integer","minimum":15,"maximum":10080},"ignoredOrigins":{"type":"array","maxItems":100,"items":{"anyOf":[{},{"type":"null"}]}},"ignoredReasons":{"type":"array","maxItems":10,"items":{"enum":["origin_not_authorized","origin_missing","ip_not_authorized"],"type":"string"}},"mode":{"enum":["off","critical_only","warnings_and_critical"],"type":"string"}},"required":["cooldownMinutes","ignoredOrigins","ignoredReasons","mode"]},"uptime":{"type":"object","properties":{"downEmails":{"type":"boolean"},"recoveryEmails":{"type":"boolean"}},"required":["downEmails","recoveryEmails"]}},"required":["anomalies","billing","trackingHealth","uptime"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/getPendingInvitations":{"post":{"operationId":"organizations.getPendingInvitations","summary":"Get pending invitations","description":"Returns pending invitations for an organization.","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1},"includeExpired":{"type":"boolean"}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/getUserPendingInvitations":{"post":{"operationId":"organizations.getUserPendingInvitations","summary":"Get user pending invitations","description":"Returns pending invitations for the current user.","tags":["Organizations"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"organizationId":{"type":"string"},"organizationName":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationLogo":{"anyOf":[{"type":"string"},{"type":"null"}]},"inviterId":{"type":"string"}},"required":["id","email","role","status","expiresAt","createdAt","organizationId","organizationName","organizationLogo","inviterId"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/clearExpiredInvitations":{"post":{"operationId":"organizations.clearExpiredInvitations","summary":"Clear expired invitations","description":"Deletes expired and accepted invitations for an organization.","tags":["Organizations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"number"}},"required":["deleted"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/getUsage":{"post":{"operationId":"organizations.getUsage","summary":"Get usage","description":"Returns Autumn usage for current user/workspace.","tags":["Organizations"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/organizations/getBillingContext":{"post":{"operationId":"organizations.getBillingContext","summary":"Get billing context","description":"Returns billing context for user/workspace/website. Priority: websiteId > user workspace > free tier.","tags":["Organizations"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/profiles/getByIds":{"post":{"operationId":"profiles.getByIds","summary":"Get profiles by ids","description":"Returns identified user profiles for the given profile ids. Requires website read permission.","tags":["Profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"profileIds":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","minLength":1,"maxLength":128}}},"required":["websiteId","profileIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"traits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"firstSeenAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["profileId","displayName","email","traits","firstSeenAt","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/profiles/get":{"post":{"operationId":"profiles.get","summary":"Get profile","description":"Returns one identified user profile with its device aliases, or null when the visitor is anonymous. Requires website read permission.","tags":["Profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"profileId":{"type":"string","minLength":1,"maxLength":128}},"required":["websiteId","profileId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"profileId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"traits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"firstSeenAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"anonymousIds":{"type":"array","items":{"type":"string"}}},"required":["profileId","displayName","email","traits","firstSeenAt","updatedAt","anonymousIds"]},{"type":"null"}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/profiles/getHistory":{"post":{"operationId":"profiles.getHistory","summary":"Get profile trait history","description":"Returns the trait change timeline for a profile, newest first. Each entry has the changed keys (old and new) and the full trait snapshot after the change. Requires website read permission.","tags":["Profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"profileId":{"type":"string","minLength":1,"maxLength":128},"limit":{"type":"number","minimum":1,"maximum":200,"default":50}},"required":["websiteId","profileId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"changes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"old":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"new":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["old","new"]}},"traits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"source":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["changes","traits","source","createdAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/statusPage/listPublic":{"post":{"operationId":"statusPage.listPublic","summary":"List public status pages for sitemap generation","tags":["StatusPage"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"}},"required":["slug","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/statusPage/getBySlug":{"post":{"operationId":"statusPage.getBySlug","summary":"Get public status page","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1},"days":{"type":"integer","minimum":7,"maximum":90,"default":90}},"required":["slug"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","slug","logo"]},"statusPage":{"type":"object","properties":{"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"theme":{"anyOf":[{"enum":["system","light","dark"],"type":"string"},{"type":"null"}]}},"required":["name","description","logoUrl","faviconUrl","websiteUrl","supportUrl","theme"]},"overallStatus":{"enum":["operational","degraded","outage"],"type":"string"},"monitors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"currentStatus":{"enum":["up","down","degraded","unknown"],"type":"string"},"uptimePercentage":{"type":"number"},"dailyData":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"uptime_percentage":{"type":"number"},"total_checks":{"type":"number"},"successful_checks":{"type":"number"},"downtime_seconds":{"type":"number"},"avg_response_time":{"type":"number"},"p95_response_time":{"type":"number"}},"required":["date"]}},"lastCheckedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","currentStatus","dailyData","lastCheckedAt"]}},"incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"status":{"enum":["investigating","identified","monitoring","resolved"],"type":"string"},"severity":{"enum":["minor","major","critical"],"type":"string"},"createdAt":{"type":"string"},"resolvedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"enum":["investigating","identified","monitoring","resolved"],"type":"string"},"message":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","status","message","createdAt"]}},"affectedMonitors":{"type":"array","items":{"type":"object","properties":{"statusPageMonitorId":{"type":"string"},"monitorName":{"type":"string"},"impact":{"enum":["degraded","down"],"type":"string"}},"required":["statusPageMonitorId","monitorName","impact"]}}},"required":["id","title","status","severity","createdAt","resolvedAt","updates","affectedMonitors"]}}},"required":["organization","statusPage","overallStatus","monitors","incidents"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/statusPage/list":{"post":{"operationId":"statusPage.list","summary":"List status pages for organization","description":"Lists status pages for an organization. Requires read:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:status_pages"]}},"/statusPage/get":{"post":{"operationId":"statusPage.get","summary":"Get status page details including monitors","description":"Returns status page details including monitors. Requires read:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"}},"required":["statusPageId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:status_pages"]}},"/statusPage/create":{"post":{"operationId":"statusPage.create","summary":"Create status page","description":"Creates a status page. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"logoUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"theme":{"enum":["system","light","dark"],"type":"string"}},"required":["organizationId","name","slug"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/update":{"post":{"operationId":"statusPage.update","summary":"Update status page details","description":"Updates status page details. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"logoUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"theme":{"enum":["system","light","dark"],"type":"string"}},"required":["statusPageId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/delete":{"post":{"operationId":"statusPage.delete","summary":"Delete status page","description":"Deletes a status page. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"}},"required":["statusPageId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/transfer":{"post":{"operationId":"statusPage.transfer","summary":"Transfer status page to another organization","description":"Transfers a status page to another organization. Requires write:status_pages scope on source and target.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"},"targetOrganizationId":{"type":"string"},"includeMonitors":{"type":"boolean","default":true}},"required":["statusPageId","targetOrganizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/addMonitor":{"post":{"operationId":"statusPage.addMonitor","summary":"Add a monitor to a status page","description":"Adds a monitor to a status page. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"},"uptimeScheduleId":{"type":"string"}},"required":["statusPageId","uptimeScheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/removeMonitor":{"post":{"operationId":"statusPage.removeMonitor","summary":"Remove a monitor from a status page","description":"Removes a monitor from a status page. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"},"uptimeScheduleId":{"type":"string"}},"required":["statusPageId","uptimeScheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/updateMonitorSettings":{"post":{"operationId":"statusPage.updateMonitorSettings","summary":"Update visibility settings for a status page monitor","description":"Updates visibility settings for a status page monitor. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"monitorId":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"hideUrl":{"type":"boolean"},"hideUptimePercentage":{"type":"boolean"},"hideLatency":{"type":"boolean"},"order":{"type":"number"}},"required":["monitorId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/createIncident":{"post":{"operationId":"statusPage.createIncident","summary":"Create a new incident","description":"Creates a new status page incident. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"},"title":{"type":"string","minLength":1},"severity":{"enum":["minor","major","critical"],"type":"string","default":"minor"},"message":{"type":"string","minLength":1},"affectedMonitors":{"type":"array","items":{"type":"object","properties":{"statusPageMonitorId":{"type":"string"},"impact":{"enum":["degraded","down"],"type":"string"}},"required":["statusPageMonitorId","impact"]},"default":[]}},"required":["statusPageId","title","message"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/updateIncident":{"post":{"operationId":"statusPage.updateIncident","summary":"Post an update to an incident","description":"Posts an update to a status page incident. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"incidentId":{"type":"string"},"status":{"enum":["investigating","identified","monitoring","resolved"],"type":"string"},"message":{"type":"string","minLength":1}},"required":["incidentId","status","message"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/deleteIncident":{"post":{"operationId":"statusPage.deleteIncident","summary":"Delete an incident","description":"Deletes a status page incident. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"incidentId":{"type":"string"}},"required":["incidentId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:status_pages"]}},"/statusPage/listIncidents":{"post":{"operationId":"statusPage.listIncidents","summary":"List incidents for a status page","description":"Lists incidents for a status page. Requires read:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"statusPageId":{"type":"string"}},"required":["statusPageId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:status_pages"]}},"/uptime/getScheduleByWebsiteId":{"post":{"operationId":"uptime.getScheduleByWebsiteId","summary":"Get schedule by website","description":"Returns uptime schedule for a website. Requires read:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:monitors"]}},"/uptime/listSchedules":{"post":{"operationId":"uptime.listSchedules","summary":"List schedules","description":"Returns uptime schedules for organization or all user workspaces. Requires read:monitors scope.","tags":["Uptime"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"type":"string"},"url":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"granularity":{"type":"string"},"cron":{"type":"string"},"isPaused":{"type":"boolean"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheBust":{"type":"boolean"},"jsonParsingConfig":{"anyOf":[{},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"website":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"domain":{"type":"string"}},"required":["id","name","domain"],"additionalProperties":{}},{"type":"null"}]}},"required":["id","websiteId","organizationId","url","name","granularity","cron","isPaused","cacheBust","createdAt","updatedAt"],"additionalProperties":{}}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:monitors"]}},"/uptime/getSchedule":{"post":{"operationId":"uptime.getSchedule","summary":"Get schedule","description":"Returns schedule with BullMQ scheduler status. Requires read:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"type":"string"},"url":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"granularity":{"type":"string"},"cron":{"type":"string"},"isPaused":{"type":"boolean"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheBust":{"type":"boolean"},"jsonParsingConfig":{"anyOf":[{},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"string"}]},"schedulerStatus":{"enum":["active","missing"],"type":"string"},"website":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"domain":{"type":"string"}},"required":["id","name","domain"],"additionalProperties":{}},{"type":"null"}]}},"required":["id","websiteId","organizationId","url","name","granularity","cron","isPaused","cacheBust","createdAt","updatedAt","schedulerStatus"],"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:monitors"]}},"/uptime/createSchedule":{"post":{"operationId":"uptime.createSchedule","summary":"Create schedule","description":"Creates an uptime monitor. Requires write:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"name":{"type":"string"},"organizationId":{"type":"string"},"websiteId":{"type":"string"},"granularity":{"enum":["minute","five_minutes","ten_minutes","thirty_minutes","hour","six_hours","twelve_hours","day"],"type":"string"},"timeout":{"type":"integer","minimum":1000,"maximum":120000},"cacheBust":{"type":"boolean"},"jsonParsingConfig":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}},"required":["url","granularity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/uptime/updateSchedule":{"post":{"operationId":"uptime.updateSchedule","summary":"Update schedule","description":"Updates an uptime schedule. Requires write:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"granularity":{"enum":["minute","five_minutes","ten_minutes","thirty_minutes","hour","six_hours","twelve_hours","day"],"type":"string"},"timeout":{"anyOf":[{"type":"integer","minimum":1000,"maximum":120000},{"type":"null"}]},"cacheBust":{"type":"boolean"},"jsonParsingConfig":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/uptime/deleteSchedule":{"post":{"operationId":"uptime.deleteSchedule","summary":"Delete schedule","description":"Deletes an uptime schedule. Requires write:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/uptime/togglePause":{"post":{"operationId":"uptime.togglePause","summary":"Toggle pause","description":"Pauses or resumes an uptime schedule. Requires write:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"},"pause":{"type":"boolean"}},"required":["scheduleId","pause"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"isPaused":{"type":"boolean"}},"required":["success","isPaused"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/uptime/pauseSchedule":{"post":{"operationId":"uptime.pauseSchedule","summary":"Pause schedule","description":"Pauses an uptime schedule. Legacy compatibility. Requires write:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"isPaused":{"const":true}},"required":["success","isPaused"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/uptime/transfer":{"post":{"operationId":"uptime.transfer","summary":"Transfer monitor","description":"Transfers an uptime monitor to another organization. Requires write:monitors scope on source and target.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"},"targetOrganizationId":{"type":"string"}},"required":["scheduleId","targetOrganizationId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/uptime/manualCheck":{"post":{"operationId":"uptime.manualCheck","summary":"Manual check","description":"Triggers an immediate uptime check for a monitor. Monitor must not be paused. Requires write:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/uptime/resumeSchedule":{"post":{"operationId":"uptime.resumeSchedule","summary":"Resume schedule","description":"Resumes an uptime schedule. Legacy compatibility. Requires write:monitors scope.","tags":["Uptime"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"isPaused":{"const":false}},"required":["success","isPaused"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/link-folders/list":{"post":{"operationId":"linkFolders.list","summary":"List link folders","description":"Returns folders used to organize short links inside a workspace. Requires read:links scope.","tags":["Links"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","organizationId","createdBy","name","slug","deletedAt","createdAt","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:links"]}},"/link-folders/create":{"post":{"operationId":"linkFolders.create","summary":"Create link folder","description":"Creates a folder used to organize short links. Requires write:links scope.","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"slug":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9_-]+$"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","organizationId","createdBy","name","slug","deletedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:links"]}},"/link-folders/update":{"post":{"operationId":"linkFolders.update","summary":"Update link folder","description":"Updates a link folder. Requires write:links scope.","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"slug":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9_-]+$"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","organizationId","createdBy","name","slug","deletedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:links"]}},"/link-folders/delete":{"post":{"operationId":"linkFolders.delete","summary":"Delete link folder","description":"Deletes a link folder and moves contained links to Unfiled. Requires write:links scope.","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:links"]}},"/links/list":{"post":{"operationId":"links.list","summary":"List links","description":"Returns all links for the workspace. Optional organizationId defaults to the active organization from the session. Requires read:links scope.","tags":["Links"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"externalId":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"type":"string","maxLength":64},"sourceId":{"type":"string","maxLength":255},"sourceOwnerId":{"type":"string","maxLength":255},"targetDomain":{"type":"string","maxLength":255}},"default":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"name":{"type":"string"},"targetUrl":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceOwnerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"expiredRedirectUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogVideoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iosUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"androidUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"deepLinkApp":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","organizationId","createdBy","folderId","slug","name","targetUrl","targetDomain","sourceType","sourceId","sourceOwnerId","expiresAt","expiredRedirectUrl","ogTitle","ogDescription","ogImageUrl","ogVideoUrl","iosUrl","androidUrl","externalId","deepLinkApp","deletedAt","createdAt","updatedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:links"]}},"/links/get":{"post":{"operationId":"links.get","summary":"Get link","description":"Returns a single link by id; workspace is resolved from the link. Requires read:links scope.","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"name":{"type":"string"},"targetUrl":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceOwnerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"expiredRedirectUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogVideoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iosUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"androidUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"deepLinkApp":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","organizationId","createdBy","folderId","slug","name","targetUrl","targetDomain","sourceType","sourceId","sourceOwnerId","expiresAt","expiredRedirectUrl","ogTitle","ogDescription","ogImageUrl","ogVideoUrl","iosUrl","androidUrl","externalId","deepLinkApp","deletedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["read:links"]}},"/links/create":{"post":{"operationId":"links.create","summary":"Create link","description":"Creates a new short link. Requires write:links scope.","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"targetUrl":{"type":"string","format":"uri"},"slug":{"type":"string","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"expiredRedirectUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ogTitle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"ogDescription":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"ogImageUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ogVideoUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"iosUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"androidUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"sourceType":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"sourceId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"sourceOwnerId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"targetDomain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"deepLinkApp":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","targetUrl"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"name":{"type":"string"},"targetUrl":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceOwnerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"expiredRedirectUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogVideoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iosUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"androidUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"deepLinkApp":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","organizationId","createdBy","folderId","slug","name","targetUrl","targetDomain","sourceType","sourceId","sourceOwnerId","expiresAt","expiredRedirectUrl","ogTitle","ogDescription","ogImageUrl","ogVideoUrl","iosUrl","androidUrl","externalId","deepLinkApp","deletedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:links"]}},"/links/update":{"post":{"operationId":"links.update","summary":"Update link","description":"Updates an existing link. Requires write:links scope.","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":255},"targetUrl":{"type":"string","format":"uri"},"slug":{"type":"string","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"expiredRedirectUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ogTitle":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"ogDescription":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"ogImageUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"ogVideoUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"iosUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"androidUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"sourceType":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"sourceId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"sourceOwnerId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"targetDomain":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"deepLinkApp":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"type":"string"},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"type":"string"},"name":{"type":"string"},"targetUrl":{"type":"string"},"targetDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceOwnerId":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"expiredRedirectUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"ogVideoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iosUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"androidUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"deepLinkApp":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","organizationId","createdBy","folderId","slug","name","targetUrl","targetDomain","sourceType","sourceId","sourceOwnerId","expiresAt","expiredRedirectUrl","ogTitle","ogDescription","ogImageUrl","ogVideoUrl","iosUrl","androidUrl","externalId","deepLinkApp","deletedAt","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:links"]}},"/links/delete":{"post":{"operationId":"links.delete","summary":"Delete link","description":"Deletes a link by id. Requires write:links scope.","tags":["Links"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true}},"required":["success"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}},"x-required-scopes":["write:links"]}},"/tracker/getCurrentVersions":{"post":{"operationId":"tracker.getCurrentVersions","summary":"Get current tracker versions","description":"Returns the current tracker script versions with SRI hashes.","tags":["Tracker"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"number"},"filename":{"type":"string"},"sriHash":{"type":"string"},"sizeBytes":{"type":"number"},"deployedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["version","filename","sriHash","sizeBytes","deployedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/tracker/listVersions":{"post":{"operationId":"tracker.listVersions","summary":"List all tracker versions","description":"Returns all tracker script versions.","tags":["Tracker"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","default":"databuddy.js"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"version":{"type":"number"},"filename":{"type":"string"},"sriHash":{"type":"string"},"sizeBytes":{"type":"number"},"deployedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["version","filename","sriHash","sizeBytes","deployedAt"]}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid request parameters"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Authentication is required for this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PLAN_LIMIT_EXCEEDED"},"status":{"const":402},"message":{"type":"string","default":"You have reached the limit for your current plan"},"data":{"type":"object","properties":{"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"status":{"const":403},"message":{"type":"string","default":"You do not have permission to perform this action"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":403},"message":{"type":"string","default":"This feature is not available on your current plan"},"data":{"type":"object","properties":{"feature":{"type":"string"},"requiredPlan":{"type":"string"}},"required":["feature"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"The requested resource was not found"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"A resource with this identifier already exists"},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Too many requests, please try again later"},"data":{"type":"object","properties":{"retryAfter":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["retryAfter"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"An unexpected error occurred"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}}}}